/* =========================================================
   AMNU - CHECKOUT CLASICO WOOCOMMERCE
   Versión mejorada desktop + mobile
   ========================================================= */

/* =========================
   CONTENEDOR GENERAL
   ========================= */

.woocommerce-checkout .site-main {
  padding-top: 28px;
  padding-bottom: 52px;
}

.woocommerce-checkout .woocommerce {
  max-width: 1400px;
  margin: 0 auto;
}

/* =========================
   CUPON
   ========================= */

.woocommerce-form-coupon-toggle {
  margin-bottom: 32px;
}

.woocommerce-info {
  background: #f6f2f5 !important;
  border: 1px solid #ece1e7 !important;
  border-top: 1px solid #ece1e7 !important;
  color: #5a1833 !important;
  padding: 18px 20px 18px 52px !important;
  border-radius: 18px;
  box-shadow: none !important;
  font-size: 16px;
}

.woocommerce-info::before {
  color: #b85e2b !important;
  left: 20px !important;
  top: 18px !important;
}

.checkout_coupon.woocommerce-form-coupon {
  margin-top: 14px !important;
  margin-bottom: 26px !important;
  padding: 20px !important;
  border: 1px solid #e6ddd2 !important;
  background: #fffdf7 !important;
  border-radius: 20px;
}

.checkout_coupon input.input-text {
  min-height: 50px;
}

.checkout_coupon .button {
  min-height: 50px;
  background: #b85e2b !important;
  color: #fff !important;
  border: none !important;
  border-radius: 999px !important;
  padding: 0 22px !important;
  font-weight: 600;
  box-shadow: none !important;
}

.checkout_coupon .button:hover {
  opacity: 0.94;
}

/* =========================
   COLUMNAS NATIVAS
   ========================= */

.woocommerce-checkout .col2-set,
.woocommerce-checkout #order_review_heading,
.woocommerce-checkout #order_review {
  box-sizing: border-box;
}

.woocommerce-checkout .col2-set {
  width: 56%;
  float: left;
}

.woocommerce-checkout #order_review_heading,
.woocommerce-checkout #order_review {
  width: 40%;
  float: right;
}

.woocommerce-checkout #order_review_heading {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  padding: 30px 30px 0 30px;
  border: 1px solid #dfd6ca;
  border-bottom: none;
  background: #fffaf0;
  color: #5a1833;
  font-size: 26px;
  font-weight: 700;
  border-radius: 24px 24px 0 0;
}

.woocommerce-checkout #order_review {
  padding: 0 30px 30px 30px;
  border: 1px solid #dfd6ca;
  border-top: none;
  background: #fffaf0;
  border-radius: 0 0 24px 24px;
  box-shadow: 0 10px 30px rgba(91, 24, 51, 0.04);
}

.woocommerce-checkout::after,
.woocommerce-checkout form.checkout::after {
  content: "";
  display: block;
  clear: both;
}

/* =========================
   TITULOS
   ========================= */

.woocommerce-checkout h1,
.woocommerce-checkout h2,
.woocommerce-checkout h3 {
  color: #5a1833;
  font-weight: 700;
}

.woocommerce-billing-fields h3,
.woocommerce-additional-fields h3 {
  font-size: 28px;
  margin-bottom: 24px !important;
  line-height: 1.1;
}

/* =========================
   LABELS
   ========================= */

.woocommerce-checkout label {
  display: inline-block;
  margin-bottom: 8px;
  color: #1f2430;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.01em;
}

.woocommerce-checkout .required {
  color: #cf2e2e;
}

/* =========================
   CAMPOS
   ========================= */

.woocommerce-checkout .form-row {
  margin-bottom: 20px;
}

.woocommerce-checkout input.input-text,
.woocommerce-checkout textarea,
.woocommerce-checkout select,
.woocommerce-checkout .select2-container--default .select2-selection--single {
  width: 100%;
  background: #fbfbfc !important;
  border: 1px solid #d8dce3 !important;
  border-radius: 16px !important;
  box-shadow: none !important;
  color: #4d596b !important;
  font-size: 16px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.woocommerce-checkout input.input-text,
.woocommerce-checkout textarea,
.woocommerce-checkout select {
  padding: 14px 18px !important;
  min-height: 56px;
}

.woocommerce-checkout textarea {
  min-height: 120px;
  resize: vertical;
  line-height: 1.5;
}

.woocommerce-checkout input.input-text:hover,
.woocommerce-checkout textarea:hover,
.woocommerce-checkout select:hover,
.woocommerce-checkout .select2-container--default .select2-selection--single:hover {
  border-color: #c9ced8 !important;
  background: #ffffff !important;
}

.woocommerce-checkout input.input-text:focus,
.woocommerce-checkout textarea:focus,
.woocommerce-checkout select:focus,
.woocommerce-checkout .select2-container--focus .select2-selection--single {
  border-color: #b85e2b !important;
  box-shadow: 0 0 0 3px rgba(184, 94, 43, 0.12) !important;
  outline: none !important;
  background: #ffffff !important;
}

.woocommerce-checkout ::placeholder {
  color: #9aa3b0;
  opacity: 1;
}

/* Texto fijo país */
.woocommerce-checkout .woocommerce-billing-fields__field-wrapper strong {
  color: #5a1833;
  font-size: 15px;
}

/* =========================
   SELECT2
   ========================= */

.woocommerce-checkout .select2-container .select2-selection--single {
  height: 56px !important;
  display: flex !important;
  align-items: center !important;
}

.woocommerce-checkout .select2-container--default .select2-selection--single .select2-selection__rendered {
  line-height: 56px !important;
  padding-left: 18px !important;
  color: #4d596b !important;
}

.woocommerce-checkout .select2-container--default .select2-selection--single .select2-selection__arrow {
  height: 56px !important;
  right: 12px !important;
}

/* =========================
   OCULTAR SOLO LO INNECESARIO
   ========================= */

#ship-to-different-address,
.woocommerce-shipping-fields {
  display: none !important;
}

/* =========================
   RESUMEN DEL PEDIDO
   ========================= */

.woocommerce-checkout-review-order-table {
  border: none !important;
  margin: 0 0 24px 0 !important;
}

.woocommerce-checkout-review-order-table th,
.woocommerce-checkout-review-order-table td {
  padding: 18px 0 !important;
  border-color: #e4dbcf !important;
  color: #5a1833;
  font-size: 15px;
  vertical-align: top;
}

.woocommerce-checkout-review-order-table th {
  font-weight: 700;
  font-size: 16px;
}

.woocommerce-checkout-review-order-table td {
  text-align: right;
}

.woocommerce-checkout-review-order-table .product-name {
  text-align: left;
  font-weight: 600;
  line-height: 1.45;
}

.woocommerce-checkout-review-order-table .product-total {
  font-weight: 600;
}

.woocommerce-checkout-review-order-table ul.wc-item-meta {
  list-style: none !important;
  margin: 10px 0 0 0 !important;
  padding: 0 !important;
}

.woocommerce-checkout-review-order-table ul.wc-item-meta li {
  font-size: 13px;
  line-height: 1.5;
  color: #7a6a61;
  margin-bottom: 8px;
}

.woocommerce-checkout-review-order-table ul.wc-item-meta strong {
  display: none !important;
}



/* =========================
   ENVIO
   ========================= */

.woocommerce ul#shipping_method {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.woocommerce ul#shipping_method li {
  margin-bottom: 14px !important;
  line-height: 1.65;
}

.woocommerce ul#shipping_method li label {
  color: #1f2430;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
}

.woocommerce ul#shipping_method li input {
  margin-right: 8px;
}

/* =========================
   METODOS DE PAGO
   ========================= */

#payment {
  background: transparent !important;
  border: 0 !important;
  margin-top: 18px;
}

#payment ul.payment_methods {
  border-bottom: 0 !important;
  padding: 0 !important;
  margin: 0 0 18px 0 !important;
}

#payment ul.payment_methods li {
  margin-bottom: 14px !important;
}

#payment ul.payment_methods li label {
  color: #1f2430;
  font-weight: 700;
  font-size: 15px;
}

#payment div.payment_box {
  background: #f4f1ec !important;
  color: #4b4b4b !important;
  padding: 18px !important;
  border-radius: 16px !important;
  box-shadow: none !important;
  line-height: 1.7;
}

#payment div.payment_box::before {
  display: none !important;
}

/* =========================
   PRIVACIDAD
   ========================= */

.woocommerce-privacy-policy-text {
  display:none;
}



/* =========================
   BOTON FINAL
   ========================= */

.woocommerce #payment #place_order,
.woocommerce-page #payment #place_order {
  width: 100%;
  min-height: 58px;
  background: #b85e2b !important;
  color: #fff !important;
  border: none !important;
  border-radius: 999px !important;
  font-size: 18px;
  font-weight: 700;
  padding: 14px 24px !important;
  box-shadow: none !important;
  transition: transform 0.2s ease, opacity 0.2s ease, box-shadow 0.2s ease;
}

.woocommerce #payment #place_order:hover,
.woocommerce-page #payment #place_order:hover {
  opacity: 0.96;
  transform: translateY(-1px);
  box-shadow: 0 10px 18px rgba(184, 94, 43, 0.18);
}

/* =========================
   FILAS DOS COLUMNAS
   ========================= */

.woocommerce-checkout .form-row-first,
.woocommerce-checkout .form-row-last {
  width: 48%;
}

.woocommerce-checkout .form-row-first {
  float: left;
}

.woocommerce-checkout .form-row-last {
  float: right;
}

.woocommerce-checkout .form-row-wide {
  clear: both;
}

/* =========================
   MOBILE
   ========================= */

@media (max-width: 768px) {
  .woocommerce-checkout .site-main {
    padding-top: 14px;
    padding-bottom: 28px;
  }

  .woocommerce-checkout .woocommerce {
    padding-left: 12px;
    padding-right: 12px;
  }

  .woocommerce-form-coupon-toggle {
    margin-bottom: 22px;
  }

  .woocommerce-info {
    font-size: 15px;
    line-height: 1.5;
    padding: 16px 16px 16px 46px !important;
    border-radius: 16px;
  }

  .woocommerce-info::before {
    left: 16px !important;
    top: 16px !important;
  }

  .checkout_coupon.woocommerce-form-coupon {
    padding: 16px !important;
    border-radius: 16px;
  }

  .checkout_coupon .form-row-first,
  .checkout_coupon .form-row-last {
    width: 100% !important;
    float: none !important;
  }

  .checkout_coupon .button {
    width: 100%;
    margin-top: 10px;
  }

  .woocommerce-checkout .col2-set,
  .woocommerce-checkout #order_review_heading,
  .woocommerce-checkout #order_review {
    float: none !important;
    width: 100% !important;
  }

  .woocommerce-checkout .col2-set {
    margin-bottom: 24px;
  }

  .woocommerce-billing-fields h3,
  .woocommerce-additional-fields h3 {
    font-size: 26px;
    margin-bottom: 18px !important;
  }

  .woocommerce-checkout #order_review_heading {
    padding: 22px 18px 0 18px;
    font-size: 28px;
    border-radius: 20px 20px 0 0;
  }

  .woocommerce-checkout #order_review {
    padding: 0 18px 22px 18px;
    border-radius: 0 0 20px 20px;
  }

  .woocommerce-checkout .form-row-first,
  .woocommerce-checkout .form-row-last {
    width: 100%;
    float: none;
  }

  .woocommerce-checkout input.input-text,
  .woocommerce-checkout textarea,
  .woocommerce-checkout select {
    min-height: 54px;
    font-size: 16px !important;
    border-radius: 14px !important;
  }

  .woocommerce-checkout textarea {
    min-height: 110px;
  }

  .woocommerce-checkout .select2-container .select2-selection--single {
    height: 54px !important;
  }

  .woocommerce-checkout .select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 54px !important;
  }

  .woocommerce-checkout-review-order-table th,
  .woocommerce-checkout-review-order-table td {
    font-size: 14px;
    padding: 14px 0 !important;
  }

  #payment div.payment_box {
    padding: 16px !important;
    border-radius: 14px !important;
  }

  .woocommerce-privacy-policy-text {
    font-size: 14px;
    line-height: 1.7;
  }

  .woocommerce #payment #place_order,
  .woocommerce-page #payment #place_order {
    min-height: 54px;
    font-size: 17px;
  }
}