/* Layout 2 colonnes */
.nrix-cart-layout {
    display: grid;
    grid-template-columns: minmax(0, 2.4fr) minmax(260px, 1fr);
    gap: 32px;
    align-items: flex-start;
    margin-top: 10px;
}

.nrix-cart-main {
    background: #fff;
}

/* Bande période de loc */
.nrix-rental-period {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.2rem;
    margin-bottom: 8px;
}

.nrix-rental-period-label {
    font-weight: 600;
}

.nrix-rental-period-dates,
.nrix-rental-period-dates a {
    color: #8c3eff;
    font-weight: 500;
    text-decoration: none;
}

/* Table générale (mais headers masqués) */
.woocommerce-cart-form__contents {
    width: 100%;
    border-collapse: collapse;
	  border: none !important;
}

.woocommerce-cart-form__contents thead {
    display: none ;
	  border: none !important;
    border-collapse: collapse;	
}

.woocommerce-cart-form__contents th {
	border:none !important;
}

.nrix-cart-subtotal-cell {
    vertical-align: top !important;
    display: flex;
    flex-direction: column;
    align-items: flex-end;  
	  justify-content: space-between;
    gap: 20px; 
	  width: 100% !important;			
}

/* Cellule principale : photo + infos */
.nrix-cart-main-cell {
    padding: 6px 0 !important;
}

.nrix-cart-item-inner {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 14px;
}


.nrix-cart-thumb img {
    width: 132px !important;
    height: auto;
}

/* Infos produit */
.nrix-cart-product-title a,
.nrix-cart-product-title {
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    color: #222;
}

.nrix-cart-product-title a:hover {
    color: #8c3eff;
}

/* Quantité disponible */
.nrix-cart-availability {
    font-size: 11px;
    color: #3bb54a;
    margin-top: 4px;
}

/* Bloc "Prix unitaire / Quantité" */
.nrix-cart-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 6px;
    font-size: 14px;
	  font-weight: 500;
	  color: #8c3eff;
}

.nrix-cart-meta-row .nrix-label {
    font-weight: 500;
    margin-right: 6px;
}

.woocommerce_cart_item_quantity {
	border-radius: 10px !important;
}

/* Lien "Supprimer" (ligne produit) */
.nrix-remove-link-custom {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    color: #000;
    font-size: 0.9rem;
    margin-top: 16px;
}

.nrix-remove-link-custom:hover {
    color: #8c3eff !important;
}

.nrix-remove-icon {
    width: 24px !important;
    height: 24px !important;
    display: inline-block;
}

.nrix-remove-icon:hover {
  color: #8c3eff !important;
}

.nrix-remove-text {
    font-size: 0.9rem;
}

/* Cellule sous-total à droite */
.nrix-cart-subtotal-cell {
    width: 140px;
    padding: 14px 16px;
    text-align: right;
    white-space: nowrap;
    font-size: 14px;
    font-weight: 600;
}

.nrix-cart-subtotal-cell > .woocommerce-Price-amount {
	font-size: 24px;
	font-weight: 600 !important;
}


.woocommerce-cart-form__contents .actions .coupon .input-text {
    flex: 1 1 180px;
}


/* Boutons noirs */
body.woocommerce-cart .woocommerce button.button,
body.woocommerce-cart .woocommerce a.button {
    background: #000;
    border-color: #000;
	  border-radius: 99px;
    color: #fff;
    font-size: 1rem;
	  font-weight: 600;
}

body.woocommerce-cart .woocommerce button.button:hover,
body.woocommerce-cart .woocommerce a.button:hover {
    background: #6009B0;
    border-color: #222;
}

/* Sidebar résumé */
.nrix-cart-sidebar {
    display: flex;
    justify-content: flex-start;
}

.nrix-cart-summary {
    width: 100%;
    background: #f2f2f2;
    padding: 24px 26px;
    text-align: center;
	  border-radius: 10px;
}

.nrix-cart-summary-title {
    font-size: 24px;
    font-weight: 600;
	  margin-bottom: 4px !important;
}

.nrix-cart-summary-title .amount {
    font-weight: 600;
}

.nrix-cart-summary-subtitle {
    font-size: 14px;
    color: #222;
    margin-bottom: 18px;
}

/* Totaux Woo dans la carte */
.nrix-cart-summary .cart_totals {
    margin: 0 0 10px;
}

.nrix-cart-summary .shop_table {
    width: 100%;
    margin: 0 0 10px;
    border: 1px solid #e2e2e2;
}

.nrix-cart-summary .shop_table th,
.nrix-cart-summary .shop_table td {
    padding: 8px 12px;
    font-size: 13px;
}

/* Gros bouton passer commande */
.nrix-cart-summary-button {
    display: inline-block;
    margin-top: 16px;
    padding: 14px 40px !important;
    background: #000;
    color: #fff;
    font-size: 19px;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
}

.nrix-cart-summary-button:hover {
    background: #555;
}

/* Caution */
.nrix-cart-deposit {
    margin-top: 18px;
    font-weight: 600;
    font-size: 16px;
}

.nrix-cart-summary-note {
    margin-top: 8px;
    font-size: 10px;
    color: #777;
    line-height: 1.4;
}

.nrix-cart-actions-row{
  display: flex;
  align-items: center;
  gap: 14px;
}


.custom-cart-empty {
    padding: 30px;
    margin: 40px auto;
    text-align: center;
}

.custom-cart-empty img {
    max-width: 200px;
    margin-bottom: 20px;
}

.custom-cart-empty h2 {
    margin-top: 0;
}

.custom-cart-empty .button {
    margin-top: 20px;
}


/* Champ quantité */
.nrix-cart-quantity .quantity input.qty {
    width: 34px;
    height: 38px;
    border: 0 !important;
    background: transparent !important;
    text-align: center;
    font-weight: 600;
    padding: 0;
    -moz-appearance: textfield;
}

.nrix-cart-quantity .quantity input.qty::-webkit-outer-spin-button,
.nrix-cart-quantity .quantity input.qty::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Style du sélecteur quantité (bord violet arrondi) */
.nrix-cart-quantity .quantity {
    display: inline-flex;
    align-items: center;
    border: 2px solid #8c3eff;
    border-radius: 999px;
    overflow: hidden;
    height: 38px;
}

/* Boutons +/- Woo */
.nrix-cart-quantity .quantity button,
.nrix-cart-quantity .quantity .minus,
.nrix-cart-quantity .quantity .plus {
    width: 44px;
    height: 38px;
    border: 0 !important;
    background: transparent !important;
    color: #8c3eff;
    font-size: 18px;
    line-height: 1;
    padding: 0;
}

/* Disponibilité aligné a gauche */
p.availability.available {
    text-align: left !important;
    margin-bottom: 4px;
}

/* Quantité + Supprimer sur la même ligne (desktop + mobile) */
.nrix-cart-actions-row{
  display: flex;
  align-items: center;
  gap: 14px;
}

/* Enlève le margin-top desktop qui forçait le retour à la ligne */
.nrix-remove-link-custom{
  margin-top: 0 !important;
}

/* Layout 2 colonnes */
.nrix-cart-layout {
    display: grid;
    grid-template-columns: minmax(0, 2.4fr) minmax(260px, 1fr);
    gap: 32px;
    align-items: flex-start;
    margin-top: 10px;
}

.nrix-cart-main {
    background: #fff;
}

/* Bande période de loc */
.nrix-rental-period {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.2rem;
    margin-bottom: 8px;
}

.nrix-rental-period-label {
    font-weight: 600;
}

.nrix-rental-period-dates,
.nrix-rental-period-dates a {
    color: #8c3eff;
    font-weight: 500;
    text-decoration: none;
}

/* Table générale (mais headers masqués) */
.woocommerce-cart-form__contents {
    width: 100%;
}

.woocommerce-cart-form__contents thead {
    display: none ;
	  border: none !important;
    border-collapse: collapse;	
}

.woocommerce-cart-form__contents th {
	border:none !important;
}

.nrix-cart-subtotal-cell {
    vertical-align: top !important;
    display: flex;
    flex-direction: column;
    align-items: flex-end;  
	  justify-content: space-between;
    gap: 20px; 
	  width: 100% !important;			
}

/* Cellule principale : photo + infos */
.nrix-cart-main-cell {
    padding: 6px 0 !important;
}

.nrix-cart-item-inner {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 14px;
}


.nrix-cart-thumb img {
    width: 132px !important;
    height: auto;
}

/* Infos produit */
.nrix-cart-product-title a,
.nrix-cart-product-title {
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    color: #222;
}

.nrix-cart-product-title a:hover {
    color: #8c3eff;
}

/* Quantité disponible */
.nrix-cart-availability {
    font-size: 11px;
    color: #3bb54a;
    margin-top: 4px;
}

/* Bloc "Prix unitaire / Quantité" */
.nrix-cart-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 6px;
    font-size: 14px;
	  font-weight: 500;
	  color: #8c3eff;
}

.nrix-cart-meta-row .nrix-label {
    font-weight: 500;
    margin-right: 6px;
}

.woocommerce_cart_item_quantity {
	border-radius: 10px !important;
}

/* Lien "Supprimer" (ligne produit) */
.nrix-remove-link-custom {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    color: #000;
    font-size: 0.9rem;
    margin-top: 16px;
}

.nrix-remove-link-custom:hover {
    color: #8c3eff !important;
}

.nrix-remove-icon {
    width: 24px !important;
    height: 24px !important;
    display: inline-block;
}

.nrix-remove-icon:hover {
  color: #8c3eff !important;
}

.nrix-remove-text {
    font-size: 0.9rem;
}

/* Cellule sous-total à droite */
.nrix-cart-subtotal-cell {
    width: 140px;
    padding: 14px 16px;
    text-align: right;
    white-space: nowrap;
    font-size: 14px;
    font-weight: 600;
}

.nrix-cart-subtotal-cell > .woocommerce-Price-amount {
	font-size: 24px;
	font-weight: 600 !important;
}


.woocommerce-cart-form__contents .actions .coupon .input-text {
    flex: 1 1 180px;
}


/* Boutons noirs */
body.woocommerce-cart .woocommerce button.button,
body.woocommerce-cart .woocommerce a.button {
    background: #000;
    border-color: #000;
	  border-radius: 99px;
    color: #fff;
    font-size: 1rem;
	  font-weight: 600;
}

body.woocommerce-cart .woocommerce button.button:hover,
body.woocommerce-cart .woocommerce a.button:hover {
    background: #6009B0;
    border-color: #222;
}

/* Sidebar résumé */
.nrix-cart-sidebar {
    display: flex;
    justify-content: flex-start;
}

.nrix-cart-summary {
    width: 100%;
    background: #f2f2f2;
    padding: 24px 26px;
    text-align: center;
	  border-radius: 10px;
}

.nrix-cart-summary-title {
    font-size: 24px;
    font-weight: 600;
	  margin-bottom: 4px !important;
}

.nrix-cart-summary-title .amount {
    font-weight: 600;
}

.nrix-cart-summary-subtitle {
    font-size: 14px;
    color: #222;
    margin-bottom: 18px;
}

/* Totaux Woo dans la carte */
.nrix-cart-summary .cart_totals {
    margin: 0 0 10px;
}

.nrix-cart-summary .shop_table {
    width: 100%;
    margin: 0 0 10px;
    border: 1px solid #e2e2e2;
}

.nrix-cart-summary .shop_table th,
.nrix-cart-summary .shop_table td {
    padding: 8px 12px;
    font-size: 13px;
}

/* Gros bouton passer commande */
.nrix-cart-summary-button {
    display: inline-block;
    margin-top: 16px;
    padding: 14px 40px !important;
    background: #000;
    color: #fff;
    font-size: 19px;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
}

.nrix-cart-summary-button:hover {
    background: #555;
}

/* Caution */
.nrix-cart-deposit {
    margin-top: 18px;
    font-weight: 600;
    font-size: 16px;
}

.nrix-cart-summary-note {
    margin-top: 8px;
    font-size: 10px;
    color: #777;
    line-height: 1.4;
}

.nrix-cart-actions-row{
  display: flex;
  align-items: center;
  gap: 14px;
}


.custom-cart-empty {
    padding: 30px;
    margin: 40px auto;
    text-align: center;
}

.custom-cart-empty img {
    max-width: 200px;
    margin-bottom: 20px;
}

.custom-cart-empty h2 {
    margin-top: 0;
}

.custom-cart-empty .button {
    margin-top: 20px;
}


/* Champ quantité */
.nrix-cart-quantity .quantity input.qty {
    width: 34px;
    height: 38px;
    border: 0 !important;
    background: transparent !important;
    text-align: center;
    font-weight: 600;
    padding: 0;
    -moz-appearance: textfield;
}

.nrix-cart-quantity .quantity input.qty::-webkit-outer-spin-button,
.nrix-cart-quantity .quantity input.qty::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Style du sélecteur quantité (bord violet arrondi) */
.nrix-cart-quantity .quantity {
    display: inline-flex;
    align-items: center;
    border: 2px solid #8c3eff;
    border-radius: 999px;
    overflow: hidden;
    height: 38px;
}

/* Boutons +/- Woo */
.nrix-cart-quantity .quantity button,
.nrix-cart-quantity .quantity .minus,
.nrix-cart-quantity .quantity .plus {
    width: 44px;
    height: 38px;
    border: 0 !important;
    background: transparent !important;
    color: #8c3eff;
    font-size: 18px;
    line-height: 1;
    padding: 0;
}

/* Retirer TAX */
body.woocommerce-cart small.tax_label {
  display: none !important;
}

body.woocommerce-cart .includes_tax {
  display: none !important;
}

/* Responsive */
@media (max-width: 960px) {

  /* Désactive le comportement "mobile" par défaut de WooCommerce sur le panier */
  .woocommerce-cart table.shop_table_responsive tr td,
  .woocommerce-cart table.shop_table_responsive tr th {
      display: table-cell !important;
      text-align: left; /* on remet la base propre */
  }

  .woocommerce-cart table.shop_table_responsive tr {
      display: table-row !important;
  }

  /* On a déjà désactivé les labels ::before, on les re-blinde au cas où */
  .woocommerce-cart table.shop_table_responsive tr td::before {
      display: none !important;
      content: '' !important;
  }

  .nrix-cart-layout {
      grid-template-columns: 1fr;
      gap: 16px;
  }

  .nrix-cart-sidebar {
      order: -1;
      margin-bottom: 20px;
  }

  .nrix-cart-product-title {
      text-align: left;
  }

  .nrix-cart-item-remove {
      text-align: left;
  }

  /* 4. On compacte un peu les lignes produits */
  .nrix-cart-main-cell {
      width: 100% !important;
      padding: 10px 0 !important;
  }

  /* Image + infos */
  .nrix-cart-item-inner {
      display: grid;
      grid-template-columns: 90px minmax(0, 1fr); /* image + texte */
      gap: 10px;
      align-items: start;
  }

  .nrix-cart-thumb img {
      width: 90px !important;
      height: auto;
  }

  .nrix-cart-product-title a,
  .nrix-cart-product-title {
      font-size: 0.95rem;
  }

  .nrix-cart-meta-row {
      font-size: 0.85rem;
  }

  /* 5. Colonne sous-total : MASQUÉE sur mobile (comme ton screenshot cible) */
  td.nrix-cart-subtotal-cell {
      display: none !important;
  }

  /* Ligne actions (qty à gauche, supprimer à droite) */
  .nrix-cart-actions-row {
      display: flex;
      align-items: center;
      gap: 12px;
      margin-top: 12px;
  }

  /* Retire le margin-top desktop du lien supprimer */
  .nrix-remove-link-custom {
      margin-top: 0 !important;
  }

  /* Optionnel : resserrer le champ quantité sur mobile */
  .nrix-cart-quantity .qty,
  .nrix-qty-select {
      width: 48px;
      padding: 4px 6px;
      font-size: 0.9rem;
  }
}
