/* Delivery Page Styles */
#delivery-hero {
    padding: 60px 0 60px 0;
    position: relative;
    min-height: 500px;
    z-index: 10;
    overflow: hidden;
}

/* Carousel Styles */
.carousel-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.carousel-slides {
    position: relative;
    width: 100%;
    height: 100%;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.carousel-slide.active {
    opacity: 1;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    -o-object-fit: cover;
    object-fit: cover;
    -o-object-position: center;
    object-position: center;
}

#delivery-hero .carousel-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 20;
    justify-content: center;
    margin: 0;
    padding: 0;
    right: auto;
}

#delivery-hero .carousel-indicators .indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin: 0;
    padding: 0;
    border: none;
    opacity: 1;
}

#delivery-hero .carousel-indicators .indicator.active {
    background-color: rgba(255, 255, 255, 1);
}

#delivery-hero .carousel-indicators .indicator:hover {
    background-color: rgba(255, 255, 255, 0.8);
}

/* Dark overlay for better text readability */
#delivery-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

#delivery-hero .pixel-flower {
    max-width: 80px;
    margin-bottom: 20px;
    position: relative;
    z-index: 20;
}

#delivery-hero h1 {
    margin-bottom: 40px;
    font-family: "Bebas Neue", sans-serif;
    font-weight: 800;
    font-size: 40px;
    line-height: 60px;
    color: #fff;
    position: relative;
    z-index: 20;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

#delivery-hero .hero-layer-pink-container {
    position: absolute;
    top: 75%;
    right: 2.5%;
    transform: translateY(-50%);
    width: 270px;
    z-index: 20;
}

#delivery-hero .hero-layer-pink {
    width: 100%;
    height: auto;
    z-index: 20;
}

#locations {
    padding: 50px 0 250px 0;
    position: relative;
    z-index: 1;
    background-color: #FBF5ED;
}

#locations .location-title {
    font-family: "Bebas Neue", sans-serif;
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 50px;
    margin-top: 50px;
}

/* Ocultar el br en pantallas grandes */
#locations .location-title br {
    display: none;
}

/* Estilos responsive para el location-title en móvil */
@media (max-width: 768px) {
    #locations .location-title {
        font-size: 2rem;
        line-height: 1.2;
        max-width: 100%;
        margin: 30px auto 40px auto;
        word-wrap: normal;
        white-space: normal;
        overflow: visible;
    }
    
    #locations .location-title br {
        display: block;
    }
}

.location-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.location-card-link:hover {
    text-decoration: none;
    color: inherit;
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.location-card {
    border: 2px solid #000;
    margin-bottom: 30px;
    border-radius: 0 !important;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Solo ajustar border-radius, mantener los bordes */
.location-card,
.location-card .card-header,
.location-card .card-body {
    border-radius: 0 !important;
}

.location-card .card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    color: #fff;
}

.location-card .card-header h3 {
    margin: 0;
    font-size: 1.3rem;
    font-weight: 700;
    font-family: "Bebas Neue", sans-serif;
    color: #fff;
}

.location-card .card-header .arrow {
    font-size: 2rem;
    color: #fff;
    text-decoration: none;
    display: inline-block;
}

.location-card img {
    width: 100%;
    height: 300px;
    -o-object-fit: cover;
    object-fit: cover;
    display: block;
}

.location-card .card-body {
    padding: 20px;
    display: grid; /* Use grid to force exact row alignment across cards */
    /* Generous heights to avoid any overflow while staying aligned */
    grid-template-rows: 72px 120px 140px 144px 190px 72px; /* rows per section */
    row-gap: 16px;
}

.location-card.nogal .card-header,
.location-card.nogal .card-body {
    background-color: #1abc9c;
}

.location-card.castellana .card-header,
.location-card.castellana .card-body {
    background-color: #e5407d;
}

.location-card .card-body p {
    color: #fff;
    margin: 0; /* remove margins to rely on grid gaps */
    font-size: 0.9rem;
    font-family: "Oswald", sans-serif;
    font-weight: 500;
    line-height: 24px; /* Fixed line-height to guarantee exact vertical alignment */
}

/* Add a subtle breathing space between "Zona de distribución" and "Barrios" */
.location-card .card-body p:nth-of-type(3) {
    padding-top: 25px;
}

p.barrios {
    font-size: 20px !important;
}

/* Equalize card heights in the two columns */
#locations .row > [class*="col-"] { display: flex; }
#locations .row > [class*="col-"] .location-card-link { display: flex; width: 100%; }
#locations .row > [class*="col-"] .location-card { width: 100%; }

/* Alignment is handled by the grid row sizes above; keep selectors for clarity if needed later */
/* (No per-paragraph min-heights required) */

/* On small screens, let sections be auto-height for better stacking */
@media (max-width: 991.98px) {
    .location-card .card-body {
        display: block; /* stack naturally on mobile */
    }
    .location-card .card-body p { margin-bottom: 1rem; }
}

#locations .delivery-background-pattern {
    position: absolute;
    bottom: 170px;
    left: 0;
    width: 100%;
    height: 145px;
    background-image: url('../img/dark-green-cross-layer-x.webp');
    background-repeat: repeat;
    z-index: -1;
}

/* Checkout Billing Details Styles */
.woocommerce-checkout .woocommerce-billing-fields,
.woocommerce-checkout .woocommerce-shipping-fields {
    background: #FBF5ED !important;
    border: 2px solid #ffc107 !important;
    border-radius: 8px !important;
    padding: 20px !important;
    margin-bottom: 30px !important;
}

.woocommerce-checkout .woocommerce-billing-fields h3,
.woocommerce-checkout .woocommerce-shipping-fields h3 {
    color: #000 !important;
    margin-bottom: 15px !important;
    font-family: "Bebas Neue", sans-serif !important;
    font-size: 1.5rem !important;
    font-weight: 800 !important;
}

.woocommerce-checkout .woocommerce-billing-fields .form-row label,
.woocommerce-checkout .woocommerce-shipping-fields .form-row label {
    color: #000 !important;
    font-family: "Oswald", sans-serif !important;
    font-weight: 500 !important;
}

.woocommerce-checkout .woocommerce-billing-fields .form-row input,
.woocommerce-checkout .woocommerce-billing-fields .form-row select,
.woocommerce-checkout .woocommerce-billing-fields .form-row textarea,
.woocommerce-checkout .woocommerce-shipping-fields .form-row input,
.woocommerce-checkout .woocommerce-shipping-fields .form-row select,
.woocommerce-checkout .woocommerce-shipping-fields .form-row textarea {
    color: #000 !important;
    border: 1px solid #ddd !important;
    border-radius: 4px !important;
    padding: 10px !important;
}

.woocommerce-checkout .woocommerce-billing-fields .form-row input:focus,
.woocommerce-checkout .woocommerce-billing-fields .form-row select:focus,
.woocommerce-checkout .woocommerce-billing-fields .form-row textarea:focus,
.woocommerce-checkout .woocommerce-shipping-fields .form-row input:focus,
.woocommerce-checkout .woocommerce-shipping-fields .form-row select:focus,
.woocommerce-checkout .woocommerce-shipping-fields .form-row textarea:focus {
    border-color: #ffc107 !important;
    box-shadow: 0 0 0 2px rgba(255, 193, 7, 0.2) !important;
}

/* Additional specific styles for checkout sections */
#customer_details .woocommerce-billing-fields,
#customer_details .woocommerce-shipping-fields {
    background: #FBF5ED !important;
    border: 2px solid #ffc107 !important;
    border-radius: 8px !important;
    padding: 20px !important;
    margin-bottom: 30px !important;
}

.checkout .woocommerce-billing-fields,
.checkout .woocommerce-shipping-fields {
    background: #FBF5ED !important;
    border: 2px solid #ffc107 !important;
    border-radius: 8px !important;
    padding: 20px !important;
    margin-bottom: 30px !important;
}

.woocommerce-checkout-review-order h3 {
    color: #000 !important;
    margin-bottom: 15px;
    font-family: "Bebas Neue", sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
}

.woocommerce-checkout-review-order table {
    background: white;
    border-radius: 6px;
    overflow: hidden;
}

.woocommerce-checkout-review-order table th,
.woocommerce-checkout-review-order table td {
    color: #000 !important;
    font-family: "Oswald", sans-serif;
    font-weight: 500;
}

/* Payment Section */
.woocommerce-checkout-payment {
    background: #FBF5ED;
    border: 2px solid #ffc107;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 30px;
}

.woocommerce-checkout-payment h3 {
    color: #000 !important;
    margin-bottom: 15px;
    font-family: "Bebas Neue", sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
}

.woocommerce-checkout-payment .payment_methods label {
    color: #000 !important;
    font-family: "Oswald", sans-serif;
    font-weight: 500;
}

/* Place Order Button */
.woocommerce-checkout .place-order .btn-primary {
    background-color: #ffc107 !important;
    border-color: #ffc107 !important;
    color: #000 !important;
    font-family: "Oswald", sans-serif;
    font-weight: 500;
    padding: 12px 30px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.woocommerce-checkout .place-order .btn-primary:hover {
    background-color: #e0a800 !important;
    border-color: #e0a800 !important;
    color: #000 !important;
}

/* Checkout Delivery Schedule Styles */
.delivery-schedule-container {
    background-color: #FBF5ED;
    border: 2px solid #ffc107;
    padding: 30px;
    margin: 20px 0;
    border-radius: 8px;
}

/* Styles for delivery time slots in checkout template */
.delivery-info-card .delivery-time-slots .time-slot input[type="radio"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.delivery-info-card .delivery-time-slots .time-slot label {
    display: block;
    padding: 15px 20px;
    background-color: #f8f9fa;
    border: 2px solid #ddd;
    border-radius: 5px;
    cursor: pointer;
    text-align: center;
    font-family: "Oswald", sans-serif;
    font-weight: 500;
    font-size: 1rem;
    color: #000;
    transition: all 0.3s ease;
    position: relative;
}

.delivery-info-card .delivery-time-slots .time-slot label:hover {
    border-color: #ffc107;
    background-color: #f8f9fa;
}

.delivery-info-card .delivery-time-slots .time-slot input[type="radio"]:checked + label {
    background-color: #ffc107;
    color: #000;
    border-color: #ffc107;
}

.delivery-info-card .delivery-time-slots .time-slot input[type="radio"]:checked + label::after {
    content: "✓";
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    font-weight: bold;
}

.delivery-schedule-container h3 {
    font-family: "Bebas Neue", sans-serif;
    font-size: 2rem;
    font-weight: 800;
    color: #000;
    margin-bottom: 20px;
    text-align: center;
}

.delivery-info {
    background-color: #fff;
    border: 1px solid #ddd;
    padding: 15px;
    margin-bottom: 25px;
    border-radius: 5px;
}

.delivery-info p {
    margin-bottom: 10px;
    font-family: "Oswald", sans-serif;
    font-weight: 500;
}

.delivery-info p:last-child {
    margin-bottom: 0;
}

.delivery-minimum {
    color: #000;
    font-size: 1.1rem;
}

.delivery-fee {
    color: #000;
    font-size: 1rem;
}

.delivery-time-slots {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.time-slot {
    position: relative;
}

.time-slot input[type="radio"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.time-slot label {
    display: block;
    padding: 15px 20px;
    background-color: #fff;
    border: 2px solid #ddd;
    border-radius: 5px;
    cursor: pointer;
    text-align: center;
    font-family: "Oswald", sans-serif;
    font-weight: 500;
    font-size: 1rem;
    color: #000;
    transition: all 0.3s ease;
    position: relative;
}

.time-slot label:hover {
    border-color: #ffc107;
    background-color: #f8f9fa;
}

.time-slot input[type="radio"]:checked + label {
    background-color: #ffc107;
    color: #000;
    border-color: #ffc107;
}

.time-slot input[type="radio"]:checked + label::after {
    content: "✓";
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    font-weight: bold;
}

.delivery-validation-message {
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 5px;
    padding: 15px;
    margin-top: 15px;
}

.delivery-validation-message .error-message {
    color: #721c24;
    margin: 0;
    font-family: "Oswald", sans-serif;
    font-weight: 500;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .delivery-schedule-container {
        padding: 20px;
        margin: 15px 0;
    }
    
    .delivery-schedule-container h3 {
        font-size: 1.5rem;
    }
    
    .delivery-time-slots {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .time-slot label {
        padding: 12px 15px;
        font-size: 0.9rem;
    }
    
    /* Responsive for checkout template */
    .delivery-info-card .delivery-time-slots {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .delivery-info-card .delivery-time-slots .time-slot label {
        padding: 12px 15px;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .delivery-schedule-container {
        padding: 15px;
    }
    
    .delivery-info {
        padding: 10px;
    }
    
    .delivery-minimum {
        font-size: 1rem;
    }
    
    .delivery-fee {
        font-size: 0.9rem;
    }
}

/* Fix double border in Your Order section */
.woocommerce-checkout-review-order-table {
    border: none !important;
    box-shadow: none !important;
}

.woocommerce-checkout-review-order-table th,
.woocommerce-checkout-review-order-table td {
    border: none !important;
}

.woocommerce-checkout-review-order-table thead th {
    border-bottom: 1px solid #ddd !important;
}

/* Hide free shipping when delivery fee is applied */
.woocommerce-shipping {
    display: none !important;
}

/* Force hide free shipping text */
.woocommerce-checkout-review-order-table .woocommerce-shipping,
.woocommerce-checkout-review-order-table tr.shipping,
.woocommerce-checkout-review-order-table .shipping td,
.woocommerce-checkout-review-order-table .shipping th {
    display: none !important;
}

/* Hide any text containing "Free shipping" */
.woocommerce-checkout-review-order-table td:contains("Free shipping"),
.woocommerce-checkout-review-order-table th:contains("Free shipping") {
    display: none !important;
}
/*# sourceMappingURL=delivery.css.map */