/* --- CUSTOM RED THEME (#B42A24) --- */
.flatpickr-months { background: #B42A24; }
.flatpickr-months .flatpickr-month { color: #fff; }
.flatpickr-months .flatpickr-prev-month svg,
.flatpickr-months .flatpickr-next-month svg { fill: #fff !important; color: #fff !important; }
.flatpickr-months .flatpickr-prev-month:hover svg,
.flatpickr-months .flatpickr-next-month:hover svg { fill: rgba(255, 255, 255, 0.8) !important; }
.flatpickr-current-month .flatpickr-monthDropdown-months { background: #B42A24; }
.flatpickr-current-month .flatpickr-monthDropdown-months .flatpickr-monthDropdown-month { color: #fff; }
.flatpickr-current-month .numInputWrapper span { border: none; }
.flatpickr-current-month .numInput { color: #fff; }
.flatpickr-current-month .numInput:hover,
.flatpickr-current-month .flatpickr-monthDropdown-months:hover { background: #9d2420; }
.flatpickr-weekdays { background: #B42A24; }
.flatpickr-weekdays span { color: rgba(255, 255, 255, 0.8); }
/* 1. The date the user clicks on */
.flatpickr-day.selected,
.flatpickr-day.selected:hover {
    background: #B42A24 !important;
    border-color: #B42A24 !important;
    color: #fff !important;
}
/* 2. Today's date (with no background) */
.flatpickr-day.today {
    border-color: #B42A24 !important;
    color: #B42A24 !important;
    background: transparent !important; 
}
/* 3. How "today" and other dates look on hover */
.flatpickr-day:hover {
    background: #fde9e8 !important;
}
.flatpickr-day.today:hover {
    background: #fde9e8 !important;
    border-color: #B42A24 !important;
    color: #B42A24 !important;
}
/* --- END OF CUSTOM THEME --- */

/* --- FLATPICKR Z-INDEX FIX --- */
.flatpickr-calendar { 
    z-index: 100002 !important; 
}

/*
 * Britway Plugin CSS (v10.4 - Voucher Layout Update)
 */

#britway-container {
    max-width: 600px;
    margin: 0 auto;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    padding: 20px 30px;
    box-sizing: border-box;

    /* --- FIX: Allow dropdown to spill out --- */
    overflow: visible !important; 
    position: relative; /* Required for z-index to work */
    z-index: 50; 
}

#britway-container h2 { font-size: 1.5em; margin-top: 0; margin-bottom: 20px; }
#britway-container h3 { 
    font-size: 1.4em; 
    margin-top: 25px; 
    margin-bottom: 15px; 
    border-bottom: 1px solid #eee; 
    padding-bottom: 10px; 
    text-align: center; 
}

/* --- Booking Summary --- */
#britway-summary { border-top: 1px solid #eee; padding-top: 10px; margin-top: 20px; }
#britway-summary h3 { margin-top: 10px; }
#britway-summary-map { width: 100%; height: 300px; background: #eee; margin-bottom: 15px; border-radius: 4px; }

/* --- Price Summary Box (Redesigned) --- */
#britway-price-summary { 
    border: 1px solid #e0e0e0; 
    border-radius: 5px; 
    background: #fff; /* Pure white background like screenshot */
    padding: 20px; 
    text-align: center; 
    font-family: sans-serif;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    margin-top: 15px;
}

/* "Total Price:" Header */
#britway-price-summary .price-header { 
    font-size: 20px; 
    color: #666; 
    margin-bottom: 5px; 
}

/* Wrapper for the prices */
#britway-price-display {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    line-height: 1.2;
}

/* The "SALE" label */
span.britway-sale-tag {
    font-size: 18px;
    color: #cc0000; /* Deep Red */
    font-weight: bold;
    text-transform: uppercase;
    margin-bottom: 2px;
}

/* The Old Price (Strikethrough) */
#britway-price-original {
    font-size: 20px;
    color: #999; /* Greyed out */
    text-decoration: line-through;
    font-weight: normal;
    margin-bottom: -5px; /* Pulls the new price closer */
}

/* The New Price (Big Black Text) */
#britway-price-sale {
    font-size: 32px;
    font-weight: 700;
    color: #000;
}

/* When NOT on sale, add margin to separate from "Total Price" label */
#britway-price-display:not(.is-sale) #britway-price-sale {
    margin-top: 10px; 
}

/* Distance/Duration Details */
.trip-details {
    color: #444;
    font-size: 18px;
    line-height: 1.6;
    border-top: 1px solid #f0f0f0; /* Optional separator line */
    padding-top: 10px;
    margin-top: 5px;
}
.trip-details span {
    font-weight: bold;
    color: #222;
}

/* --- Form Styles --- */
.britway-form .britway-location-wrapper,
.britway-form .britway-datetime-wrapper,
.britway-form .britway-vehicle-wrapper,
.britway-form .britway-extras-wrapper,
.britway-form .britway-voucher-wrapper {
    margin-bottom: 15px;
}
/* --- FIX: Lift the dropdown above the footer --- */
.britway-form .britway-vehicle-wrapper {
    position: relative;
    z-index: 1001 !important; /* Force it to float above the footer */
}
.britway-form label {
    font-weight: 600;
    display: block;
    margin-bottom: 6px;
    font-size: 0.9em; 
    color: #444;
}
.britway-form input[type="text"],
.britway-form select {
    width: 100%;
    padding: 8px 10px; 
    box-sizing: border-box;
    border: 1px solid #ccc;
    border-radius: 4px;
    background-color: #fff;
    font-size: 16px; /* FIXED: 16px prevents iOS Zoom */
}
.britway-form input[type="text"]:focus,
.britway-form select:focus {
    border-color: #B42A24;
    box-shadow: 0 0 5px rgba(180, 42, 36, 0.3);
    outline: none;
}
.britway-form select {
    -webkit-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='24' height='24' fill='%23555'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 8px center;
    background-size: 20px;
    padding-right: 30px;
    cursor: pointer;
}

/* --- Split Date/Time Styles --- */
.britway-datetime-wrapper {
    display: flex;
    flex-direction: column; 
    gap: 0;
    flex-wrap: wrap; 
}
.britway-date-group {
    width: 100%;
    margin-bottom: 15px;
}
.britway-time-group {
    width: 100%;
}
/* --- NEW CODE --- */
@media (min-width: 400px) {
    .britway-datetime-wrapper { 
        flex-direction: row; 
        /* First number is Vertical gap (2px), Second is Horizontal gap (15px) */
        gap: 2px 15px; 
    }
    .britway-date-group { 
        flex: 1; 
        margin-bottom: 0;
    }
    .britway-time-group { 
        flex: 1; 
    }
}
#britway-pickup-date-input { background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='24' height='24' fill='%23777'%3E%3Cpath d='M17 3h-1V1h-2v2H10V1H8v2H7c-1.1 0-2 .9-2 2v16c0 1.1.9 2 2 2h10c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 18H7V9h10v12zm0-14H7V5h10v2z'/%3E%3C/svg%3E") no-repeat 98% center; background-size: 20px; padding-right: 35px; cursor: pointer; }
.britway-time-split-inputs { display: flex; align-items: center; gap: 8px; }

.britway-time-split-inputs select {
    flex: 1; 
    padding: 8px 10px;
    padding-right: 30px;
}
.britway-time-split-inputs select option[value=""] {
    color: #999;
}
.britway-time-split-inputs span { font-size: 1.2em; font-weight: bold; color: #777; }

/* --- Location Inputs with Icons --- */
.britway-location-wrapper { 
    position: relative; 
}
.britway-input-icon-wrapper {
    position: relative;
}
.britway-location-icon-svg {
    position: absolute;
    left: 10px;
    z-index: 2;
    color: #888;
    top: 0;
    height: 100%;
    display: flex;
    align-items: center;
}
.britway-geolocate-btn,
.britway-clear-input {
    position: absolute;
    right: 8px;
    z-index: 2;
    color: #888;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0 5px;
    top: 0;
    height: 100%;
    display: flex;
    align-items: center;
    outline: none;
    box-shadow: none;
}
.britway-geolocate-btn:hover,
.britway-clear-input:hover {
    color: #888; 
    background: transparent;
}
.britway-geolocate-btn:focus,
.britway-clear-input:focus {
    outline: none !important;
    box-shadow: none !important;
}
.britway-form input[type="text"].britway-search-box {
    padding-left: 40px; 
    padding-right: 40px; 
}

/* Suggestions Box */
.britway-suggestions { 
    display: none; 
    position: absolute; 
    width: 100%; 
    background: #fff; 
    border: 1px solid #ccc; 
    box-shadow: 0 4px 8px rgba(0,0,0,0.1); 
    z-index: 100002 !important; 
    max-height: 250px; 
    overflow-y: auto; 
}
.britway-suggestions p { margin: 0; padding: 8px 12px; font-size: 0.9em; color: #777; background: #f9f9f9; font-weight: bold; }
.britway-suggestions ul { list-style: none; margin: 0; padding: 0; }
.britway-suggestions li { 
    padding: 10px 12px; 
    cursor: pointer; 
    font-size: 0.85em; 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
}
.britway-suggestions li:hover { background: #f0f0f0; }

.britway-suggestion-icon {
    font-size: 1.2em;
    opacity: 0.7;
    margin-left: 10px; 
}

/* Optional Extras */
.britway-extras-list label { font-weight: normal; display: block; margin-bottom: 5px; }
.britway-extras-list input[type="checkbox"] { margin-right: 8px; }

/* "Get Quote" button */
#britway-get-quote { margin-top: 10px; width: 100%; text-align: center; padding: 12px; border: none; font-size: 1.1em; font-weight: bold; border-radius: 4px; }
#britway-get-quote:disabled { background: #999 !important; color: #fff !important; }

/* ============================================================
   MOBILE-SAFE PROMO CODE LAYOUT (v2.0)
   ============================================================ */

.britway-voucher-wrapper {
    background: #fdfdfd; 
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    padding: 15px; /* Reduced padding for mobile */
    margin-top: 15px;
    margin-bottom: 15px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.02);
    box-sizing: border-box; /* Ensures padding doesn't widen the box */
    width: 100%;
}

.britway-voucher-wrapper label {
    font-size: 0.9em; 
    color: #444;
    margin-bottom: 8px; 
    display: block; 
    font-weight: 700; 
    text-transform: uppercase;
}

.britway-voucher-inner {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: stretch !important;
    width: 100% !important;
    box-sizing: border-box;
    /* --- ADDED GAP --- */
    gap: 10px !important; 
}
.britway-voucher-inner input {
    flex-grow: 1 !important;
    flex-shrink: 1 !important;
    min-width: 0 !important;
    margin: 0 !important;
    height: 44px !important;
    
    /* --- RESTORED BORDERS & RADIUS --- */
    border-radius: 4px !important; 
    border: 1px solid #ccc !important; 
    /* Removed 'border-right: none' so the box is complete */
    
    box-shadow: none !important;
    width: auto !important;
    font-size: 16px !important;
}

#britway-apply-voucher,
#britway-remove-voucher {
    width: auto !important;
    flex-shrink: 0 !important;
    margin: 0 !important;
    height: 44px !important;
    
    /* --- RESTORED RADIUS (All corners round) --- */
    border-radius: 4px !important;
    font-size: 13px !important;
    font-weight: bold !important;
    text-transform: uppercase;
    padding: 0 15px !important;
    cursor: pointer;
    line-height: 44px !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
}

#britway-apply-voucher:hover { background-color: #111 !important; }

/* Remove Button Specifics (Red X) */
#britway-remove-voucher {
    background-color: #d63638 !important; 
    border-color: #d63638 !important;
    width: 44px !important; 
    padding: 0 !important;
    font-size: 24px !important;
}

/* 4. Message Box */
#britway-voucher-message {
    margin-top: 10px;
    font-size: 0.9em;
    padding: 10px;
    border-radius: 4px;
    width: 100%;
    box-sizing: border-box;
    display: none; /* Hidden by default */
}
#britway-voucher-message.error { 
    background: #fbeaea; 
    border-left: 4px solid #c00; 
    color: #c00; 
    display: block;
}
#britway-voucher-message.success { 
    background: #eafbea; 
    border-left: 4px solid #00c000; 
    color: #007700; 
    display: block;
}

/* Book Now Button (Top & Bottom) */
#britway-add-to-cart, #britway-add-to-cart-bottom { width: 100%; padding: 12px; border: none; font-size: 1.1em; font-weight: bold; border-radius: 4px; cursor: pointer; }
#britway-add-to-cart:disabled, #britway-add-to-cart-bottom:disabled { background: #999 !important; color: #fff !important; }

/* --- Inline Validation Errors --- */
.britway-error-message {
    display: none;
    color: #B42A24;
    font-size: 0.9em;
    margin-top: 0px;
    flex-basis: 100%; 
}
.britway-form input.britway-field-error,
.britway-form select.britway-field-error {
    border-color: #B42A24 !important;
    box-shadow: 0 0 5px rgba(180, 42, 36, 0.3) !important;
}
.britway-datetime-wrapper.britway-field-error {
    border: 1px solid #B42A24;
    border-radius: 4px;
    box-shadow: 0 0 5px rgba(180, 42, 36, 0.3) !important;
    padding: 5px;
    margin: -5px;
}

/* Messages */
#britway-message { margin-top: 10px; padding: 10px; border-radius: 3px; }
#britway-message.error { background: #fbeaea; border: 1px solid #c00; color: #c00; }
#britway-message.success { background: #eafbea; border: 1px solid #00c000; color: #007700; }

/* --- "Change Details" Button (Top & Bottom) --- */
#britway-edit-quote, #britway-edit-quote-bottom {
    width: 100%;
    text-align: center;
    padding: 12px;
    background: #f0f0f0; 
    border: 1px solid #ccc; 
    color: #555; 
    font-size: 1.1em;
    font-weight: bold;
    border-radius: 4px;
    cursor: pointer;
    box-sizing: border-box; 
}
#britway-edit-quote:hover, #britway-edit-quote-bottom:hover {
    background: #e0e0e0; 
    border-color: #bbb;
    color: #333;
}

/* --- NEW: Google Places Dropdown Styling (Floating Card v10.5) --- */
.pac-container {
    z-index: 100003 !important; 
    background-color: #fff !important;
    border: 1px solid #ccc !important; /* Restore border */
    border-top: 1px solid #ccc !important; /* Ensure top border is visible */
    border-radius: 4px !important; /* Round all corners */
    margin-top: 5px !important; /* Add a small gap */
    box-shadow: 0 4px 12px rgba(0,0,0,0.15) !important; /* nicer shadow */
}

/* Suggestions Box - MATCHING GOOGLE STYLE */
.britway-suggestions { 
    display: none; 
    position: absolute; 
    width: 100%; 
    background: #fff; 
    border: 1px solid #ccc; 
    border-top: none; /* Blend with input */
    box-shadow: 0 4px 8px rgba(0,0,0,0.15); 
    z-index: 100002 !important; 
    max-height: 300px; 
    overflow-y: auto;
    border-radius: 0 0 4px 4px;
}

/* The "Quick Results" Header */
.britway-suggestions p { 
    margin: 0; 
    padding: 8px 15px; 
    font-size: 13px; 
    color: #999;        /* Keep label subtle */
    background: #fafafa; 
    font-weight: 700; 
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid #eee;
}

.britway-suggestions ul { list-style: none; margin: 0; padding: 0; }

/* The List Items */
.britway-suggestions li { 
    position: relative; /* <--- Anchors the absolute icon */
    padding: 12px 15px;      
    padding-right: 40px !important; /* <--- Makes room for icon so text doesn't overlap */
    cursor: pointer; 
    
    font-size: 16px !important;  
    font-weight: 400 !important; 
    color: #000000 !important;   
    
    display: flex; 
    align-items: center; /* Keeps text vertically centered */
    justify-content: flex-start; /* Forces text parts to stay touching */
    
    border-bottom: 1px solid #eee;
    transition: background 0.1s;
}

.britway-suggestions li:last-child { border-bottom: none; }
.britway-suggestions li:hover { background: #f2f2f2; }

/* The Icon - Pinned to the Wall */
.britway-suggestion-icon {
    font-size: 1.1em;
    color: #000 !important;
    opacity: 0.7;

    /* NUCLEAR OPTION: Force it to the right corner */
    position: absolute !important;
    right: 15px; 
    top: 50%;
    transform: translateY(-50%); /* Centers it vertically exactly */
    
    margin: 0 !important; /* Remove any margins interfering */
}

/* The Highlighted Match */
.britway-suggestions li strong {
    font-weight: 600 !important; 
    color: #000 !important;      
}

.britway-suggestions li:last-child { border-bottom: none; }

.britway-suggestions li:hover { 
    background: #f2f2f2; 
}

/* The Icon inside the suggestion */
.britway-suggestion-icon {
    font-size: 1.1em;
    color: #000 !important; /* Make icon black */
    opacity: 0.7;
    margin-left: 10px; 
}



/* --- Summary Details (v2 - Compact) --- */
#britway-summary-details {
    background: #fdfdfd;
    border: 1px solid #eee;
    border-radius: 4px;
    padding: 0 15px; 
    margin-bottom: 15px; /* Reduced margin now that voucher is below */
}

#britway-summary-details ul { list-style: none; margin: 0; padding: 0; }

#britway-summary-details li {
    padding: 8px 0; 
    margin: 0;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    font-size: 0.95em; 
    gap: 15px; 
}

#britway-summary-details li:last-child { border-bottom: none; }

#britway-summary-details li strong {
    color: #555;
    white-space: nowrap; 
}

#britway-summary-details li span {
    color: #111;
    font-weight: 600;
    text-align: right;
    flex-basis: 70%; 
}

/* ==========================================================================
   WOOCOMMERCE CHECKOUT & ORDER STYLING (Layout Only - No Colors)
   ========================================================================== */

/* --- 1. Cart & Checkout Items (The List) --- */
strong.britway-title {
    font-size: 1.1em;
    display: block;
    margin-bottom: 8px;
    /* No Color - inherits theme default */
}

/* Fix the definition list layout so it lines up nicely */
.woocommerce-checkout .product-name dl.variation,
.woocommerce-cart .product-name dl.variation,
.woocommerce-order-received .product-name dl.variation {
    /* Removed border-left and padding-left to remove the gray line */
    margin-top: 8px;
}

/* Labels (e.g. "Pickup From:") */
.woocommerce-checkout .product-name dl.variation dt,
.woocommerce-cart .product-name dl.variation dt,
.woocommerce-order-received .product-name dl.variation dt {
    float: none;
    clear: both;
    font-weight: 700;
    color: #333;
    margin-bottom: 2px;
    font-size: 0.9em;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Values (e.g. "Heathrow") */
.woocommerce-checkout .product-name dl.variation dd,
.woocommerce-cart .product-name dl.variation dd,
.woocommerce-order-received .product-name dl.variation dd {
    float: none;
    margin-bottom: 10px;
    color: #555;
    font-style: normal;
    font-size: 1em;
}

/* Remove extra paragraphs */
.woocommerce-checkout .product-name dl.variation dd p,
.woocommerce-cart .product-name dl.variation dd p,
.woocommerce-order-received .product-name dl.variation dd p {
    margin-bottom: 0;
}

/* --- Thank You Message Box (Green Style) --- */
.woocommerce-thankyou-order-received {
    background: #eafbea;         /* Light Green Background */
    border: 1px solid #00c000;   /* Green Border */
    color: #007700;              /* Dark Green Text */
    padding: 18px;               /* Spacing inside */
    border-radius: 4px;          /* Rounded Corners */
    margin-bottom: 25px;         /* Spacing below */
    text-align: center;          /* Center the text */
    font-weight: bold;           /* Make text bold */
    font-size: 1.0em;            /* Slightly larger text */
    clear: both;                 /* Ensure it sits on its own line */
    display: block;              /* Force it to fill width */
}

/* --- Mobile Dropdown Text Size Fix --- */
@media only screen and (max-width: 768px) {
    /* 1. Shrink the text inside the box */
select#britway-vehicle {
        font-size: 16px !important; /* FIXED: Must be 16px for iOS */
        padding-left: 5px !important;
        padding-right: 20px !important;
        line-height: 1.2 !important;
        white-space: nowrap;
        text-overflow: ellipsis;
    }

    select#britway-vehicle option {
        font-size: 16px !important; /* FIXED */
    }
}



/* --- NEW CODE --- */
.britway-custom-select-wrapper {
    position: relative;
    user-select: none;
    width: 100%;
    margin-bottom: 2px; /* <--- Reduced to 2px */
    font-family: inherit;
}

.britway-custom-select {
    position: relative;
    display: flex;
    flex-direction: column;
}

/* The box you click on */
.britway-select-trigger {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 15px;
    font-size: 15px;
    font-weight: 500;
    color: #757575; /* Grey placeholder color */
    
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 4px;
    cursor: pointer;
    min-height: 45px; /* Matches other inputs */
    box-sizing: border-box;
    transition: all 0.2s;
}
.britway-select-trigger.selected {
    color: #333;
}
.britway-select-trigger:hover {
    border-color: #aaa;
}

/* The Arrow Icon */
.britway-select-trigger .arrow {
    width: 0; 
    height: 0; 
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 6px solid #555;
    margin-left: 10px;
}


/* The Dropdown List (OPENS DOWNWARDS - FIXED) */
.britway-custom-options {
    position: absolute;
    display: none;
    top: 100%;          /* Push it DOWN from the trigger */
    bottom: auto;       /* Reset bottom */
    left: 0;
    right: 0;
    border: 1px solid #ccc;
    border-top: none;   /* Remove top border so it blends with the box */
    background: #fff;
    z-index: 100005;
    max-height: 300px;
    overflow-y: auto;
    box-shadow: 0 4px 8px rgba(0,0,0,0.15); /* Shadow goes down */
    border-radius: 0 0 4px 4px; /* Round bottom corners */
    margin-top: 0;
}

.britway-custom-options.open {
    display: block;
}

/* Individual Option Items */
.britway-option {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    border-bottom: 1px solid #eee;
    cursor: pointer;
    transition: background 0.2s;
}

.britway-option:last-child {
    border-bottom: none;
}

.britway-option:hover {
    background-color: #f5f5f5;
}

/* Car Image Styling - BIGGER VERSION */
.britway-car-img {
    width: 100px;       /* <-- CHANGED from 70px to 100px */
    margin-right: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.britway-car-img img {
    max-width: 100%;
    max-height: 100px;   /* <-- CHANGED from 40px to 60px */
    object-fit: contain;
}
/* Text Details */
.britway-car-details {
    display: flex;
    flex-direction: column;
    line-height: 1.3;
}

.britway-car-name {
    font-weight: bold;
    font-size: 17px;
    color: #222;
}

.britway-car-specs {
    font-size: 14px;
    color: #666;
    margin-top: 2px;
    font-weight: normal;
}
/* Hide the Optional Extras wrapper initially */
.britway-extras-wrapper {
    display: none;
}

/* --- UNIVERSAL SMALLER ERRORS (Replaces Mobile/Desktop specific sizes) --- */
#britway-datetime-error,
#britway-message,
#britway-message.error,
#britway-vehicle-error,      /* Targets vehicle error specifically */
#britway-pickup-error,       /* Targets pickup error */
#britway-dropoff-error,      /* Targets dropoff error */
.britway-error-message,      /* Targets general inline errors */
.britway-dynamic-req-error { /* Targets "Required" text under inputs */
    font-size: 15px !important; 
    line-height: 1.4 !important;
    font-weight: normal; 
}

/* Keep padding for the main error box tidy */
#britway-message.error {
    padding: 8px 12px !important;
}
/* --- Fix Spacing Below Date/Time Error Box --- */
.britway-datetime-wrapper.britway-field-error {
    margin-bottom: 15px !important; /* Pushes the Vehicle dropdown down */
}
/* --- NEW: Passengers, Suitcases, Hand Luggage Layout --- */
.britway-req-wrapper {
    display: flex;
    flex-wrap: nowrap; /* Force them to stay on one line */
    gap: 15px;
    margin-bottom: 15px;
}

.britway-req-group {
    flex: 1; /* Grow evenly */
    width: 33.33%; /* Force equal width */
    min-width: 0; /* Allow them to shrink smaller than their content */
}

/* --- MOBILE SPECIFIC FIXES (Screens 600px or smaller) --- */
@media only screen and (max-width: 600px) {
    .britway-req-wrapper {
        gap: 15px; /* Tighter gap is required to fit 3 items */
    }
    
.britway-req-group label {
        font-size: 16px !important; /* FIXED: Prevents Zoom */
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
.britway-req-group select {
    padding-left: 0 !important;
    padding-right: 15px !important; /* Slightly tighter */
    background-position: right 5px center !important; /* Move arrow off the very edge */
    text-indent: -3px; /* Pulls the number slightly left to prevent overlap with the arrow */
}
}

/* Add this to the bottom of britway.css */
.britway-select-trigger.britway-field-error {
    border-color: #B42A24 !important;
    box-shadow: 0 0 5px rgba(180, 42, 36, 0.3) !important;
}


/* ============================================================
   UNIFIED EXTRA ITEM CARD (Clean Version - No Red Line)
   ============================================================ */

/* 1. The Main Box Container */
.britway-extra-label {
    display: block;
    position: relative;
    background: #fff;              /* Pure white background */
    border: 1px solid #e0e0e0;     /* Subtle grey border all around */
    border-radius: 4px;            /* Round corners on all sides */
    padding: 15px;                 /* Spacing inside */
    margin-bottom: 15px;           /* Spacing between boxes */
    box-shadow: 0 2px 5px rgba(0,0,0,0.03); /* Very light shadow */
    cursor: pointer;
    transition: all 0.2s ease;
}

/* Hover Effect: Darker border + slightly lifted */
.britway-extra-label:hover {
    border-color: #ccc;
    box-shadow: 0 4px 8px rgba(0,0,0,0.08);
    transform: translateY(-1px);
}

/* 2. The Item Name & Price (Top Row) */
.britway-extra-name {
    font-size: 15px;
    font-weight: 700;
    color: #222;
    margin-right: 5px;
    vertical-align: middle;
}

.britway-dynamic-price {
    font-size: 14px;
    color: #555;
    vertical-align: middle;
}

/* 3. The Description Text (Bottom Row) */
.britway-item-desc {
    display: block;
    margin-top: 10px;           
    padding-top: 10px;          
    border-top: 1px solid #f0f0f0; 
    
    /* --- FONT SIZE CONTROL --- */
    font-size: 16px !important;  /* Change this number (e.g. 14px, 12px) */
    color: #666 !important;      /* Force the grey color */
    line-height: 1.5 !important;
}
/* Remove margins from paragraphs inside so it fits snugly */
.britway-item-desc p { margin: 0 0 5px 0; }
.britway-item-desc p:last-child { margin-bottom: 0; }

/* 4. Fix Quantity Dropdown Alignment */
.britway-qty-input {
    margin-right: 12px !important; 
    background-color: #fff;
    border: 1px solid #ccc;
    border-radius: 3px;
}
/* --- NEW CODE --- */
.britway-extra-label input[type="checkbox"]:checked + span::before {
    background: #B42A24; /* Red */
    border-color: #B42A24; /* Red */
}









/* --- 2. Main Error Box Style (Above Button) --- */
.britway-error-box {
    background-color: #fbeaea;
    border: 1px solid #B42A24;
    color: #B42A24;
    padding: 15px;
    margin-bottom: 20px; /* Space between box and button */
    border-radius: 4px;
    font-weight: 600;
    font-size: 15px;
    text-align: center;
    line-height: 1.5;
    display: none; /* Hidden by default */
}

/* Reduce space between Vehicle dropdown and Error message */
#britway-vehicle-error {
    margin-top: 2px !important;  /* Tighter gap (was 5px or default) */
    padding-top: 0 !important;   /* Removes any internal top padding */
    line-height: 1.3 !important; /* Tights up the text lines slightly */
}


/* ============================================================
   VEHICLE RESULT CARD (High Specificity Fix)
   ============================================================ */

/* The Card Container */
#britway-container .britway-result-card {
    border: 1px solid #ddd;
    border-radius: 3px;
    margin-bottom: 10px;
    padding: 10px;
    display: flex;
    align-items: center;
    cursor: pointer;
    background: #fff;
    transition: all 0.2s ease;
}

/* Image Wrapper */
#britway-container .britway-car-img {
    width: 80px;
    margin-right: 15px;
    flex-shrink: 0;
}

#britway-container .britway-car-img img {
    max-width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
}

/* Text Details (Middle) */
#britway-container .britway-car-details {
    flex-grow: 1;
}

#britway-container .britway-car-name {
    font-size: 17px !important; /* Force Size */
    display: block;
    font-weight: bold;
    color: #222;
    margin-bottom: 3px;
    line-height: 1.2;
}

#britway-container .britway-car-specs {
    color: #666;
    font-size: 15px !important; /* Force Size */
    display: block;
    line-height: 1.4;
}

/* Price & Button (Right Side) */
#britway-container .britway-car-price {
    text-align: right;
    margin-left: 15px;
    min-width: 80px;
}

/* 1. Reduce space below the Passenger/Luggage inputs */
#britway-container .britway-req-wrapper {
    margin-bottom: 5px !important;   /* Reduced from 15px */
}

/* 2. Reduce space above the Results Container */
/* This overrides the inline 'margin-top: 20px' and 'padding-top: 20px' from PHP */
#britway-container #britway-vehicle-results-wrapper {
    margin-top: 0px !important;      /* Remove top margin completely */
    padding-top: 10px !important;    /* Reduce top padding */
    border-top: 1px solid #eee !important; /* Keep the separator line */
}

/* 3. Tweak the Title itself to sit tighter */
#britway-container #britway-vehicle-results-wrapper h3 {
    margin-top: 5px !important;      /* Small gap from the border line */
    margin-bottom: 15px !important;  /* Space between title and first car */
    padding-bottom: 0 !important;
    border-bottom: none !important;  /* Remove extra border under title if present */
}



/* --- FIX: CENTER NUMBERS IN DROPDOWN --- */

#britway-container .britway-req-group select {
    text-align: center !important;       /* Works for Firefox */
    text-align-last: center !important;  /* CRITICAL: Works for Chrome/Edge */
    font-size: 16px !important;          /* YOUR REQUEST: Font Size 16px */
    /* Adjust padding to visual center (accounting for the arrow on the right) */
    padding-left: 10px !important;
    padding-right: 15px !important;      /* Leave space for the arrow */
}

/* Optional: Fix the options inside the dropdown list itself */
#britway-container .britway-req-group select option {
    text-align: center !important;
}




/* --- FIX: CENTER TIME INPUTS --- */

#britway-container .britway-time-split-inputs select {
    text-align: center !important;       /* Firefox */
    text-align-last: center !important;  /* Chrome/Edge/Safari */
    font-size: 16px !important;          /* YOUR REQUEST: Font Size 16px */
    /* Remove left padding so it centers properly */
    padding-left: 0 !important;
    
    /* Keep right padding for the arrow so text doesn't overlap it */
    padding-right: 20px !important; 
}

/* Ensure the dropdown list items are also centered */
#britway-container .britway-time-split-inputs select option {
    text-align: center !important;
}


/* --- PILL STYLE TITLE: "SELECT YOUR VEHICLE" --- */

#britway-container #britway-vehicle-results-wrapper h3 {
    /* 1. The Pill Shape */
    background-color: #f5f5f5 !important;    /* Exact light grey match */
    border: 1px solid #ddd !important;       /* Subtle border */
    border-radius: 50px !important;          /* Fully rounded ends */
    
    /* 2. Positioning */
    width: fit-content !important;           /* Shrink to fit text */
    margin: 20px auto 20px auto !important;  /* Center horizontally */
    display: block !important;

    /* 3. Text Styling to match image */
    color: #555 !important;                  /* Dark grey text */
    font-family: inherit !important;         /* Use site font */
    font-size: 16px !important;              /* Clean readable size */
    font-weight: normal !important;          /* Not too bold */
    text-align: center !important;
    text-transform: none !important;         /* Keep it normal (not uppercase) if you prefer */
    padding: 8px 20px !important;            /* Internal spacing */
    
    /* 4. Remove unwanted defaults */
    line-height: 1.5 !important;
    letter-spacing: normal !important;
}

/* Optional: Add a small down arrow after the text if you want it to look 100% identical */
#britway-container #britway-vehicle-results-wrapper h3::after {
    content: " \2193"; /* Unicode for Down Arrow */
    font-size: 14px;
    margin-left: 5px;
    opacity: 0.7;
}



/* --- CONTACT BUTTON FIX --- */

/* 1. Default (Desktop) - Big and Easy to Click */
#britway-container .britway-contact-btn {
    background-color: #333 !important;
    color: #fff !important;
    border: none !important;
    padding: 10px 10px !important; /* Large hit area */
    font-size: 16px !important;
    font-weight: 500 !important;
    border-radius: 4px !important;
    text-decoration: none !important;
    display: inline-block !important;
    white-space: nowrap !important; /* Never break text to two lines */
    line-height: normal !important;
    transition: background 0.2s;
}

#britway-container .britway-contact-btn:hover {
    background-color: #111 !important;
}
    
    /* Ensure the Right Side (Price/Button) doesn't squash the text */
    #britway-container .britway-car-price {
        margin-left: 10px !important;
        min-width: auto !important; /* Allow it to be flexible */
}




/* --- HYBRID SEARCH FIX --- */
/* Hide Google Dropdown when Custom Suggestions are open */
body.britway-custom-active .pac-container {
    display: none !important;
}




/* --- BRITWAY: SET WIDTH TO 600PX --- */

#britway-container {
    max-width: 700px !important;  /* The explicit 600px limit */
    width: 100% !important;       /* Allows shrinking on small mobile screens */
    margin: 0 auto !important;    /* Keeps the form centered */
}

/* Optional: Scale inputs to look good at 600px */
#britway-container input, 
#britway-container select, 
#britway-container button {
    box-sizing: border-box !important; /* Prevents padding issues */
}




/* --- GOOGLE DROPDOWN FONT FIX --- */

/* 1. The individual row items */
.pac-container .pac-item {
    font-size: 16px !important;   /* <--- Force text size */
    line-height: 1.4 !important;  /* Give it breathing room */
    padding: 12px 10px !important; /* Make it easier to click */
    color: #333 !important;
    cursor: pointer !important;
}

/* 2. The "matched" text (e.g. the city name) */
.pac-container .pac-item .pac-item-query {
    font-size: 16px !important;   /* <--- Match the row size */
    color: #000 !important;       /* Make it pitch black */
    font-weight: 600 !important;  /* Make it bold */
}

/* 3. The small icon next to the text */
.pac-container .pac-icon {
    margin-top: 4px !important;   /* Align icon with new text size */
}




/* --- FORCE INPUT TEXT TO PITCH BLACK --- */
.britway-form input[type="text"],
.britway-form select {
    color: #000000 !important;       /* Standard browsers */
    opacity: 1 !important;           /* Force 100% visibility */
}

/* Fix for when browser Autofills the background/text */
.britway-form input:-webkit-autofill,
.britway-form input:-webkit-autofill:hover, 
.britway-form input:-webkit-autofill:focus {
    -webkit-text-fill-color: #000000 !important;
    transition: background-color 5000s ease-in-out 0s; /* Prevents yellow background if you want */
}

/* --- AUTO-TOGGLE: SHOW 'X' ONLY WHEN TYPING --- */

/* 1. When the input is EMPTY (Placeholder is showing) */
.britway-form input:placeholder-shown ~ .britway-clear-input {
    display: none !important;    /* Hide the X */
}
.britway-form input:placeholder-shown ~ .britway-geolocate-btn {
    display: flex !important;    /* Show the Location Target */
}

/* 2. When the input has TEXT (Placeholder is hidden) */
.britway-form input:not(:placeholder-shown) ~ .britway-clear-input {
    display: flex !important;    /* Show the X permanently */
}
.britway-form input:not(:placeholder-shown) ~ .britway-geolocate-btn {
    display: none !important;    /* Hide the Location Target */
}







/* --- FIX: SPACE BETWEEN "TERMINAL" AND "1" --- */
.britway-suggestions li {
    display: block !important;    /* Disable Flexbox so text flows like a sentence */
    line-height: 1.5 !important;  /* Ensure good vertical spacing */
    min-height: 20px;             /* Ensure row has height even if empty */
}

/* Ensure the text doesn't hit the absolute icon */
.britway-suggestions li span,
.britway-suggestions li strong {
    display: inline;              /* Force text elements to sit on the same baseline */
}











/* ============================================================
   MASTER MOBILE FIX (Centered + Top Margin)
   ============================================================ */
@media (max-width: 600px) {
    
    /* 1. Ensure Container fits the screen */
    #britway-container {
        padding-left: 15px !important;
        padding-right: 15px !important;
        width: 100% !important;
        margin: 0 auto !important;
    }
    
    /* 2. THE DROPDOWN: Centered + Gap at Top */
    .pac-container {
        box-sizing: border-box !important;
        position: absolute !important;
        
        /* CENTERING LOGIC (Ignores device margins) */
        left: 50% !important;
        transform: translateX(-50%) !important;
        
        /* WIDTH: Exact match to input */
        width: calc(100vw - 30px) !important; /* Matches 15px left + 15px right padding */
        
        right: auto !important;
        
        /* RESTORE TOP MARGIN HERE */
        margin-top: 5px !important;  /* Adds the gap back */
        margin-left: 0 !important;
        margin-right: 0 !important;
        margin-bottom: 0 !important;
        
        /* Visuals */
        border-top: 1px solid #ccc !important; /* Restore border for separation */
        border-radius: 4px !important;
        box-shadow: 0 10px 20px rgba(0,0,0,0.19) !important;
        padding-bottom: 25px !important; 
        background-position: right 10px bottom 5px !important; 
        background-size: 100px !important; 
    }

    /* 3. THE TEXT: Prevent Wrapping */
    .pac-container .pac-item {
        font-size: 14px !important;
        padding: 10px 8px !important;
        line-height: 1.3 !important;
    }

    .pac-container .pac-item .pac-item-query {
        font-size: 14px !important;   
    }

    .pac-container .pac-icon {
        margin-top: 3px !important;   
    }
}









/* ============================================================
   FIX: OPTIONAL EXTRAS TEXT SIZE (Make it Readable)
   ============================================================ */

/* 1. The Section Title ("Optional Extras") */
.britway-extras-wrapper > label {
    font-size: 18px !important;   /* Was 0.9em (~14px) */
    font-weight: 700 !important;
    color: #000 !important;        /* Pitch Black */
    margin-bottom: 15px !important;
    display: block !important;
}

/* 2. The Item Name (e.g. "Child Seat") */
.britway-extra-name {
    font-size: 17px !important;    /* Was 15px */
    font-weight: 700 !important;
    color: #222 !important;
}

/* 3. The Price Tag (e.g. "+£5.00") */
.britway-dynamic-price {
    font-size: 16px !important;    /* Was 14px */
    font-weight: 500 !important;
    color: #B42A24 !important;     /* Make the price Red to stand out? Or keep #555 if you prefer grey */
}

/* 4. The Description Text (e.g. "Suitable for age 1-4") */
.britway-item-desc {
    font-size: 16px !important;    /* Ensure this stays big */
    line-height: 1.5 !important;
}

/* 5. Mobile Tweak: Ensure the checkbox is easy to hit */
.britway-extra-label input[type="checkbox"] {
    transform: scale(1.3);         /* Make the checkbox box 30% bigger */
    margin-right: 12px;
}







/* The Default "Add" State */
#britway-toggle-return {
    width: 100%;
    text-align: center;
    background: #f9f9f9;
    color: #333;
    border: 1px solid #ddd;
    font-weight: 600;
    transition: all 0.2s ease;
}

/* The Active "Remove" State */
#britway-toggle-return.britway-return-active {
    background: #fff;           /* Clean White */
    color: #B42A24;             /* Red Text */
    border: 1px solid #B42A24;  /* Red Border */
    opacity: 0.8;
}

#britway-toggle-return.britway-return-active:hover {
    background: #B42A24;        /* Red Background on Hover */
    color: #fff;                /* White Text on Hover */
    opacity: 1;
}



.britway-summary-header {
    background: #f9f9f9;          
    color: #333;                  
    font-size: 13px !important;   /* <--- REDUCED (Was 15px/17px) */
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;       
    padding: 10px 15px;           
    margin-bottom: 15px;          
    border-left: 4px solid #B42A24; 
    border-radius: 0 4px 4px 0;   
    display: block;
}







/* --- Summary List (Receipt Style) --- */
.britway-summary-list {
    margin: 0 0 20px 0;
    padding: 0 10px; /* Indent slightly from the box edge */
    list-style: none;
    font-size: 14px;
    color: #555;
}

.britway-summary-list li {
    display: flex;
    justify-content: space-between; /* Pushes Label to Left, Value to Right */
    align-items: flex-start;        /* Aligns text to top if address wraps */
    padding: 8px 0;
    border-bottom: 1px solid #f1f1f1; /* Subtle divider */
}

/* Remove border from the last item so it looks clean */
.britway-summary-list li:last-child {
    border-bottom: none;
}

/* The Label (From, To, When) */
.britway-summary-list li strong {
    color: #222;
    font-weight: 600;
    flex-shrink: 0;  /* Prevents label from squashing */
    margin-right: 15px;
}

/* The Value (Address, Date) */
.britway-summary-list li span {
    text-align: right;
    font-weight: 500;
    color: #333;
    max-width: 70%;  /* Ensures long addresses wrap nicely */
}

/* --- Special Style for the Price Row --- */
.britway-summary-price-row {
    margin-top: 5px;
    padding-top: 12px !important;
    border-top: 2px dashed #e0e0e0 !important; /* Receipt-style dash line */
    border-bottom: none !important;
    align-items: center !important;
    font-size: 16px;
}

.britway-summary-price-row strong {
    color: #B42A24; /* Red Label */
    text-transform: uppercase;
}

.britway-summary-price-row span {
    color: #B42A24 !important; /* Red Price */
    font-weight: 800;
    font-size: 18px;
}







/* ============================================================
   FINAL SUMMARY BOX FIXES (Dark Grey Edition)
   ============================================================ */

/* 1. VEHICLE DETAILS: Set to 16px */
#britway-summary-details li {
    font-size: 16px !important; 
    line-height: 1.6 !important;
}
#britway-summary-details #summary-vehicle {
    font-size: 17px !important; 
    color: #222 !important; /* Soft Black for Vehicle Name */
}

/* 2. HEADERS: One Way / Return Journey */
.britway-summary-header {
    font-size: 15px !important;       /* <--- CHANGED to 13px */
    letter-spacing: 0.5px !important; 
    padding: 12px 15px !important;
    
    /* Optional: Ensure the background stays light grey if you want */
    background: #f9f9f9 !important;
    color: #333 !important;
}

/* 3. MAIN LIST: From/To/When/Includes */
.britway-summary-list {
    font-size: 16px !important; 
}
.britway-summary-list li {
    padding: 10px 0 !important; 
    line-height: 1.5 !important;
    /* FIX: This forces raw text (like '3 Passengers') to be Dark Grey */
    color: #333 !important; 
}

/* FIX: Target Labels and Values specifically */
.britway-summary-list li strong {
    color: #333 !important; /* Dark Grey Label */
    opacity: 1 !important;
}
.britway-summary-list li span {
    color: #333 !important; /* Dark Grey Value */
    font-weight: 600 !important; 
    opacity: 1 !important;
}

/* 4. PRICE ROW: Big & Red */
.britway-summary-price-row strong {
    font-size: 16px !important; 
    color: #B42A24 !important; /* Red Label */
}
.britway-summary-price-row span {
    font-size: 16px !important; 
    font-weight: 800 !important;
    color: #B42A24 !important; /* Red Value */
}

/* 5. RETURN BUTTON: White w/ Red Border + Grey Hover */
#britway-toggle-return {
    background: #fff !important;        
    border: 2px solid #B42A24 !important; 
    color: #B42A24 !important;          
    font-size: 16px !important;         
    font-weight: 700 !important;        
    text-transform: uppercase !important;
    padding: 12px !important;           
    margin-top: 15px !important;        
    box-shadow: 0 4px 6px rgba(180, 42, 36, 0.1) !important; 
}

#britway-toggle-return:hover {
    background: #444 !important;   /* Dark Grey Hover */
    border-color: #444 !important; 
    color: #fff !important;       
    transform: translateY(-1px);
}

#britway-toggle-return.britway-return-active {
    border-color: #555 !important;
    color: #555 !important;
    background: #f0f0f0 !important;
    box-shadow: none !important;
}
#britway-toggle-return.britway-return-active:hover {
    background: #e0e0e0 !important;
    color: #333 !important;
}


.britway-vehicle-desc {
    font-size: 15px;
    color: #666;
    margin-top: 5px;
    line-height: 1.4;
}



@media only screen and (max-width: 600px) {
    .britway-vehicle-desc {
        font-size: 15px !important;
        line-height: 1.4 !important;
    }
}


















/* ==============================================
   FIX: Aeropick VERTICAL STACK (Text Replacement)
   ============================================== */

/* 1. Force the Container to allow vertical stacking */
.britway-sightseeing-box {
    display: flex !important;
    flex-direction: column !important; /* This forces them into a vertical column */
    gap: 12px !important;              /* Adds space between the two options */
    
    visibility: visible !important;
    opacity: 1 !important;
    margin-top: 15px !important;
    padding: 0 !important;
    background: transparent !important;
    border: none !important;
}

/* 2. Base Style for Options (Full Width Rows) */
.britway-sightseeing-option {
    display: flex !important;          /* Changed from inline-flex to flex */
    align-items: center !important;
    width: 100% !important;            /* Forces it to take the full line */
    margin: 0 !important;              /* Remove old margins */
    
    visibility: visible !important;
    opacity: 1 !important;
    cursor: pointer !important;
    background: transparent !important;
    border: none !important;
    
    /* TRICK: Hide the old text */
    font-size: 0 !important; 
}

/* 3. Force Radio Dot to be Visible & Sized */
.britway-sightseeing-option input[type="radio"] {
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
    width: 18px !important;
    height: 18px !important;
    margin-right: 10px !important;      /* Slightly more space from text */
    accent-color: #B42A24 !important;   /* Red Dot */
    flex-shrink: 0 !important;
}

/* --- 4. INSERT NEW TEXT: YES --- */
.britway-sightseeing-option:first-of-type::after {
    content: "Yes, I am interested!";  
    font-size: 16px !important;
    color: #333 !important;
    font-weight: 600 !important;
}

/* --- 5. INSERT NEW TEXT: NO --- */
.britway-sightseeing-option:nth-of-type(2)::after {
    content: "No, thank you";        
    font-size: 16px !important;
    color: #333 !important;
    font-weight: 600 !important;
}







/* 1. SHRINK Month Dropdown & FIX COLORS */
.flatpickr-current-month .flatpickr-monthDropdown-months {
    width: auto !important;
    max-width: 60% !important;
    display: inline-block !important;
    height: auto !important;
    padding: 0 5px !important;
    position: relative !important;
    z-index: 100 !important;
    -webkit-appearance: menulist !important;
    appearance: menulist !important;
    
    /* DYNAMIC COLORS (From Appearance Settings) */
    background: var(--bw-cal-head) !important; /* Background matches Header */
    color: var(--bw-cal-txt) !important;      /* Text matches Header */
}

/* 2. STYLE THE DROPDOWN LIST ITEMS (The "List" itself) */
.flatpickr-current-month .flatpickr-monthDropdown-months .flatpickr-monthDropdown-month {
    background-color: var(--bw-cal-head) !important; /* Force Red (or your setting) background */
    color: var(--bw-cal-txt) !important;             /* Force White (or your setting) text */
}





/* 5. Fix Arrows Colors */
.flatpickr-current-month .numInputWrapper span.arrowUp:after {
    border-bottom-color: var(--bw-cal-txt) !important;
}
.flatpickr-current-month .numInputWrapper span.arrowDown:after {
    border-top-color: var(--bw-cal-txt) !important;
}




/* --- PRICE SUMMARY OVERLAY SPINNER --- */
.britway-section-loading {
    position: relative !important;
    pointer-events: none !important;
}

/* The Gray Mask */
.britway-section-loading::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(255, 255, 255, 0.7);
    z-index: 998;
    border-radius: inherit;
}

/* The Centered Spinner */
.britway-section-loading::after {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    width: 40px; height: 40px;
    margin-top: -20px; margin-left: -20px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid var(--bw-spinner, #B42A24); /* Hooks into NEW Setting */
    border-radius: 50%;
    animation: bw-spin 1s linear infinite;
    z-index: 999;
}

@keyframes bw-spin { 
    0% { transform: rotate(0deg); } 
    100% { transform: rotate(360deg); } 
}



/* ============================================================
   LOCKDOWN V3: Absolute Sizing & Alignment Fix
   ============================================================ */

/* 1. Universal Heights & Vertical Alignment */
#britway-container .britway-form input[type="text"],
#britway-container .britway-form select {
    height: 44px !important;
    min-height: 44px !important;
    max-height: 44px !important;
    margin: 0 !important;
    box-sizing: border-box !important;
    
    /* Force 0 vertical padding so the theme cannot push text down */
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

/* 2. Text Input Line Height & Default Padding */
#britway-container .britway-form input[type="text"] {
    line-height: 44px !important; /* Perfectly centers text in inputs */
    padding-left: 15px !important;
    padding-right: 15px !important;
}

/* 3. THE MAP ICON FIX (Strictly overrides Rule 2) */
#britway-container .britway-form input[type="text"].britway-search-box {
    padding-left: 40px !important; /* Pushes text past the left pin */
    padding-right: 40px !important; /* Pushes text past the right targets */
}

/* 4. SELECT DROPDOWN FIX (Stops vertical clipping) */
#britway-container .britway-form select {
    /* 'normal' lets the browser natively center the text inside the 44px box */
    line-height: normal !important; 
    padding-left: 10px !important;
    padding-right: 30px !important; /* Leaves room for the arrow */
}







/* ============================================================
   MOBILE FIX: STANDARD PHONES (Up to 600px)
   ============================================================ */
@media only screen and (max-width: 600px) {
    /* 1. Shrink the vehicle name */
    #britway-container .britway-car-name {
        font-size: 15px !important; 
        line-height: 1.2 !important;
    }

    /* 2. Shrink the specs (passengers/luggage) */
    #britway-container .britway-car-specs {
        font-size: 15px !important; 
        line-height: 1.2 !important;
    }

    /* 3. Shave down the button padding and text size */
    #britway-container .britway-contact-btn {
        padding: 8px 8px !important; 
        font-size: 14px !important;  
    }

    /* 4. Steal 5px back from the image margin */
    #britway-container .britway-car-img {
        margin-right: 5px !important; 
    }
    
    /* 5. Steal 5px back from the price margin */
    #britway-container .britway-car-price {
        margin-left: 5px !important; 
    }
}

/* ============================================================
   ULTRA-SMALL MOBILE FIX (iPhone SE / 12 Mini / 12 Pro)
   Triggers only on screens 395px and smaller
   ============================================================ */
@media only screen and (max-width: 395px) {
    /* 1. The image is hogging too much space. Shrink it. */
    #britway-container .britway-car-img {
        width: 55px !important; 
        margin-right: 5px !important;
    }

    /* 2. Your 15px name won't fit here. Drop it to 13px. */
    #britway-container .britway-car-name {
        font-size: 14px !important; 
    }

    /* 3. Your 15px specs were killing the layout. They MUST be tiny. */
    #britway-container .britway-car-specs {
        font-size: 14px !important; 
        line-height: 1.2 !important;
        letter-spacing: -0.2px !important; /* Pull letters slightly tighter */
    }

    /* 4. Squish the button to the absolute minimum hit-area */
    #britway-container .britway-contact-btn {
        padding: 6px 6px !important; 
        font-size: 14px !important;  
    }
    
    /* 5. Reduce the price text size slightly so the button fits */
    #britway-container .britway-car-price strong {
        font-size: 14px !important;
    }
}





/* ============================================================
   MOBILE FIX: SUMMARY BOX "VEHICLE" ROW
   ============================================================ */
@media only screen and (max-width: 600px) {
    /* Shrink the dynamic vehicle name (e.g., "Executive Saloon") */
    #summary-vehicle {
        font-size: 14px !important;
    }
    
    /* Shrink the "Vehicle:" label and the parent row to match */
    #summary-vehicle-li,
    #summary-vehicle-li strong,
    #summary-vehicle-wrapper, 
    #summary-vehicle-wrapper strong {
        font-size: 14px !important;
    }
}


/* --- 1. BASE: SET LEFT COLUMNS TO 500 WEIGHT --- */
.woocommerce-order-received table tbody th,
.woocommerce-order-received table tbody td:first-child {
    font-weight: 500 !important;
}

/* --- 2. SURGICAL STRIKE: OVERRIDE CUSTOM FIELDS (RESERVATION/FLIGHT) --- */
/* This forces 500 weight on hidden tags, but EXCLUDES the top 'Tour' table */
.woocommerce-order-received .woocommerce-customer-details table tbody th *,
.woocommerce-order-received .woocommerce-customer-details table tbody td:first-child *,
.woocommerce-order-received table:not(.order_details) tbody th *,
.woocommerce-order-received table:not(.order_details) tbody td:first-child * {
    font-weight: 500 !important;
}

/* --- 3. THE SHIELD: GUARANTEE BOLD (700) FOR THE TOP TOUR SECTION ONLY --- */
.woocommerce-order-received td.product-name > strong,
.woocommerce-order-received td.product-name > b,
.woocommerce-order-received td.product-name .wc-item-meta strong,
.woocommerce-order-received td.product-name .wc-item-meta dt,
.woocommerce-order-received td.product-name dl.variation dt,
.shopengine-order-details td.product-name strong,
.shopengine-order-details td.product-name b,
.shopengine-order-details td.product-name dt {
    font-weight: 700 !important;
}