/* =========================
   SELECTS NATIVOS checkout (país y provincia)
   ========================= */
#billing_country_field select,
#billing_state_field select {
  width: 100%;
  /* height: 56px; */
  /* padding: 8px 14px; */
  padding: 34px 14px 8px;
  font-size: 16px;
  border-radius: 10px !important;
  border: 2px solid #606666 !important;
  background-color: #FFFAF4 !important;
  color: #606666;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  font-family: 'Poppins', sans-serif;
}
#billing_country_field select:focus,
#billing_state_field select:focus {
  border-color: rgba(0,0,0,0.6) !important;
}
#billing_country_field,
#billing_state_field {
  position: relative;
}



.woocommerce-checkout__wrapper .woocommerce-shipping-fields{
    display: none !important;
}

.woocommerce-checkout__wrapper{
    display: flex;
    gap: 80px;
    font-family: 'Poppins', sans-serif !important;
}

@media (max-width: 1199px) {
    .woocommerce-checkout__wrapper{
        flex-direction: column;
    }
}

/* Hide Fields */
.woocommerce-billing-fields #billing_first_name_field,
.woocommerce-billing-fields #billing_last_name_field,
.woocommerce-billing-fields #billing_phone_field,
.woocommerce-billing-fields #billing_email_field{
    display: none !important;
}

/*Customer Details*/
#customer_details{
    width: 100% ;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

#order_review{
    width: 550px;
    max-width: 100%;    
}

@media (max-width: 1199px) {
    #order_review{
        width: 100%;       
    }
}

form.checkout.woocommerce-checkout h3{
    font-size: 15px;
    text-transform: uppercase;
    color: #606666;
    font-weight: 800;
    letter-spacing: 0.8px;
}

/* Inputs */
/* Wrapper */
.woocommerce form .form-row{
  position: relative;
  margin-bottom: 20px;
  padding: 0px 15px 15px 0px;
  margin: 0px;
  font-family: 'Poppins', sans-serif;
}

.woocommerce form .form-row-first, .woocommerce form .form-row-last, .woocommerce-page form .form-row-first, .woocommerce-page form .form-row-last {
    width: 50%;
    overflow: visible;
}

/* Input */
.woocommerce-checkout .form-row input.input-text,
.woocommerce-checkout .form-row textarea {
  width: 100%;
  height: fit-content;
  padding: 34px 14px 8px;  
  font-size: 16px;
  border-radius: 10px !important;
  border: 2px solid #606666 !important;
  background-color: #FFFAF4 !important;
  outline: none;
}

.woocommerce-checkout .form-row textarea::placeholder {
    color: transparent;
}

/* Label floating */
.woocommerce-checkout .form-row label {
  position: absolute;
  left: 10px;
  top: 20px;
  transform: translateY(-50%);
  font-size: 14px;
  color: rgba(0,0,0,0.55);
  pointer-events: none;
  transition: all 0.2s ease;
  background: transparent;
  padding: 0 6px;
}

/* Focus OR has value */
.woocommerce-checkout .form-row input:focus + label,
.woocommerce-checkout .form-row textarea:focus + label,
.woocommerce-checkout .form-row.filled label {
  top: 6px;
  font-size: 12px;
  color: rgba(0,0,0,0.7);
}

/* Focus border */
.woocommerce-checkout .form-row input:focus,
.woocommerce-checkout .form-row textarea:focus {
  border-color: rgba(0,0,0,0.6);
}

/* =========================
   FIX: Terms checkbox (place-order)
   ========================= */

/* No aplicar floating labels en el bloque final */
.woocommerce-checkout .place-order label {
  position: static !important;
  transform: none !important;
  top: auto !important;
  left: auto !important;
  background: transparent !important;
  padding: 0 !important;
}

/* Asegurar clicks */
.woocommerce-checkout .place-order label,
.woocommerce-checkout .place-order label * {
  pointer-events: auto !important;
}

/* El contenedor del checkbox no debe ser flex-reverse */
.woocommerce-checkout .place-order .form-row {
  display: block !important;
}

/* Alinear checkbox + texto prolijo */
.woocommerce-checkout .place-order .woocommerce-form__label-for-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
}

/* Tamaño y alineación del checkbox */
.woocommerce-checkout .place-order input.input-checkbox {
  margin-top: 2px;
  flex: 0 0 auto;
}


/* VALIDATION COLOR */
.woocommerce form .form-row.woocommerce-validated input.input-text, .woocommerce form .form-row.woocommerce-validated select {
    border-color: #606666;
}



/* SELECTS */
span.select2-selection.select2-selection--single {
  height: 56px;
  align-content: center;
}

.select2-container .select2-selection--single .select2-selection__rendered {
  padding: 8px 14px;
}

.select2-container .select2-dropdown, .select2-container .select2-selection {
  background: #FFFAF4;
}

.select2-container--default .select2-selection--single {
  border: 2px solid #606666;
  border-radius: 10px;
}


/* Tipo de factura select: igual a país (nativo) */
#billing_tipo_factura_field select {
  width: 100%;
  height: 56px;
  padding: 8px 14px;
  font-size: 16px;
  border-radius: 10px !important;
  border: 2px solid #606666 !important;
  background-color: #FFFAF4 !important;
  color: #606666;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  font-family: 'Poppins', sans-serif;
}
#billing_tipo_factura_field select:focus {
  border-color: rgba(0,0,0,0.6) !important;
}
#billing_tipo_factura_field {
  position: relative;
}
/* #billing_tipo_factura_field::after {
  content: '\25BC';
  position: absolute;
  right: 22px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: #606666;
  font-size: 16px;
} */

.woocommerce-checkout ul#shipping_method li {
    display: flex;
    padding: 11px 0px;
    width: 100%;
    max-width: 450px;
}

.woocommerce ul#shipping_method li label {
    flex: 1;    
    color: #606666;
    font-weight: 500;
    font-size: 16px;
    font-family: "Poppins", sans-serif;
}

.woocommerce-checkout ul#shipping_method li .amount {    
    float: right;
    padding-right: 20px;
    text-transform: uppercase;
}

.woocommerce-checkout #payment{
    background: #DCD4C5 !important;
    font-family: 'Poppins', sans-serif !important;
    color: #606666 !important;
    border-radius: 14px;
}

.woocommerce-checkout #payment li{
    font-weight: 500 !important;
    font-size: 16px !important;
}

.woocommerce-checkout #payment div.payment_box{
    background: #FFFAF4 !important;    
}

.woocommerce-checkout #payment div.payment_box::before{
    border: 1em solid #FFFAF4;
    border-right-color: transparent;
    border-left-color: transparent;
    border-top-color: transparent;
}

.woocommerce-checkout #payment .payment_box, .woocommerce-checkout #payment p{
    font-weight: 400 !important;
    font-size: 15px !important;
}

.woocommerce-checkout #payment a{
    font-weight: 600 !important;
    font-size: 15px !important;
    color: #424545 !important;
}

.woocommerce-checkout button#place_order{
    width: 100%;
    background: #606666 !important;
    color: #FFFFFF !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    padding: 16px !important;
    border-radius: 100px !important;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}


/* =========================
   ITEMS
   ========================= */

   /* =========================================
   NIMA – Checkout items (Order review)
========================================= */

/* Quitar “look tabla” y dar aire */
.woocommerce-checkout #order_review table.shop_table {
  border: 0;
  border-collapse: collapse;
  width: 100%;
}

.woocommerce-checkout #order_review table.shop_table tbody tr {
  border: 0;
}

.woocommerce-checkout #order_review table.shop_table td {
  border: 0;
  padding: 0;
}

/* Cada item como bloque */
.woocommerce-checkout #order_review .nima-checkout-item {
  display: flex;
  gap: 16px;
  align-items: stretch;
  padding: 8px 0;
  border-bottom: 2px solid #606666;
}

.woocommerce-checkout #order_review tr:first-child .nima-checkout-item {
  border-top: 2px solid #606666;
  border-bottom: 2px solid #606666;
}

/* Imagen */
.woocommerce-checkout #order_review .nima-checkout-item__image {
  flex: 0 0 140px;
  display: flex;
  align-items: center;
  justify-content: center;

  width: 140px !important;
  height: 140px;
  border-radius: 16px;
  overflow: hidden;
  background: rgba(0,0,0,0.03);
}

.woocommerce-checkout #order_review .nima-checkout-item__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Info */
.woocommerce-checkout #order_review .nima-checkout-item__info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* Título */
.woocommerce-checkout #order_review .nima-checkout-item__title, 
.woocommerce-checkout #order_review .nima-checkout-item__title a
{
  font-weight: 600;
  font-size: 16px;
  line-height: 1.2;
  color: #606666 !important;
}

/* Variaciones / meta debajo del nombre (si Woo las imprime) */
.woocommerce-checkout #order_review .nima-checkout-item__title .variation {
  margin: 6px 0 0;
  font-size: 13px;
  color: rgba(0,0,0,0.55);
}

.woocommerce-checkout #order_review .nima-checkout-item__title .variation dt,
.woocommerce-checkout #order_review .nima-checkout-item__title .variation dd {
  display: inline;
  margin: 0;
}

.woocommerce-checkout #order_review .nima-checkout-item__title .variation dt::after {
  content: ": ";
}

/* Precio unitario × qty */
.woocommerce-checkout #order_review .nima-checkout-item__unit-price {
  margin-top: 6px;
  color: rgba(0,0,0,0.55);
  font-size: 14px;
}

/* Subtotal */
.woocommerce-checkout #order_review .nima-checkout-item__subtotal {
  margin-top: auto;
  text-align: left;
  font-weight: 500;
  font-size: 15px;
  color: #606666;
  white-space: nowrap;
}

/* Mobile */
@media (max-width: 480px) {
  .woocommerce-checkout #order_review .nima-checkout-item {
    gap: 12px;
    padding: 14px 0;
  }

  .woocommerce-checkout #order_review .nima-checkout-item__image {
    width: 68px;
    height: 68px;
    flex-basis: 68px;
    border-radius: 14px;
  }

  .woocommerce-checkout #order_review .nima-checkout-item__title {
    font-size: 15px;
  }

  .woocommerce-checkout #order_review .nima-checkout-item__unit-price {
    font-size: 13px;
  }
}


 .woocommerce-checkout #order_review table.shop_table .cart-subtotal th,
 .woocommerce-checkout #order_review table.shop_table .cart-subtotal td{
    padding-top: 50px;
 }

 .woocommerce-checkout #order_review table.shop_table tfoot th{
    padding-left: 0px;
    text-transform: uppercase;
    font-weight: 700;
    color:#606666;
 }

 .woocommerce-checkout #order_review table.shop_table tfoot td {
    text-align: end;
    font-weight: 700;
    color: #606666;
}


/* =========================================
   NIMA – Checkout coupon
========================================= */

.woocommerce-checkout .woocommerce-form-coupon {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  margin: -20px 0px 20px 0px;
  padding: 18px;
  border-radius: 14px;  
  border: none !important;
}

/* Form rows reset */
.woocommerce-checkout .woocommerce-form-coupon .form-row {
  margin: 0;
  padding: 0;
  width: auto;
  float: none;
}

/* Input */
.woocommerce-checkout .woocommerce-form-coupon input#coupon_code {
  width: 100%;
  height: 56px;
  padding: 0 16px;
  border-radius: 999px;
  background: transparent;
  font-size: 15px;
  color: rgba(0,0,0,0.75);

  outline: none;
}

.woocommerce-checkout .woocommerce-form-coupon input#coupon_code::placeholder {
  color: rgba(0,0,0,0.45);
}

/* Focus */
.woocommerce-checkout .woocommerce-form-coupon input#coupon_code:focus {
  border-color: rgba(0,0,0,0.6);
}


/* Button */
.woocommerce-checkout .woocommerce-form-coupon button.button {
  height: 56px;
  padding: 0 24px;

  border-radius: 999px;
  border: 0;

  background: rgba(0,0,0,0.65);
  color: #fff;

  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;

  cursor: pointer;
  transition: transform .15s ease, opacity .15s ease;
}

.woocommerce-checkout .woocommerce-form-coupon button.button:hover {
  transform: translateY(-1px);
  opacity: .95;
}

/* Remove clearfix */
.woocommerce-checkout .woocommerce-form-coupon .clear {
  display: none;
}

/* Mobile */
@media (max-width: 480px) {
  .woocommerce-checkout .woocommerce-form-coupon {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .woocommerce-checkout .woocommerce-form-coupon button.button {
    width: 100%;
  }
}



/* =========================================
   NIMA – Order Received - Thankyou Page
========================================= */

/* =========================================
   NIMA – Order received / Thank you
========================================= */

.woocommerce-order-received .woocommerce {
  max-width: 980px;
  margin: 0 auto;
  padding: 48px 20px;
}

/* Título principal */
.woocommerce-order-received .woocommerce-thankyou-order-received {
  font-size: 42px;
  line-height: 1.05;
  font-weight: 500;
  color: rgba(0,0,0,0.65);
  margin-bottom: 24px;
}

/* Intro / mensaje */
.woocommerce-order-received .woocommerce-notice {
  background: rgba(0,0,0,0.06);
  border: 0;
  border-radius: 14px;
  padding: 24px 28px;
  margin-bottom: 32px;

  font-size: 16px;
  color: rgba(0,0,0,0.65);
}

/* ===============================
   Order overview (datos rápidos)
================================ */

.woocommerce-order-received ul.order_details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;

  margin: 0 0 40px;
  padding: 0;
  list-style: none;
}

.woocommerce-order-received ul.order_details li {
  background: rgba(0,0,0,0.05);
  border-radius: 14px;
  padding: 18px 20px;
  margin-right: 0px !important;
  font-size: 14px;
  color: rgba(0,0,0,0.55);
}

.woocommerce-order-received ul.order_details li strong {
  display: block;
  margin-top: 6px;
  font-size: 16px;
  font-weight: 600;
  color: rgba(0,0,0,0.72);
}

/* Mobile */
@media (max-width: 640px) {
  .woocommerce-order-received ul.order_details {
    grid-template-columns: 1fr;
  }
}

/* ===============================
   Section titles
================================ */

.woocommerce-order-received h2 {
  font-size: 24px;
  font-weight: 500;
  color: rgba(0,0,0,0.65);
  margin: 48px 0 18px;
}

.woocommerce-order-received .woocommerce-order a{
  color: rgba(0,0,0,0.65) !important;
  font-weight: 700 !important;
}

/* ===============================
   Order details table (productos)
================================ */

.woocommerce-order-received table.shop_table {
  border: 0;
  border-collapse: collapse;
  width: 100%;
}

.woocommerce-order-received table.shop_table thead {
  display: none;
}

.woocommerce-order-received table.shop_table tbody tr {
  border-top: 1px solid rgba(0,0,0,0.18);
}

.woocommerce-order-received table.shop_table td {
  padding: 16px 0;
  border: 0;
}

/* Producto */
.woocommerce-order-received table.shop_table td.product-name {
  font-weight: 600;
  color: rgba(0,0,0,0.72);
}

.woocommerce-order-received table.shop_table td.product-name strong {
  font-weight: 600;
}

/* Variaciones */
.woocommerce-order-received table.shop_table .variation {
  margin-top: 6px;
  font-size: 13px;
  color: rgba(0,0,0,0.55);
}

/* Subtotal por item */
.woocommerce-order-received table.shop_table td.product-total {
  text-align: right;
  font-weight: 600;
  color: rgba(0,0,0,0.72);
}

/* ===============================
   Totales
================================ */

.woocommerce-order-received table.shop_table tfoot tr {
  border-top: 1px solid rgba(0,0,0,0.18);
}

.woocommerce-order-received table.shop_table tfoot th,
.woocommerce-order-received table.shop_table tfoot td {
  padding: 14px 0;
  border: 0;
  font-size: 15px;
}

.woocommerce-order-received table.shop_table tfoot th {
  text-align: left;
  font-weight: 600;
  color: rgba(0,0,0,0.55);
}

.woocommerce-order-received table.shop_table tfoot td {
  text-align: right;
  font-weight: 600;
  color: rgba(0,0,0,0.72);
}

/* Total final */
.woocommerce-order-received table.shop_table tfoot tr:last-child th,
.woocommerce-order-received table.shop_table tfoot tr:last-child td {
  font-size: 18px;
  font-weight: 700;
}

/* ===============================
   Customer details
================================ */

.woocommerce-order-received address {
  background: rgba(0,0,0,0.06);  
  border-radius: 14px !important;
  padding: 24px 28px;
  font-style: normal;
  border: none !important;
  font-size: 15px;
  color: rgba(0,0,0,0.65);
}

/* ===============================
   CTA final
================================ */

.woocommerce-order-received .woocommerce-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  margin-top: 32px;
  padding: 14px 28px;

  border-radius: 999px;
  border: 0;

  background: rgba(0,0,0,0.65);
  color: #fff;

  font-size: 14px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  text-decoration: none;

  transition: transform .15s ease, opacity .15s ease;
}

.woocommerce-order-received .woocommerce-button:hover {
  transform: translateY(-1px);
  opacity: .95;
}


/* Agregados 22-12*/
/* Oculta los campos estándar de WooCommerce */
#billing_first_name_field,
#billing_last_name_field,
#billing_email_field,
#billing_phone_field {
  display: none !important;
}

#order_review tr.woocommerce-shipping-totals.shipping ul {
    display: none !important;
}