/* ====== Checkout - Página Finaliza tu reserva ====== */

/* Hero principal */
.reserva-hero {
  background: #f7c7d5;
  padding: 2.5rem 0;
  text-align: center;
 
}

.reserva-hero h1 {
  color: #4a2b33;
  font-size: 2.6rem;
  font-weight: 700;
  margin: 31;
}

/* Contenedor principal */
.checkout-wrapper {
  padding: 3rem 0;
  display: flex;
  justify-content: center;
  background: #fff;
}

.checkout-container {
  width: 90%;
  max-width: 1350px;
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2rem;
}


/* Contenedor interno */
.checkout-container,
.woocommerce-checkout form.checkout {
  display: grid !important;
  /*grid-template-columns: 1.8fr 1fr;  más equilibrado */
  gap: 3.5rem;
  width: 135%;
  /* 
  max-width: 1350px; 
  más ancho y centrado */
  margin: 0 auto;
  align-items: start;
  overflow: visible;
}

/* Columna izquierda */
.checkout-left {
  background: #fff;
  padding-right: 1rem;
  margin-left: 31px;
}

.checkout-left h2 {
  font-size: 1.3rem;
  color: #4a2b33;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.woocommerce-billing-fields h3{
  display: none;
}

/* Campos del formulario WooCommerce */
.woocommerce form .form-row input.input-text,
.woocommerce form .form-row select,
.woocommerce form .form-row textarea {
  border: 1px solid #f3b9c8;
  border-radius: 6px;
  width: 94%;
  padding: 0.7rem 0.8rem;
  font-size: 1rem;
  margin-bottom: 1rem;
  transition: all 0.2s ease;
}

.woocommerce form .form-row input.input-text:focus,
.woocommerce form select:focus,
.woocommerce form textarea:focus {
  border-color: #e48ca1;
  box-shadow: 0 0 6px rgba(228, 140, 161, 0.3);
  outline: none;
}

.woocommerce form .form-row label {
  font-weight: 600;
  color: #4a2b33;
  margin-bottom: 0.3rem;
  display: block;
  font-size: 14px;
}

/* Columna derecha más separada y flotada a la derecha */
.checkout-right {
  margin-right: 1rem;
  background: #fff;
  border: 1px solid #f3b9c8;
  border-radius: 15px;
  padding: 2rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 2rem;
  height: fit-content;
  width: 110%;
}

.checkout-right h2 {
  font-size: 1.3rem;
  color: #4a2b33;
  font-weight: 700;
  text-align: center;
  margin-bottom: 1rem;
}

/* Mejoras en el título */
.checkout-left h2,
.checkout-right h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  color: #4a2b33;
  border-bottom: 2px solid #f3b9c8;
  padding-bottom: 0.5rem;
  margin-bottom: 1.5rem;
  text-align: left;
}


/* Resumen del pedido */
.order-review {
  border-top: 1px dashed #e2a8b9;
  border-bottom: 1px dashed #e2a8b9;
  padding: 1rem 0;
  margin-bottom: 1rem;
}

/* Sección de instrucciones de pago */
.payment-info p strong {
  color: #4a2b33;
  font-weight: 700;
}

.payment-info ul {
  margin: 0.5rem 0 1rem 1.2rem;
  padding: 0;
  list-style: disc;
  color: #4a2b33;
  font-size: 0.95rem;
}

/* Política de privacidad */
.privacy-info {
  font-size: 0.9rem;
  color: #4a2b33;
  border-top: 1px solid #f1c5cf;
  padding-top: 1rem;
}

.privacy-info a {
  color: #b74c73;
  text-decoration: underline;
}

/* Botón de realizar pedido */
#place_order,
button[name="woocommerce_checkout_place_order"],
.checkout-right .button {
  background: linear-gradient(180deg, #ff9fba 0%, #f36f96 100%);
  color: white !important;
  border: none;
  border-radius: 25px;
  font-weight: 600;
  padding: 0.9rem 1.5rem;
  width: 100%;
  cursor: pointer;
  transition: background 0.3s ease;
}

#place_order:hover,
button[name="woocommerce_checkout_place_order"]:hover {
  background: linear-gradient(180deg, #f36f96 0%, #ff9fba 100%);
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .checkout-container {
    grid-template-columns: 1fr;
  }

  .checkout-right {
    margin-top: 2rem;
  }
}


.checkout-reserva-detalle {
  border-bottom: 1px dashed #e2a8b9;
  margin-bottom: 1rem;
}

.checkout-reserva-detalle p {
  margin: 0.3rem 0;
  color: #4a2b33;
  font-size: 0.95rem;
}

.resumen-pedido-box {
  border: 1px solid #f3b9c8;
  border-radius: 12px;
  padding: 1.8rem;
  background: #fff;
  font-family: "Lato";
}

.resumen-pedido-box h2 {
  text-align: center;
  color: #4a2b33;
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

/* Campos */
.resumen-campos p {
  font-size: 0.95rem;
  color: #4a2b33;
  border-bottom: 1px dashed #e2a8b9;
  padding-bottom: 0.3rem;
  margin: 0.4rem 0;
}

/* Separador */
.resumen-separador {
  border: none;
  border-top: 1px dashed #e2a8b9;
  margin: 1.2rem 0;
}

/* Totales */
.resumen-totales p {
  font-size: 0.95rem;
  color: #4a2b33;
  margin: 0.3rem 0;
  display: flex;
  justify-content: space-between;
}

.resumen-totales p strong {
  font-weight: 700;
}

/* Pago */
.payment-info {
  margin-top: 1.2rem;
}

.payment-info p strong {
  color: #4a2b33;
  font-weight: 700;
}

.payment-info ul {
  margin: 0.5rem 0 1rem 1.2rem;
  padding: 0;
  list-style: disc;
  color: #4a2b33;
  font-size: 0.9rem;
}

/* Política */
.privacy-info {
  font-size: 0.9rem;
  color: #4a2b33;
  border-top: 1px solid #f1c5cf;
  padding-top: 1rem;
}

.privacy-info a {
  color: #b74c73;
  text-decoration: underline;
}

/* Botón */
.checkout-button #place_order {
  background: linear-gradient(180deg, #ff9fba 0%, #f36f96 100%);
  color: #fff !important;
  border: none;
  border-radius: 25px;
  font-weight: 600;
  padding: 0.9rem 1.5rem;
  width: 100%;
  cursor: pointer;
  transition: background 0.3s ease;
  margin-top: 1.2rem;
}

.checkout-button #place_order:hover {
  background: linear-gradient(180deg, #f36f96 0%, #ff9fba 100%);
}

/* Responsive */
@media (max-width: 900px) {
  .checkout-container {
    grid-template-columns: 1fr;
  }
  .checkout-right {
    margin-top: 2rem;
  }
}

.checkout-terms {
  border-top: 1px dashed #f3b9c8;
  margin-top: 1rem;
  padding-top: 1rem;
  font-size: 0.9rem;
  color: #4a2b33;
}

.checkout-terms label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.checkout-terms a {
  color: #b74c73;
  text-decoration: underline;
}

.checkout-terms input[type="checkbox"] {
  accent-color: #f36f96;
  width: 18px;
  height: 18px;
  cursor: pointer;
}


/* === Ajuste para mantener diseño en dos columnas === */
.woocommerce-checkout form.checkout {
  display: grid !important;
  grid-template-columns: 2fr 1fr;
  gap: 2rem;
  align-items: start;
}


/* Ajuste responsive */
@media (max-width: 900px) {
  .woocommerce-checkout form.checkout {
    grid-template-columns: 1fr !important;
  }

.checkout-left {
  width: 62%;
}
  .checkout-right {
    margin-top: -2rem;
    margin-left: 10px;
    width: 56%;
  }
}

/*------- CUPON---------*/
/* === Cupón dentro del resumen === */
.resumen-cupon {
  margin-bottom: 1.5rem;
  text-align: center;
}

.resumen-cupon h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  color: #4a2b33;
  font-weight: 700;
  margin-bottom: 0.8rem;
  border-bottom: 1px dashed #f3b9c8;
  padding-bottom: 0.3rem;
}

.checkout-coupon form {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.checkout-coupon input.input-text {
  border: 1px solid #f3b9c8;
  border-radius: 8px;
  padding: 0.5rem 0.8rem;
  width: 100%;
  max-width: 220px;
  text-align: center;
}

.checkout-coupon button.button {
  background: linear-gradient(180deg, #ff9fba 0%, #f36f96 100%);
  border: none;
  border-radius: 25px;
  color: #fff;
  padding: 0.6rem 1.2rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s ease;
}

.checkout-coupon button.button:hover {
  background: linear-gradient(180deg, #f36f96 0%, #ff9fba 100%);
}


/* 🔧 Eliminar el borde discontínuo que aparece alrededor del checkout */
.woocommerce form.checkout fieldset,
.woocommerce-billing-fields,
.woocommerce-shipping-fields,
#order_review,
#customer_details {
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
}

/* En algunos temas, WooCommerce agrega un borde superior e inferior con dashed */
.woocommerce-checkout #customer_details,
.woocommerce-checkout #order_review {
  border-top: none !important;
  border-bottom: none !important;
}

/* También elimina cualquier pseudo-elemento decorativo que crea el borde */
.woocommerce form.checkout::before,
.woocommerce form.checkout::after {
  display: none !important;
}

/* A veces el borde viene del contenedor principal de WooCommerce */
.woocommerce {
  border: none !important;
}


/* Evita que empujen el layout */
.woocommerce-NoticeGroup-checkout {
  grid-column: 1 / span 1;
}

/* Alineación correcta en pantallas pequeñas 
@media (max-width: 900px) {
  .checkout-left .woocommerce-error {
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
  }
*/
}

body.woocommerce-checkout .woocommerce-notices-wrapper {
  display: none !important;
}


/* === Página de Gracias (Thank You Page) === */
.woocommerce-order {
  background-color: #fff;
  border: 1px solid #f3b9c8;
  border-radius: 15px;
  padding: 2.5rem 3rem;
  max-width: 900px;
  margin: 3rem auto;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
  font-family: "Lato", sans-serif;
}

.woocommerce-thankyou-order-received {
  font-family: "Playfair Display", serif;
  font-size: 1.6rem;
  color: #4a2b33;
  text-align: center;
  margin-bottom: 2rem;
  font-weight: 600;
}

/* Datos principales del pedido */
.woocommerce-order-overview {
  background: #fdf3f6;
  border: 1px solid #f3b9c8;
  border-radius: 12px;
  padding: 1.2rem 2rem;
  margin-bottom: 2rem;
  color: #4a2b33;
}

.woocommerce-order-overview li {
  margin-bottom: 0.3rem;
  font-size: 1rem;
}

.woocommerce-order-overview strong {
  color: #b74c73;
}

/* Detalles bancarios */
.woocommerce-order .woocommerce-order-details,
.woocommerce-order .woocommerce-customer-details {
  border-top: 1px dashed #e2a8b9;
  margin-top: 2rem;
  padding-top: 2rem;
}

.woocommerce-order h2 {
  font-family: "Playfair Display", serif;
  color: #4a2b33;
  font-size: 1.3rem;
  margin-bottom: 1rem;
  border-bottom: 2px solid #f3b9c8;
  padding-bottom: 0.3rem;
}

/* Tablas */
table.woocommerce-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1.5rem;
}

table.woocommerce-table th,
table.woocommerce-table td {
  border-bottom: 1px dashed #f3b9c8;
  padding: 0.8rem 0;
  color: #4a2b33;
}

table.woocommerce-table th {
  font-weight: 700;
}

tfoot th {
  text-align: right;
}

tfoot td {
  font-weight: 600;
  color: #b74c73;
}

/* Mensaje final */
.thankyou-message {
  background: linear-gradient(180deg, #ff9fba 0%, #f78fb33b 100%);
  color: white;
  padding: 1.2rem 2rem;
  border-radius: 25px;
  text-align: center;
  margin-top: 2.5rem;
  box-shadow: 0 3px 8px rgba(0,0,0,0.1);
}


/* === TABLA DE RESUMEN DEL PEDIDO (Thank You Page) === */
.woocommerce-order-details table.shop_table {
  width: 100%;
  border: none;
  border-collapse: collapse;
  margin-top: 1.5rem;
  font-family: "Lato", sans-serif;
  color: #4a2b33;
  background-color: #fff;
  border-radius: 15px;
  overflow: hidden;
}

.woocommerce-order-details table.shop_table thead th {
  background-color: #f7c7d5;
  color: #4a2b33;
  text-transform: uppercase;
  font-weight: 700;
  padding: 1rem;
  text-align: left;
  border-bottom: 2px solid #f3b9c8;
}

.woocommerce-order-details table.shop_table tbody td,
.woocommerce-order-details table.shop_table tfoot td,
.woocommerce-order-details table.shop_table tfoot th {
  padding: 0.9rem 1.2rem;
  border-bottom: 1px dashed #f3b9c8;
  font-size: 1rem;
}

.woocommerce-order-details table.shop_table tbody tr:last-child td {
  border-bottom: none;
}

/* Subtotales y totales */
.woocommerce-order-details tfoot th {
  font-weight: 600;
  color: #4a2b33;
  text-align: right;
  width: 70%;
}

.woocommerce-order-details tfoot td {
  text-align: right;
  font-weight: 600;
}

.woocommerce-order-details tfoot tr:last-child td,
.woocommerce-order-details tfoot tr:last-child th {
  color: #b74c73;
  font-size: 1.1rem;
  font-weight: 700;
  border-top: 2px solid #f3b9c8;
}

/* Depósito especial */
tr.deposit-row td,
tr.deposit-row th {
  color: #d63b6a;
  font-weight: 700;
}

/* Saldo restante */
.saldo-restante {
  background-color: #fff3f7;
  border: 1px solid #f3b9c8;
  padding: 1rem 1.5rem;
  border-radius: 10px;
  font-weight: 600;
  color: #4a2b33;
  margin-top: 1.5rem;
  text-align: right;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}
.saldo-restante strong {
  color: #b74c73;
}

.checkout-messages-container {
  margin-top: 1rem;
  background: #ffe6ef;
  border: 1px solid #f3b9c8;
  border-radius: 12px;
  padding: 1rem 1.2rem;
  color: #8a2a3a;
  font-size: 0.95rem;
  line-height: 1.5;
  width: 95%;
}

.checkout-messages-container ul {
  margin: 0;
  padding-left: 1.2rem;
}

.checkout-messages-container li {
  margin-bottom: 0.3rem;
}

.checkout-messages-container li::marker {
  color: #e4718a;
}

.checkout-messages-container strong {
  color: #6d1f30;
}


/* Asegura que quede al fondo del contenedor izquierdo */
.checkout-left {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.checkout-left .woocommerce-notices-wrapper {
  order: 99; /* se renderiza al final del formulario */
  align-self: flex-start;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}


/* ======== PÁGINA MI CUENTA ======== */

/* Fondo general y respiración visual */
body.woocommerce-account {
  background-color: #fff;
  padding-top: 4rem;
  padding-bottom: 4rem;
}

/* Contenedor principal */
.woocommerce-account .woocommerce {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 2.5rem;
  box-sizing: border-box;
}

/* === Hero superior (opcional) === */
.myaccount-hero {
  background: #f7c7d5;
  text-align: center;
  padding: 3rem 0 2rem 0;
  margin-bottom: 3rem;
  border-bottom: 1px solid #f3b9c8;
}

.myaccount-hero h1 {
  font-family: "Playfair Display", serif;
  color: #4a2b33;
  font-size: 2.2rem;
  font-weight: 700;
  margin: 0;
}

/* ============================================
    Navegación lateral
   ============================================ */
.woocommerce-MyAccount-navigation {
  background: #fff;
  border: 1px solid #f3b9c8;
  border-radius: 15px;
  padding: 2rem 1.5rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  width: 280px;
  min-height: 74%;
  flex-shrink: 0;
  margin-left: -41px;
  padding-top: 95px;
}

.woocommerce-MyAccount-navigation ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.woocommerce-MyAccount-navigation li {
  margin-bottom: 0.8rem;
}

.woocommerce-MyAccount-navigation a {
  display: block;
  padding: 0.7rem 1rem;
  border-radius: 25px;
  color: #4a2b33;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  background: #ffe9ef;
  text-align: center;
}

.woocommerce-MyAccount-navigation a:hover {
  background: linear-gradient(180deg, #ff9fba 0%, #f36f96 100%);
  color: #fff;
}

.woocommerce-MyAccount-navigation li.is-active a {
  background: linear-gradient(180deg, #ff9fba 0%, #f36f96 100%);
  color: #fff;
}

/* ============================================
    Contenido principal
   ============================================ */
.woocommerce-MyAccount-content {
  background: #fff;
  border: 1px solid #f3b9c8;
  border-radius: 15px;
  padding: 2.5rem 3rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  color: #4a2b33;
  flex: 1;
  min-width: 0;
}

/* Mantener ambas columnas del mismo alto */
.woocommerce-account .woocommerce {
  align-items: stretch;
}

.woocommerce-MyAccount-content h2 {
  font-family: "Playfair Display", serif;
  font-size: 19px;
  color: #4a2b33;
  border-bottom: 2px solid #f3b9c8;
  padding-bottom: 0.5rem;
  margin-bottom: 1.5rem;
}

/* ============================================
    Tablas de pedidos y direcciones
   ============================================ */
table.woocommerce-orders-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 4rem;
}

table.woocommerce-orders-table th {
  background: #f7c7d5;
  color: #4a2b33;
  text-align: left;
  padding: 1rem;
  border-bottom: 2px solid #f3b9c8;
  font-size: 0.95rem;
}

table.woocommerce-orders-table td {
  padding: 0.8rem 1rem;
  border-bottom: 1px dashed #f3b9c8;
  color: #4a2b33;
  font-size: 0.95rem;
}

table.woocommerce-orders-table a {
  color: #b74c73;
  font-weight: 600;
  text-decoration: none;
}

table.woocommerce-orders-table a:hover {
  text-decoration: underline;
}



/* ============================================
    RESPONSIVE DESIGN
   ============================================ */

/* ======== Corrección responsive Mi Cuenta ======== */
@media (max-width: 992px) {
  /* Forzar que los bloques se apilen uno debajo del otro */
  .woocommerce-account .woocommerce {
    display: flex;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: flex-start;
  }

  /* Navegación primero */
  .woocommerce-MyAccount-navigation {
    order: 1;
    width: 100%;
    max-width: 600px;
    margin: 0 auto 1.5rem;
    padding: 1.5rem;
  }

  /* Contenido (direcciones, pedidos, etc.) debajo */
  .woocommerce-MyAccount-content {
    order: 2;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    padding: 1.5rem;
  }

  /* Ajuste de direcciones internas */
  .woocommerce-MyAccount-content .woocommerce-Addresses {
    flex-direction: column;
    align-items: stretch;
    width: 90% !important;
    margin: 0 auto;
    margin-left: -15px !important;
  }

  .woocommerce-MyAccount-content .woocommerce-Address {
    flex: 1 1 100%;
    width: 78%;
  }
}

/* ======== Móviles pequeños ======== */
@media (max-width: 600px) {
  .woocommerce-MyAccount-navigation,
  .woocommerce-MyAccount-content {
    width: 95%;
    padding: 1.2rem;
    margin: 0 auto 1rem;
    box-shadow: none;
    margin-left: -15px;
    margin-top: 93px;
    margin-bottom: -21px;
  }

  .woocommerce-MyAccount-navigation a {
    padding: 0.6rem;
    font-size: 0.9rem;
  }

  .woocommerce-Addresses h3 {
    text-align: center;
    font-size: 1rem;
  }


body.logged-in .woocommerce .u-columns {
  width: 107% !important;
}

.woocommerce-address-fields__field-wrapper{
  width: 81% !important;
  }
}

@media (max-width: 768px) {
  .woocommerce-orders-table {
    display: block;
    width: 100%;
    overflow-x: auto;
    white-space: nowrap;
  }

  .woocommerce-orders-table th,
  .woocommerce-orders-table td {
    white-space: nowrap;
  }
}


/* ======== AJUSTE DE DISEÑO PARA LA SECCIÓN "DIRECCIONES" ======== */

/* Corrige el desbordamiento y centra las tarjetas dentro del panel derecho */
.woocommerce-MyAccount-content .woocommerce-Addresses {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 1.5rem;
  width: 99%;
  margin-left: 0;
  padding: 1rem;
  box-sizing: border-box;
  animation: fadeInAddresses 0.5s ease;
}

/* Reubica visualmente dentro del cuadro derecho */
.woocommerce-Addresses {
  position: relative;
  width: 100%;
  background: none;
}

/* Tarjetas dentro del área blanca */
.woocommerce-MyAccount-content .woocommerce-Address {
  flex: 1 1 45%;
  background: #fff7f9;
  border: 1px solid #f3b9c8;
  border-radius: 15px;
  padding: 1.5rem 1.8rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* Efecto hover */
.woocommerce-MyAccount-content .woocommerce-Address:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}

/* 🔧 CORRECCIÓN PRINCIPAL: el overflow ocultaba el formulario */
.woocommerce-MyAccount-content {
  overflow: visible !important; /* antes: hidden */
  padding: 1.5rem;
}

/* ====== Corrección visual para direcciones dentro de Mi Cuenta ====== */

/* Contenedor general */
.woocommerce-Addresses address {
  background: transparent;
  color: #4a2b33;
  font-size: 0.95rem;
  line-height: 1.6;
  padding-top: 0.5rem;
  font-style: italic;
}

/* Títulos dentro de cada tarjeta */
.woocommerce-Addresses h3 {
  font-family: "Playfair Display", serif;
  font-size: 1.2rem;
  color: #4a2b33;
  border-bottom: 2px solid #f3b9c8;
  padding-bottom: 0.3rem;
  margin-bottom: 1rem;
}

/* Enlace “Editar dirección” */
.woocommerce-Addresses a {
  color: #b74c73;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.3s ease;
}

.woocommerce-Addresses a:hover {
  color: #f36f96;
  text-decoration: underline;
}

/* Mejora la visibilidad del texto */
.woocommerce-Addresses address,
.woocommerce-Addresses p,
.woocommerce-Addresses strong,
.woocommerce-Addresses span {
  color: #4a2b33 !important;
}

/* 🔧 Asegura que el formulario se muestre centrado y con el mismo estilo */
.woocommerce-EditAddressForm,
.woocommerce-address-fields__field-wrapper {
  width: 100%;
  background: #fff7f9;
  border: 1px solid #f3b9c8;
  border-radius: 15px;
  padding: 2rem;
  margin-top: 1rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

/* Estilo de inputs */
.woocommerce-EditAddressForm input,
.woocommerce-EditAddressForm select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid #f3b9c8;
  border-radius: 8px;
  margin-bottom: 1rem;
  background-color: #fff;
  transition: all 0.2s ease-in-out;
}

.woocommerce-EditAddressForm input:focus,
.woocommerce-EditAddressForm select:focus {
  border-color: #e98aad;
  outline: none;
  box-shadow: 0 0 0 2px rgba(233, 138, 173, 0.2);
}

/* Botón de guardar */
.woocommerce-EditAddressForm button,
.woocommerce-EditAddressForm input[type="submit"] {
  background-color: #b74c73;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 0.8rem 1.5rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.woocommerce-EditAddressForm button:hover,
.woocommerce-EditAddressForm input[type="submit"]:hover {
  background-color: #f36f96;
}

/* Animación */
@keyframes fadeInAddresses {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}


/*----------OCULTAR POLITICAS DE PRIVACIDAD--------*/
.woocommerce-privacy-policy-text {
  display: none;
}


/* ===== Modal de errores de checkout ===== */
.error-modal {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  padding: 1rem;
}

.error-modal-content {
  background: #fff7f9;
  border: 2px solid #f3b9c8;
  border-radius: 15px;
  padding: 2rem;
  max-width: 480px;
  width: 100%;
  text-align: center;
  position: relative;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.error-modal-content h3 {
  color: #b74c73;
  margin-bottom: 1rem;
  font-family: "Playfair Display", serif;
}

.error-modal-content ul {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
}

.error-modal-content li {
  color: #4a2b33;
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
  background: #ffe9ef;
  border-radius: 8px;
  padding: 0.5rem;
}

.close-error {
  position: absolute;
  top: 10px; right: 15px;
  font-size: 1.5rem;
  color: #b74c73;
  cursor: pointer;
}

.close-btn {
  background: #b74c73;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 0.6rem 1.2rem;
  cursor: pointer;
  font-weight: 600;
  transition: background 0.3s ease;
}

.close-btn:hover {
  background: #f36f96;
}

.woocommerce-error,
.woocommerce-message,
.woocommerce-info {
  display: none !important;
}

body.modal-open {
  overflow: hidden !important; 
}

body.modal-open,
html.modal-open {
  overflow: hidden !important;
  height: 100vh !important;
}


/* Previene el espacio extra 

html.modal-open,
body.modal-open {
  overflow: hidden !important;
  height: 100vh !important;
}

.error-modal {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0,0,0,0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  padding: 1rem;
  overflow-y: auto; 
}
*/

/* Quita por completo el espacio que deja WooCommerce */
.woocommerce-notices-wrapper,
.woocommerce-NoticeGroup,
.woocommerce-NoticeGroup-checkout {
  display: none !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  opacity: 0 !important;
  position: absolute !important;
  top: 0;
  left: 0;
  width: 100%;
  pointer-events: none;
}

/* estilos para el cupon de regalo */

/* 🎟️ Estilo moderno para ticket de cupón de regalo */
.ticket-cupon-regalo {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 1rem;
  background: linear-gradient(135deg, #fff7f9 0%, #ffe4ec 100%);
  border: 2px dashed #f59bb0;
  border-radius: 18px;
  padding: 1.2rem 1.5rem;
  box-shadow: 0 4px 10px rgba(255, 165, 190, 0.25);
  position: relative;
  overflow: hidden;
  margin-top: 1.5rem;
}

.ticket-cupon-regalo::before,
.ticket-cupon-regalo::after {
  content: "";
  position: absolute;
  width: 22px;
  height: 22px;
  background: #fff;
  border-radius: 50%;
  top: 50%;
  transform: translateY(-50%);
  box-shadow: inset 0 0 0 2px #f59bb0;
}

.ticket-cupon-regalo::before { left: -12px; }
.ticket-cupon-regalo::after { right: -12px; }

.ticket-cupon-regalo .ticket-imagen {
  width: 90px;
  height: 90px;
  border-radius: 14px;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid #f7b7c3;
}

.ticket-cupon-regalo .ticket-lado-der {
  flex: 1;
}

.ticket-cupon-regalo h3 {
  margin: 0.2rem 0;
  font-size: 1.2rem;
  color: #b23a66;
  font-weight: 600;
}

.ticket-cupon-regalo p {
  margin: 0.2rem 0;
  color: #444;
}

.ticket-cupon-regalo .precio {
  color: #d64d7b;
  font-weight: bold;
}

.ticket-cupon-regalo .valido {
  font-size: 0.85rem;
  color: #888;
  letter-spacing: 0.5px;
}

.ticket-cupon-regalo .icono-regalo {
  font-size: 1.8rem;
  color: #ff7ca5;
  margin-right: 8px;
}


.woocommerce-message {
  display: none !important;
}
