/* Cart Integration - Full booking flow styling */

/* Override theme defaults */
body.football-booking-cart-page {
    background-color: #091924 !important;
    margin: 0;
    padding: 0;
}

/* Hide default WooCommerce elements */
body.woocommerce-cart .woocommerce-message,
body.woocommerce-cart .woocommerce-error,
body.woocommerce-cart .woocommerce-info,
body.woocommerce-cart .woocommerce-cart-form:not(.booking-flow-form),
body.woocommerce-cart .cart-collaterals:not(.booking-flow-totals),
body.woocommerce-cart .woocommerce > *:not(#football-booking-container),
body.woocommerce-cart header,
body.woocommerce-cart footer,
body.woocommerce-cart .header,
body.woocommerce-cart .site-header {
    display: none !important;
}

/* Booking summary content */
.booking-summary-section {
    background-color: #ffffff;
    color: #091924;
    padding: 40px;
    min-height: auto;
}

.booking-summary-content {
    max-width: 1000px;
    margin: 0 auto;
}

/* Section titles */
body   .section-title {
    font-size: 16px;
    font-weight: 800 !important;
    color: #08605F;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-family: 'Barlow';
}

/* Info grid */
.summary-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid #e0e0e0;
}

.info-section {
    background-color: #f8f9fa;
    padding: 25px;
    border-radius: 8px;
}

.info-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    font-family: 'Barlow';
}

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

.info-row .label {
    color: #6b7280;
    font-weight: 600;
    font-size: 14px;
}

.info-row .value {
    color: #091924;
    font-weight: 600;
    font-size: 14px;
    text-align: right;
}

/* Package components */
.package-components {
    margin-bottom: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid #e0e0e0;
}

.component-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 15px;
    transition: all 0.2s ease;
}

.component-item:hover {
    background-color: #f0f2f5;
}
/* Navigation styling for cart page */
.booking-step .step-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 40px;
    padding-top: 40px;
    border-top: 1px solid #e0e0e0;
}

.step-navigation .prev-step,
.step-navigation .next-step {
    display: inline-flex;
    align-items: center;
    padding: 16px 32px;
    font-family: 'Barlow';
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.step-navigation .prev-step {
    background-color: #f0f2f5;
    color: #091924;
}

.step-navigation .prev-step:hover {
    background-color: #e5e7eb;
}

.step-navigation .next-step {
    background-color: #08605F;
    color: #ffffff;
    margin-left: auto;
}

.step-navigation .next-step:hover {
    background-color: #065352;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(8, 96, 95, 0.3);
}

/* Ensure price summary checkout button is visible */
.price-summary-section .wc-proceed-to-checkout {
    display: block !important;
    margin-top: 20px;
}

.price-summary-section .wc-proceed-to-checkout .checkout-button {
    display: block;
    width: 100%;
    padding: 16px 32px;
    background-color: #08605F;
    color: #ffffff;
    text-align: center;
    font-family: 'Barlow';
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.price-summary-section .wc-proceed-to-checkout .checkout-button:hover {
    background-color: #065352;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(8, 96, 95, 0.3);
}

/* Mobile responsive navigation */
@media (max-width: 768px) {
    .booking-step .step-navigation {
        flex-direction: column;
        gap: 15px;
    }
    
    .step-navigation .prev-step,
    .step-navigation .next-step {
        width: 100%;
        justify-content: center;
    }
    
    .step-navigation .next-step {
        margin-left: 0;
    }
}
.component-icon {
    font-size: 32px;
    flex-shrink: 0;
}

body .component-details {
    flex: 1;
    font-family: 'Barlow' !important;

}

body .component-details h4 {
    margin: 0 0 5px 0;
    font-size: 16px;
    font-weight: 700;
    color: #091924;
    font-family: 'Barlow' !important;
}

body .component-details p {
    margin: 0;
    font-size: 14px;
    color: #4b5563;
    line-height: 1.4;
    font-family: 'Barlow' !important;
}
body .flight-info strong {
    display: inline-block;
    width: 100px; /* juster så det passer */
}

body .component-price {
    font-size: 14px;
    font-weight: 600;
    color: #091924;
    flex-shrink: 0;
}
table.shop_table tbody > tr, table.shop_table tfoot > tr {
    background: none;
}
body .component-details .flight-info {
    margin-bottom: 5px;
}
.flight-info {
    background: none;
    color: #ffffff;
    padding: 16px 24px;
    font-family: 'Barlow' !important;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-radius: 12px 12px 0 0;
    margin-bottom: 0;
    position: relative;
}
.component-price {
    flex-shrink: 0;
}

/* Travelers */
.travelers-summary {
    margin-bottom: 40px;
}

.travelers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
}

.traveler-card {
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    font-family: 'Barlow';
}

.traveler-number {
    font-size: 12px;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.traveler-name {
    font-size: 16px;
    font-weight: 700;
    color: #091924;
    margin-bottom: 8px;
}

.traveler-birthday {
    font-size: 14px;
    color: #6b7280;
}

/* Price summary */
.price-summary-section {
    background-color: #f8f9fa;
    padding: 40px;
    border-radius: 8px;
    max-width: 1000px;
    margin: 0 auto 40px auto;
}

.price-summary-section .cart_totals {
    margin: 0;
}

.price-summary-section h2 {
    display: none;
}

.price-summary-section .shop_table {
    border: none;
    margin-bottom: 0;
}

.price-summary-section .shop_table th,
.price-summary-section .shop_table td {
    border: none;
    padding: 12px 0;
    font-family: 'Barlow';
}

.price-summary-section .shop_table th {
    text-align: left;
    color: #6b7280;
    font-weight: 600;
    font-size: 14px;
}

.price-summary-section .shop_table td {
    text-align: right;
    color: #091924;
    font-weight: 600;
}

.price-summary-section .order-total th,
.price-summary-section .order-total td {
    font-size: 20px;
    font-weight: 700;
    color: #08605F;
    padding-top: 20px;
    border-top: 2px solid #e0e0e0;
}

/* Hide checkout button in totals - we have our own */
.price-summary-section .wc-proceed-to-checkout {
    display: none;
}

/* Empty cart */
.empty-cart-message {
    text-align: center;
    padding: 60px 20px;
    font-size: 18px;
    color: #666;
}

.empty-cart-message a {
    color: #08605F;
    text-decoration: underline;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .booking-summary-section {
        padding: 20px;
    }
    
    .summary-info-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .component-item {
        flex-wrap: wrap;
        text-align: center;
    }
    
    .component-icon {
        width: 100%;
        margin-bottom: 10px;
    }
    
    .component-details {
        width: 100%;
        margin-bottom: 10px;
    }
    
    .component-price {
        width: 100%;
    }
    
    .travelers-grid {
        grid-template-columns: 1fr;
    }
    
    .info-row {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .info-row .value {
        text-align: left;
        margin-top: 5px;
    }
}

/* Ensure all elements use Barlow font */
#football-booking-container * {
    font-family: 'Barlow' !important;
}

/* Override any conflicting WooCommerce styles */
body.woocommerce-cart .woocommerce {
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* Notices styling if they appear */
.woocommerce-notices-wrapper {
    max-width: 1200px;
    margin: 0 auto 20px;
    padding: 0 20px;
}

.woocommerce-error,
.woocommerce-info,
.woocommerce-message {
    background-color: #ffffff !important;
    color: #091924 !important;
    border-radius: 8px !important;
    padding: 15px 20px !important;
    margin-bottom: 20px !important;
    font-family: 'Barlow' !important;
}