/**
 * WooCommerce Thankyou Order Shortcode Styles
 * [woo_thankyou_order]
 */

.woo-thankyou-order {
  display: flex;
  flex-direction: column;
  gap: 40px;
  width: 100%;
  padding: 0;
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* SECCIÓN DE CONFIRMACIÓN */
.woo-thankyou-order .order-confirmation-header {
  text-align: center;
  padding: 40px 20px;
  background: #ffffff;
  border-radius: 25px;
  margin-bottom: 20px;
}

.woo-thankyou-order .confirmation-icon {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 20px;
}

.woo-thankyou-order .confirmation-icon svg {
  width: 80px;
  height: 80px;
}

.woo-thankyou-order .confirmation-title {
  font-size: 32px;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0 0 12px 0;
  line-height: 1.3;
  font-family: 'Outfit', sans-serif;
}

.woo-thankyou-order .confirmation-message {
  font-size: 20px;
  font-weight: 400;
  color: #666666;
  margin: 0 0 12px 0;
  line-height: 1.5;
  font-family: 'Outfit', sans-serif;
}

.woo-thankyou-order .confirmation-delivery {
  font-size: 18px;
  font-weight: 400;
  color: #666666;
  margin: 0;
  line-height: 1.5;
  font-family: 'Outfit', sans-serif;
}

/* CONTENEDOR PRINCIPAL CON FLEX */
.woo-thankyou-order-content {
  display: flex;
  gap: 40px;
  width: 100%;
}

/* COLUMNA IZQUIERDA - INFO BÁSICA (65%) */
.woo-thankyou-order .order-info {
    flex: 0 0 65%;
    background: #f5f5f5;
    padding: 48px;
    border-radius: 25px;
    height: fit-content;
  }

.woo-thankyou-order .order-info h2 {
  font-size: 24px;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0 0 20px 0;
  line-height: 1.3;
}

.woo-thankyou-order .order-info p {
  margin: 8px 0;
  font-family: 'Outfit', sans-serif;
  font-size: 20px;
  color:#000;
  line-height: 1.5;
  font-weight: 400;
}

.woo-thankyou-order .order-info p strong {
  font-weight: 600;
  color: #1a1a1a;
}

/* ENLACES ÚTILES */
.woo-thankyou-order .helpful-links {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid #e0e0e0;
}

.woo-thankyou-order .helpful-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.woo-thankyou-order .helpful-links ul li {
  margin: 8px 0;
}

.woo-thankyou-order .helpful-links ul li a {
  color: #009245;
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
  transition: color 0.3s ease;
}

.woo-thankyou-order .helpful-links ul li a:hover {
  color: #007a35;
  text-decoration: underline;
}



/* COLUMNA DERECHA - PRODUCTOS Y TOTALES (35%) */
.woo-thankyou-order .order-details {
  flex: 0 0 35%;
}

/* PRODUCTOS */
.woo-thankyou-order .product-item {
  display: flex;
  align-items: center;
  padding-top: 15px;
  border-top: 1px solid #e0e0e0;
}



/* IMAGEN CON CANTIDAD */
.woo-thankyou-order .product-image {
  position: relative;
  margin-right: 15px;
  flex-shrink: 0;
}

.woo-thankyou-order .product-image img {
  width: 80px !important;
  height: 80px !important;
  border-radius: 8px;
  object-fit: cover;
  display: block;
}

.woo-thankyou-order .quantity-badge {
  position: absolute;
  top: -8px;
  right: -8px;
  background: #1a1a1a;
  color: white;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: bold;
  z-index: 2;
}

/* INFO PRODUCTO */
.woo-thankyou-order .product-info {
  flex: 1;
  margin-right: 15px;
}

.woo-thankyou-order .product-name {
  font-weight: 600;
  font-size: 16px;
  color: #1a1a1a;
  margin: 0 0 4px 0;
  line-height: 1.4;
}

.woo-thankyou-order .product-frequency {
  font-size: 14px;
  color: #666666;
  margin: 0;
  line-height: 1.4;
}

/* PRECIO PRODUCTO */
.woo-thankyou-order .product-price {
  font-weight: 700;
  font-size: 16px;
  color: #1a1a1a;
  text-align: right;
  flex-shrink: 0;
}

/* TOTALES */
.woo-thankyou-order .order-totals {
  border-top: 2px solid #e0e0e0;
  padding-top: 20px;
  margin-top: 30px;
}

.woo-thankyou-order .total-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  font-size: 16px;
}

.woo-thankyou-order .total-line span:first-child {
  color: #000;
  font-family: 'Outfit', sans-serif;
  font-size: 16px;
  font-weight: 400;
}

.woo-thankyou-order .total-line span:last-child {
  font-weight: 600;
  color: #1a1a1a;
}

.woo-thankyou-order .total-line.discount {
  color: #28a745;
}

.woo-thankyou-order .total-line.discount span {
  color: #28a745;
}

/* TOTAL FINAL */
.woo-thankyou-order .total-final {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 20px;
  font-weight: 700;
  padding-top: 15px;
  margin-top: 15px;
  border-top: 2px solid #e0e0e0;
  color: #1a1a1a;
}

/* TOTALES DE PRÓXIMOS PEDIDOS DE SUSCRIPCIÓN */
.woo-thankyou-order .total-line.recurring-total {
  margin-top: 15px;
  padding-top: 15px;
  border-top: 1px solid #e0e0e0;
}

.woo-thankyou-order .total-line.recurring-total span:first-child {
  line-height: 1.4;
}

.woo-thankyou-order .total-line.recurring-total span:last-child {
  font-weight: 700;
  font-size: 18px;
}

/* RESPONSIVE */
@media (max-width: 968px) {
  .woo-thankyou-order {
    flex-direction: column;
    gap: 20px;
    padding: 0;
  }
  
  .woo-thankyou-order .order-info,
  .woo-thankyou-order .order-details {
    flex: none;
    width: 100%;
  }
  
  .woo-thankyou-order .order-info {
    padding: 24px;
  }
  
  .woo-thankyou-order .order-info {
    order: 1;
  }
  
  .woo-thankyou-order .order-details {
    order: 2;
  }
  
  .woo-thankyou-order .product-item {
    flex-wrap: wrap;
    text-align: center;
  }
  
  .woo-thankyou-order .product-image {
    margin: 0 auto 10px auto;
  }
  
  .woo-thankyou-order .product-info {
    flex: 1 1 100%;
    margin: 0 0 10px 0;
    text-align: center;
  }
  
  .woo-thankyou-order .product-price {
    flex: 1 1 100%;
    text-align: center;
  }
}

@media (max-width: 576px) {
  .woo-thankyou-order .order-info h2 {
    font-size: 20px;
  }
  
  .woo-thankyou-order .total-final {
    font-size: 18px;
  }
  
  .woo-thankyou-order .confirmation-title {
    font-size: 24px;
  }
  
  .woo-thankyou-order .confirmation-message {
    font-size: 16px;
  }
  
  .woo-thankyou-order .confirmation-delivery {
    font-size: 14px;
  }
  
  .woo-thankyou-order .confirmation-icon svg {
    width: 60px;
    height: 60px;
  }
}
