/**
 * Car Booking Form Styles
 */

/* Form Container */
.car-booking-form-container {
    max-width: 100%;
    margin: 20px 0;
}

/* Success/Error Messages */
.car-booking-success {
    background: #d4edda;
    color: #155724;
    padding: 15px;
    border: 1px solid #c3e6cb;
    border-radius: 4px;
    margin-bottom: 20px;
}
.product-search-header span{ color: #fff !important; text-align: left !important;}
.product-item-subtitle {
    font-size: 10px;
}
.car-booking-error {
    background: #f8d7da;
    color: #721c24;
    padding: 15px;
    border: 1px solid #f5c6cb;
    border-radius: 4px;
    margin-bottom: 20px;
}

/* Form Styling */
.car-booking-form {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 5px;
}

/* Form Layout: as many columns as fit (4 on wide pages, 2 on medium, 1 on phones).
   Columns may shrink below their content (min-width: 0) so nothing overflows the panel. */
.car-booking-columns {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
    margin-bottom: 20px;
}

.car-booking-column {
    min-width: 0;
}

.car-booking-form input,
.car-booking-form select,
.car-booking-form textarea {
    max-width: 100%;
    box-sizing: border-box;
}

/* Headings: fixed size so the theme's large h2 style doesn't take over */
.car-booking-form .car-booking-column h2 {
    margin-top: 0;
    font-weight: 600;
    color: #000;
    font-size: 1.25rem;
    line-height: 1.3;
    margin-bottom: 15px;
}

/* Form Groups */
.car-booking-form p {
    margin-bottom: 15px; font-size: 10px;
}

/* Labels */
.car-booking-form label {
    display: block;
    margin-bottom: 5px;
    color: #000;
    font-size: 12px;
    font-weight: 500;
}

/* Required field asterisk */
.car-booking-form label .required {
    color: #dc3545;
    font-weight: bold;
    margin-left: 3px; display: inline;
}

/* Input Fields */
.car-booking-form input[type="text"],
.car-booking-form input[type="tel"],
.car-booking-form input[type="email"],
.car-booking-form input[type="date"],
.car-booking-form input[type="number"],
.car-booking-form select,
.car-booking-form textarea {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 12px; 
    height: 37px;
    box-sizing: border-box;
}

/* Ensure select elements match input heights exactly */
.car-booking-form select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 8px center;
    background-repeat: no-repeat;
    background-size: 16px;
    padding-right: 32px;
    display: block !important; /* Force select elements to be visible */
}

/* Hide nice-select elements completely */
.nice-select {
    display: none !important;
}

.car-booking-form .nice-select {
    display: none !important;
}

.car-booking-form input[type="text"]:focus,
.car-booking-form input[type="tel"]:focus,
.car-booking-form input[type="email"]:focus,
.car-booking-form input[type="date"]:focus,
.car-booking-form input[type="number"]:focus,
.car-booking-form select:focus,
.car-booking-form textarea:focus {
    border-color: #007cba;
    outline: none;
    box-shadow: 0 0 3px rgba(0, 124, 186, 0.3);
}

/* Textarea */
.car-booking-form textarea {
    height: auto;
    min-height: 80px;
    resize: vertical;
    font-family: inherit;
}

/* Address Fields */
.car-booking-address-field {
    margin-top: 5px;
}

/* Google Places Autocomplete Styling */
.pac-container {
    background-color: #fff;
    z-index: 1000;
    position: fixed;
    display: inline-block;
    float: left;
    border-radius: 6px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    font-size: 14px;
}

.pac-item {
    cursor: pointer;
    padding: 0 4px;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
    line-height: 30px;
    text-align: left;
    border-top: 1px solid #e6e6e6;
    color: #999;
}

.pac-item:hover {
    background-color: #efefef;
}

.pac-item-selected {
    background-color: #1e90ff;
}

.pac-item-query {
    font-size: 13px;
    padding-right: 3px;
    color: #000;
}

.pac-matched {
    font-weight: 700;
    color: #1e90ff;
}

/* State and Postcode Layout */
.car-booking-state-postcode {
    display: flex;
    gap: 10px;
    margin-top: 5px;
}
.car-booking-state-postcode .current{ line-height: 16px !important;}

.car-booking-state-field {
    flex: 1 1 90px;
    min-width: 80px;
    height: 37px;
    padding: 8px;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
     padding-right: 32px;
}

.car-booking-postcode-field {
    flex: 1 1 90px;
    min-width: 80px;
}

/* Submit Button */
.car-booking-submit {
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    color: white;
    padding: 14px 24px;
    border: none;
    cursor: pointer;
    border-radius: 12px;  /* Added rounded corners */
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(26, 26, 46, 0.3);  /* Added shadow */
    text-transform: uppercase;  /* Added uppercase styling */
    letter-spacing: 0.5px;
}

.car-booking-submit:hover {
    background: linear-gradient(135deg, #16213e, #1a1a2e);
}
.axbook a, .axbook a:hover {
    color: #fff !important;
}
/* Responsive Design */
@media (max-width: 768px) {
    .car-booking-columns {
        flex-direction: column;
        gap: 0;
    }
    
    .car-booking-column {
        margin-bottom: 20px;
    }
}

/* Required Field Indicator */
.required {
    color: #d63384;
}

/* Form Sections */
.car-booking-section {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 5px;
    margin-bottom: 20px;
}

.car-booking-section h2 {
    margin-top: 0;
    font-weight: 600;
    color: #000;
    font-size: 1.2em;
    margin-bottom: 15px;
}

/* Toggle Switches */
.car-booking-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.car-booking-toggle label:first-child {
    margin-bottom: 0;
    flex-grow: 1;
}

.car-booking-date-time-fields {
    display: none;
    margin: -6px 0 16px;
}

.car-booking-date-time-row {
    display: flex;
    gap: 10px;
}

.car-booking-date-field-wrap,
.car-booking-time-field-wrap {
    margin: 0;
    flex: 1;
}

.car-booking-date-field-wrap input,
.car-booking-time-field-wrap select {
    width: 100%;
}

.car-booking-switch {
    position: relative;
    display: inline-block;
    width: 42px;
    height: 24px;
}

.car-booking-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.car-booking-slider {
    position: absolute;
    cursor: pointer;
    top: -4px;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #f2f2f2;
    border: 1px solid #111;
    transition: 0.4s;
    border-radius: 24px;
}

.car-booking-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 2px;
    background-color: #8c8c8c;
    transition: 0.4s;
    border-radius: 50%;
}

input:checked + .car-booking-slider {
    background-color: #f2f2f2;
}

input:focus + .car-booking-slider {
    box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.15);
}

input:checked + .car-booking-slider:before {
    background-color: #111;
    transform: translateX(18px);
}

/* Span text styling */
.car-booking-form span {
    display: block;
    font-size: 11px;
    color: #666;
    margin-top: 4px;
}

/* ===== BOOKING CONFIRMATION MODAL ===== */
.booking-confirmation-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.booking-confirmation-content {
    background: white;
    border-radius: 8px;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.booking-confirmation-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid #e5e5e5;
}

.booking-confirmation-header h2 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    color: #333;
}

.booking-confirmation-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.booking-confirmation-close:hover {
    color: #333;
}

.booking-confirmation-body {
    padding: 24px;
}

.booking-details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 24px;
}

.booking-detail-group {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.booking-detail-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.booking-detail-label {
    font-size: 12px;
    color: #666;
    text-transform: capitalize;
}

.booking-detail-value {
    font-size: 14px;
    font-weight: 500;
    color: #333;
}

.booking-products-section {
    margin-bottom: 24px;
    padding-top: 24px;
    border-top: 1px solid #e5e5e5;
}

.booking-products-section h3 {
    margin: 0 0 16px 0;
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.booking-products-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.booking-product-item {
    font-size: 14px;
    color: #333;
    padding: 8px 12px;
    background: #f8f9fa;
    border-radius: 4px;
}

.no-products-message {
    color: #ff6b6b;
    font-size: 14px;
    font-style: italic;
}

.additional-emails-section {
    padding-top: 24px;
    border-top: 1px solid #e5e5e5;
}

.additional-emails-section h3 {
    margin: 0 0 8px 0;
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.additional-emails-description {
    margin: 0 0 16px 0;
    font-size: 14px;
    color: #666;
}

.additional-emails-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 16px;
}

.additional-email-input-group {
    display: flex;
    gap: 8px;
    align-items: center;
}

.additional-email-input {
    flex: 1;
    padding: 10px 12px;
    border: 2px solid #333;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
}

.additional-email-input:focus {
    border-color: #007cba;
}

.remove-email-btn {
    background: none;
    color: #000;
    border: none;
    width: 24px;
    height: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    line-height: 1;
}

.remove-email-btn:hover {
    background: none; color: #000;
}

.add-email-btn {
    background: none;
    border: none;
    color: #333;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 0;
}

.add-email-btn:hover {
    color: #007cba;
}

.add-email-icon {
    font-size: 16px;
}

.booking-confirmation-footer {
    padding: 20px 24px;
    border-top: 1px solid #e5e5e5;
}

.send-booking-btn {
    width: 100%;
    background: #1a1a2e;
    color: white;
    border: none;
    border-radius: 6px;
    padding: 14px 20px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
}

.send-booking-btn:hover {
    background: #16213e;
}

.send-booking-btn.is-loading,
.send-booking-btn:disabled {
    opacity: 0.8;
    cursor: not-allowed;
}

.booking-submit-status {
    margin: 0 0 10px 0;
    font-size: 13px;
    color: #333;
}

.car-booking-success-standalone {
    margin: 20px 0;
}

.car-booking-submit-inline {
    margin-top: 12px;
    display: inline-block;
    text-decoration: none;
}

@media (max-width: 768px) {
    .booking-details-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .booking-confirmation-content {
        width: 95%;
        margin: 10px;
    }
}

/* ===== PRODUCT SELECTION STYLES ===== */

/* Product Search Section */
.product-search-section {
    margin-bottom: 20px;
}

.product-search-container {
    position: relative;
}

.product-search-header {
    background: #010515;  /* Changed from dark #1a1a2e to blue */
    color: white;
    padding: 10px 16px;  /* Made smaller */
    border-radius: 8px 8px 0 0;
    font-weight: 500;
    font-size: 13px;  /* Smaller text */
    text-align: center;  /* Centered text */
}

.product-search-input-container {
    position: relative;
    border: none;
    border-top: none;
    border-radius: 0 0 8px 8px;
}

.product-search-input {
    width: 100%;
    padding: 12px 40px 12px 16px;
    border: none;
    outline: none;
    font-size: 14px;
    background: white;
    border-radius: 0 0 8px 8px;
}
.remove-product-btn:hover {
    background: none;
    color: #ff3742;
}
.product-search-clear {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    font-size: 20px;
    color: #666;
    cursor: pointer;
    display: none;
}

.product-search-clear:hover {
    color: #333;
}
.product-search-input-container input{ border-radius: 0 !important;}
/* Selected Products Container */
.selected-products-container {
    height: 480px;
    border: 1px solid #ddd;
    padding: 0;
    background: #f5f5f5;
    overflow-y: auto;
}

.add-product-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 70%;
    background: #f5f5f5;
    cursor: pointer;
}

.add-product-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #010515, #010515);
    border: none;
    cursor: pointer;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.add-product-btn:hover {
    background: linear-gradient(135deg, #005a87, #007cba);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 124, 186, 0.4);
}

.add-product-icon {
    width: 24px;
    height: 24px;
    stroke: white;
    stroke-width: 2;
    fill: none;
}

.add-product-text {
    font-size: 14px;
    color: #999;
    text-align: center;
    font-weight: 400;
}

/* Selected Product Items */
.selected-product-item {
    display: flex;
    align-items: center;
    background: white;
    border-bottom: 1px solid #e0e0e0;
    /* border-radius: 8px; */
    padding: 0;
    margin-bottom: 0;
    /* box-shadow: 0 2px 8px rgba(0,0,0,0.08); */
    position: relative;
}

.selected-product-image {
    width: 81px;
    height: 40px;
    object-fit: cover;
    border-radius: 4px;
    margin-right: 12px;
    padding-left: 10px;
}

/* Hide selected product images gracefully when missing */
.selected-product-image:not([src]),
.selected-product-image[src=""],
.selected-product-image[src*="404"] {
    display: none;
}
.selected-product-id {
    font-size: 9px;
}
.selected-product-info {
    flex: 1;
}

.selected-product-name {
    font-weight: 600;
    font-size: 11px;
    margin: 0 0 4px 0;
    color: #333;
}

.selected-product-description {
    font-size: 10px;
    color: #666;
    margin: 0 0 4px 0;
    font-style: italic;
}

.search-result-info {
    border-left: 1px solid #ccc;
    padding-left: 10px;
}

.selected-product-id {
    font-size: 8px;
    color: #999;
    margin: 0 0 2px 0;
    font-weight: 500;
}

.selected-product-quality {
    font-size: 9px;
    color: #666;
    margin: 0 0 2px 0;
    font-style: italic;
}

.selected-product-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    border-left: 1px solid #ccc;
    padding-left: 10px;
    min-height: 132px;
    padding-top: 14px;
    font-size: 16px !important;
    /* width: 147px !important; */
}

.selected-product-code {
    font-size: 12px;
    color: #666;
    margin: 0;
}

.selected-product-featured {
    background: #ffd700; display: none !important;
    color: #333;
    padding: 2px 6px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 600;
    margin-left: 8px;
}

.selected-product-input {
    flex: 1;
    border: none;
    background: transparent;
    font-weight: 600;
    font-size: 14px;
    color: #333;
    padding: 0;
    margin: 0;
    outline: none;
    cursor: default;
}

.remove-product-btn {
    /* width: 16px; */
    /* height: 16px; */
    /* border-radius: 50%; */
    /* padding: 10px; */
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    font-size: 16px;
    line-height: 1;
    margin-left: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    bottom: 4px;
    right: -26px;
    color: #ff4757;
}

/* ===== MODAL STYLES ===== */

.product-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    overflow-y: auto;
}

.product-modal-content {
    background-color: white; position: relative;
    margin: 2% auto;
    width: 78%;
    max-width: 549px;
    border-radius: 12px;
    overflow: hidden;
    height: 769px;
    display: flex;
    flex-direction: column;
}

.product-modal-header {
    background: none;
    color: white;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.product-modal-header h3 {
    margin: 0;
    font-size: 18px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-icon {
    font-size: 16px;
    opacity: 0.8;
}

.modal-title-text {
    flex: 1;
}

.product-modal-close {
    background: none;
    right: 18px;
    border: none;
    font-size: 37px;
    color: #000;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 37px;
    /* display: flex; */
    align-items: center;
    /* justify-content: center; */
    /* border-radius: 50%; */
    /* transition: all 0.2s ease; */
    bottom: 11px;
}
.add-product-placeholder svg {
    font-size: 40px;
    color: #ccc !important;
    margin-bottom: 8px;
    display: block;
}
.product-modal-close:hover {
    background: #f0f0f0;  /* Added subtle background on hover */
    color: #333 !important;
}

/* Product Categories */
.product-categories {
    padding: 20px;
    flex: 1;
    overflow-y: auto;
}

.product-category {
    background: #1a1a2e;
    color: white;
    padding: 20px;
    margin-bottom: 16px;
    border-radius: 8px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    font-size: 16px;
    border: 2px solid transparent;
}

.product-category:hover {
    background: #2d2d54;
    transform: translateY(-2px);
}

.product-category.selected {
    background: #007cba;
    border-color: #005a8b;
    box-shadow: 0 4px 12px rgba(0, 124, 186, 0.3);
}

.product-category:last-child {
    margin-bottom: 0;
}
.product-categories h4 {
    color: #fff !important;
    font-size: 14px;
    padding-top: 10px;
}
/* Product List */
.product-list {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* Product Items */
.product-items { top: -54px;
    padding: 20px 11px;
    overflow-y: auto;
   /* flex: 1; */
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 7px;
}

.product-item {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    overflow: hidden;
    height: 195px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 101px;
}

.product-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.product-item.selected {
    background: #f0f8ff;
    border: 1px solid #000;
    cursor: default;
}

.product-item.selected:hover {
    transform: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.product-item-content {
    display: block;
    gap: 12px;
    flex: 1; padding-bottom: 11px; background: #fff;
}

.product-item-image {
    width: 104px !important;
    /* height: 60px !important; */
    /* object-fit: cover; */
    /* background: #f5f5f5; */
    border-radius: 8px;
    flex-shrink: 0;
    margin-bottom: 10px;
    padding: 10px;
    /* Hide broken images gracefully */
    transition: opacity 0.3s ease;
}
.product-item-footer svg {
    color: #000;
    font-size: 21px;
}
.product-item-image:not([src]),
.product-item-image[src=""],
.product-item-image[src*="404"] {
    display: none;
}
/* Kept !important so theme button styles can't override the brand button (see brand theme section below) */
input.car-booking-submit {
    background-color: #162035 !important;
    background-image: none !important;
    border-radius: 58px !important;
    text-transform: uppercase !important;
    letter-spacing: 2px !important;
    line-height: 1.3;
    width: 100% !important;
    /* Themes often add wide button padding; keep the label inside the button at any width */
    padding: 12px 16px !important;
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: clip !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}
/* Layout adjustments when images are missing */
.product-item-content.no-image {
    padding-left: 10px;
}

.product-item-content.no-image .product-item-info {
    margin-left: 0;
}

.product-item-info {
    flex: 1; padding: 10px 10px;
    display: flex;
    flex-direction: column;background: #0000001a; height: 134px;
}

.product-item-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 8px;
}

.product-item-name {
    font-weight: 600;
    font-size: 11px;
    margin: 0;
    color: #333;
    line-height: 1.3;
    flex: 1;
}

.product-item-id {
    font-size: 9px;
    color: #007cba;
    margin: 2px 0;
    font-weight: 500;
}

.product-item-quality {
    font-size: 9px;
    color: #666;
    margin: 2px 0 4px 0;
    font-style: italic;
}

.product-item-featured {
    background: #ffd700;
    color: #333;
    padding: 2px 6px;
    border-radius: 50%;
    font-size: 12px;
    font-weight: 600;
    margin-left: 8px;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center; display: none !important;
}

.product-item-subtitle {
    font-size: 12px;
    color: #666;
    margin: 0 0 0 0 !important;
}

.product-item-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 0px;
    position: absolute;
    bottom: 10px;  /* Moved to bottom right */
    right: 10px;
    z-index: 1;
}

.add-product-to-list-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #000;
    border: none;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.25);
    transition: all 0.2s ease;
}

.add-product-to-list-btn:hover {
    background: #222;
    transform: scale(1.1);
    box-shadow: 0 3px 8px rgba(0,0,0,0.3);
}

.add-product-to-list-btn svg {
    width: 14px;
    height: 14px;
    stroke: white;
    stroke-width: 2;
    fill: none;
}

.add-product-to-list-btn.selected {
    background: #28a745;
}

.add-product-to-list-btn.selected:hover {
    background: #218838;
}
/* Modal Footer */
.product-modal-footer {
    border-top: 1px solid #eee;
    background: #f8f9fa;
}

.product-nav-tabs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    padding: 0 8px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
}

.product-nav-tabs::-webkit-scrollbar {
    height: 4px;
}

.product-nav-tabs::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 2px;
}

.product-nav-tabs::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 2px;
}

.product-nav-tabs::-webkit-scrollbar-thumb:hover {
    background: #999;
}

.nav-tab {
    background: #6c757d;
    color: white;
    border: 2px solid transparent;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 12px;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.3s ease;
    flex-shrink: 0;
    min-width: fit-content;
}

.nav-tab:hover {
    background: #5a6268;
}

.nav-tab.active {
    background: #007cba;
    border-color: #005a8b;
    box-shadow: 0 2px 8px rgba(0, 124, 186, 0.4);
}

/* Search Results */
.product-search-results {
    position: relative;
    background: white;
    border: 1px solid #ddd;
    border-top: none;
    border-radius: 0 0 8px 8px;
    max-height: 300px;
    overflow-y: auto;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin-top: -1px;
}

.product-search-result {
    padding: 12px 16px;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: background-color 0.2s ease;
}

.product-search-result:hover {
    background: #f8f9fa;
}

.product-search-result.selected {
    background: #e3f2fd;
    border-left: 3px solid #1976d2;
}

.product-search-result.selected:hover {
    background: #e3f2fd;
}

.product-search-result:last-child {
    border-bottom: none;
}

.search-result-image-container {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f5f5;
    border-radius: 6px;
    overflow: hidden;
}

.search-result-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 6px;
}

.search-result-content {
    flex: 1;
    min-width: 0;
}

.search-result-name {
    font-size: 14px;
    font-weight: 500;
    color: #333;
    line-height: 1.4;
    margin: 0;
    margin-bottom: 4px;
}

.search-result-quality {
    font-size: 12px;
    color: #666;
    line-height: 1.3;
    margin: 0;
}

/* Hide search result images gracefully when missing */
.search-result-image:not([src]),
.search-result-image[src=""],
.search-result-image[src*="404"] {
    display: none;
}

.search-result-info {
    flex: 1;
}

.search-result-name {
    font-weight: 600;
    font-size: 11px;
    margin: 0 0 2px 0;
    color: #333;
}
.search-result-id {
    font-size: 10px;
    color: #007cba;
    margin: 0 0 2px 0; 
    font-weight: 500;
}

.search-result-quality {
    font-size: 10px;
    color: #666;
    margin: 0 0 2px 0;
    font-style: italic;
}

.search-result-code {
    font-size: 11px;
    color: #666;
    margin: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .car-booking-columns {
        flex-direction: column;
    }

    .car-booking-date-time-row {
        flex-direction: column;
    }
    
    .product-modal-content {
        width: 95%;
        margin: 1% auto;
    }
    
    .product-items {
        grid-template-columns: 1fr;
    }
    
    .product-nav-tabs {
        gap: 6px;
        padding: 0 6px;
    }
    
    .nav-tab {
        font-size: 10px;
        padding: 6px 12px;
        flex-shrink: 0;
        min-width: auto;
    }
}
/* Inline validation messages shown before the confirmation popup */
.car-booking-field-error {
    border-color: #d63638 !important;
    outline: 1px solid #d63638;
}
.car-booking-inline-error {
    display: block;
    color: #d63638;
    font-size: 0.85em;
    margin-top: 4px;
}

/* "Your details have been filled in" notice with Clear link */
.car-booking-saved-notice {
    font-size: 0.9em;
    background: #f0f6fc;
    border-left: 4px solid #2271b1;
    padding: 8px 12px;
    margin: 0 0 16px;
}
.car-booking-error ul {
    margin: 6px 0 0 18px;
}

/* [car_booking_start] - choose the booking type, styled to match autoxtreme.com.au
   (Inter; navy #162035, accent blue #1475F7, grey #7E858F; pill buttons with a soft blue shadow) */
.car-booking-start {
    --sfb-navy: #162035;
    --sfb-blue: #1475f7;
    --sfb-grey: #7e858f;
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}
.car-booking-start .car-booking-start-title {
    font-family: inherit;
    font-size: 2rem;
    font-weight: 400;
    line-height: 1.15;
    color: var(--sfb-navy);
    margin: 0 0 18px;
}
.car-booking-start .car-booking-accent {
    color: var(--sfb-blue);
}
.car-booking-start .car-booking-start-intro {
    font-size: 17px;
    font-weight: 300;
    line-height: 1.7;
    color: var(--sfb-grey);
    margin: 0 auto 32px;
    max-width: 520px;
}
/* Short blue rule under the heading (the website's accent), centred */
.car-booking-start .car-booking-start-title::after {
    content: "";
    display: block;
    width: 56px;
    height: 3px;
    border-radius: 3px;
    background: var(--sfb-blue);
    margin: 16px auto 0;
}
.car-booking-start-choices {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px 24px;
}
.car-booking-start-option {
    min-width: 0;
}
.car-booking-start-wrap a.car-booking-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: 64px; /* room for two lines, so both buttons stay the same height */
    padding: 10px 24px;
    box-sizing: border-box;
    border-radius: 58px;
    border: 1px solid var(--sfb-navy, #162035);
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 2px;
    line-height: 1.3;
    text-transform: uppercase;
    text-align: center;
    text-decoration: none !important;
    box-shadow: 0 6px 6px rgba(55, 80, 244, 0.3);
    transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}
.car-booking-start-wrap a.car-booking-btn-primary {
    background: var(--sfb-navy, #162035);
    color: #fff !important;
}
.car-booking-start-wrap a.car-booking-btn-outline {
    background: rgba(255, 255, 255, 0.02);
    color: var(--sfb-navy, #162035) !important;
}
.car-booking-start-wrap a.car-booking-btn:hover,
.car-booking-start-wrap a.car-booking-btn:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 10px 14px rgba(55, 80, 244, 0.35);
}
.car-booking-start-wrap a.car-booking-btn-outline:hover,
.car-booking-start-wrap a.car-booking-btn-outline:focus-visible {
    background: var(--sfb-navy, #162035);
    color: #fff !important;
}
.car-booking-start-wrap a.car-booking-btn:focus-visible {
    outline: 2px solid #1475f7;
    outline-offset: 3px;
}
.car-booking-btn-arrow {
    font-size: 18px;
    letter-spacing: 0;
}
.car-booking-start .car-booking-start-hint {
    font-size: 14px;
    font-weight: 300;
    line-height: 1.5;
    color: var(--sfb-grey);
    margin: 12px 4px 0;
    text-align: center;
}
.car-booking-change-type {
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 0.9em;
    margin-bottom: 12px;
    color: #162035;
}
.car-booking-change-type a {
    color: #162035;
    font-weight: 600;
    text-decoration: none;
}
.car-booking-change-type a:hover {
    color: #1475f7;
}

/* Notes character counter */
.car-booking-char-count {
    display: block;
    text-align: right;
    font-size: 0.8em;
    opacity: 0.7;
}

/* =====================================================================
   AutoXtreme brand theme for the booking form (matches autoxtreme.com.au)
   Inter; navy #162035; accent blue #1475F7; grey #7E858F; pill buttons
   ===================================================================== */
.car-booking-start-wrap,
.car-booking-form-container {
    --sfb-navy: #162035;
    --sfb-blue: #1475f7;
    --sfb-grey: #7e858f;
    --sfb-line: #dde2ea;
    --sfb-soft: #f5f7fb;
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* Panel */
.car-booking-form-container .car-booking-form {
    background: #fff;
    border: 1px solid var(--sfb-line);
    border-radius: 18px;
    padding: 28px;
    box-shadow: 0 10px 30px rgba(22, 32, 53, 0.06);
}

/* Section headings with a short blue accent */
.car-booking-form-container .car-booking-form .car-booking-column h2 {
    font-family: inherit;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--sfb-navy);
    letter-spacing: 0;
    margin-bottom: 18px;
}
.car-booking-form-container .car-booking-form .car-booking-column h2::after {
    content: "";
    display: block;
    width: 32px;
    height: 3px;
    border-radius: 3px;
    background: var(--sfb-blue);
    margin-top: 8px;
}

/* Labels, helper text, required marker */
.car-booking-form-container .car-booking-form label {
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    color: var(--sfb-navy);
    margin-bottom: 6px;
}
.car-booking-form-container .car-booking-form p > span:not(.car-booking-inline-error),
.car-booking-form-container .car-booking-toggle > span {
    color: var(--sfb-grey);
    font-size: 12px;
    font-weight: 400;
}
.car-booking-form-container .car-booking-form .required,
.car-booking-form-container .car-booking-form label .required {
    color: var(--sfb-blue);
}

/* Inputs */
.car-booking-form-container .car-booking-form input[type="text"],
.car-booking-form-container .car-booking-form input[type="tel"],
.car-booking-form-container .car-booking-form input[type="email"],
.car-booking-form-container .car-booking-form input[type="date"],
.car-booking-form-container .car-booking-form input[type="number"],
.car-booking-form-container .car-booking-form select,
.car-booking-form-container .car-booking-form textarea {
    font-family: inherit;
    font-size: 14px;
    color: var(--sfb-navy);
    background-color: #fff;
    border: 1px solid var(--sfb-line);
    border-radius: 10px;
    height: 44px;
    padding: 10px 14px;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.car-booking-form-container .car-booking-form select {
    padding-right: 36px;
    background-position: right 12px center;
}
.car-booking-form-container .car-booking-form textarea {
    height: auto;
    min-height: 110px;
}
.car-booking-form-container .car-booking-form input::placeholder,
.car-booking-form-container .car-booking-form textarea::placeholder {
    color: #a3a9b3;
}
.car-booking-form-container .car-booking-form input:focus,
.car-booking-form-container .car-booking-form select:focus,
.car-booking-form-container .car-booking-form textarea:focus {
    border-color: var(--sfb-blue);
    box-shadow: 0 0 0 3px rgba(20, 117, 247, 0.15);
    outline: none;
}
.car-booking-form-container .car-booking-form .car-booking-field-error,
.car-booking-form-container .car-booking-form .car-booking-field-error:focus {
    border-color: #d63638 !important;
    box-shadow: 0 0 0 3px rgba(214, 54, 56, 0.12);
    outline: none;
}

/* Toggles: navy when on */
.car-booking-form-container .car-booking-slider {
    background-color: #e9edf3;
    border: 1px solid var(--sfb-line);
}
.car-booking-form-container .car-booking-slider:before {
    background-color: #fff;
    box-shadow: 0 1px 3px rgba(22, 32, 53, 0.25);
}
.car-booking-form-container input:checked + .car-booking-slider {
    background-color: var(--sfb-navy);
    border-color: var(--sfb-navy);
}
.car-booking-form-container input:checked + .car-booking-slider:before {
    background-color: #fff;
}
.car-booking-form-container input:focus-visible + .car-booking-slider {
    box-shadow: 0 0 0 3px rgba(20, 117, 247, 0.25);
}

/* Product picker */
.car-booking-form-container .product-search-header {
    background: var(--sfb-navy);
    border-radius: 12px 12px 0 0;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-size: 12px;
}
.car-booking-form-container .product-search-input-container {
    border: 1px solid var(--sfb-line);
    border-top: none;
}
.car-booking-form-container .selected-products-container {
    border: 1px solid var(--sfb-line);
    border-radius: 0 0 12px 12px;
    background: var(--sfb-soft);
}
.car-booking-form-container .add-product-placeholder {
    background: var(--sfb-soft);
    color: var(--sfb-grey);
}
.car-booking-form-container .add-product-placeholder:hover {
    color: var(--sfb-blue);
}

/* Main button: navy pill like "View products" */
.car-booking-form-container .car-booking-form .car-booking-submit {
    width: 100%;
    min-height: 56px;
    font-family: inherit;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #fff;
    background: var(--sfb-navy);
    border: 1px solid var(--sfb-navy);
    border-radius: 58px;
    box-shadow: 0 6px 6px rgba(55, 80, 244, 0.3);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.car-booking-form-container .car-booking-form .car-booking-submit:hover,
.car-booking-form-container .car-booking-form .car-booking-submit:focus-visible {
    background: var(--sfb-navy);
    transform: translateY(-2px);
    box-shadow: 0 10px 14px rgba(55, 80, 244, 0.35);
}

/* Messages */
.car-booking-form-container .car-booking-saved-notice {
    background: #eef5ff;
    border-left: 3px solid var(--sfb-blue);
    border-radius: 8px;
    color: var(--sfb-navy);
}
.car-booking-form-container .car-booking-saved-notice a {
    color: var(--sfb-blue);
    font-weight: 600;
}
.car-booking-form-container .car-booking-error {
    border-radius: 10px;
}

/* Confirmation popup */
.booking-confirmation-modal .booking-confirmation-content {
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    border-radius: 18px;
    box-shadow: 0 20px 50px rgba(22, 32, 53, 0.25);
}
.booking-confirmation-modal .booking-confirmation-header h2,
.booking-confirmation-modal h3 {
    color: #162035;
    font-family: inherit;
}
.booking-confirmation-modal .booking-detail-label {
    color: #7e858f;
}
.booking-confirmation-modal .booking-detail-value {
    color: #162035;
}
.booking-confirmation-modal .additional-email-input {
    border: 1px solid #dde2ea;
    border-radius: 10px;
    height: 44px;
    padding: 10px 14px;
    font-family: inherit;
}
.booking-confirmation-modal .additional-email-input:focus {
    border-color: #1475f7;
    box-shadow: 0 0 0 3px rgba(20, 117, 247, 0.15);
    outline: none;
}
.booking-confirmation-modal .add-email-btn {
    color: #1475f7;
    font-weight: 600;
}
.booking-confirmation-modal .send-booking-btn {
    min-height: 56px;
    font-family: inherit;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    background: #162035;
    border-radius: 58px;
    box-shadow: 0 6px 6px rgba(55, 80, 244, 0.3);
}
.booking-confirmation-modal .send-booking-btn:hover {
    background: #162035;
    box-shadow: 0 10px 14px rgba(55, 80, 244, 0.35);
}

/* Product picker shell and category menu in the brand look */
.product-modal .product-modal-content {
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    border-radius: 18px;
    box-shadow: 0 20px 50px rgba(22, 32, 53, 0.25);
}
.product-modal .product-modal-header {
    padding: 20px 24px 12px;
}
.product-modal .product-modal-header h3 {
    flex: 1;
    min-width: 0;
    font-family: inherit;
    font-size: 19px;
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: 0;
    text-align: left;
    color: #162035;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
}
.product-modal .product-modal-header h3::after {
    content: "";
    display: block;
    width: 32px;
    height: 3px;
    border-radius: 3px;
    background: #1475f7;
    margin-top: 8px;
}
.product-modal .product-modal-close {
    flex: none;
    position: static;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    margin-left: 12px;
    padding: 0 0 3px;
    border: 1px solid #dde2ea;
    border-radius: 50%;
    background: #fff;
    color: #162035;
    font-size: 28px;
    line-height: 1;
    box-shadow: 0 2px 8px rgba(22, 32, 53, 0.15);
}
.product-modal .product-modal-close:hover,
.product-modal .product-modal-close:focus-visible {
    background: #162035;
    color: #fff !important;
}
.product-modal .product-categories {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 12px 24px 24px;
}
.product-modal .product-category {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 64px;
    margin: 0;
    padding: 10px 24px;
    background: #fff;
    border: 1px solid #162035;
    border-radius: 58px;
    box-shadow: 0 6px 6px rgba(55, 80, 244, 0.3);
    transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}
/* Centre the list vertically; auto margins (unlike justify-content) keep the top reachable when it scrolls */
.product-modal .product-category:first-child {
    margin-top: auto;
}
.product-modal .product-category:last-child {
    margin-bottom: auto;
}
.product-modal .product-category:hover {
    background: #162035;
    transform: translateY(-2px);
    box-shadow: 0 10px 14px rgba(55, 80, 244, 0.35);
}
.product-modal .product-category:hover h4 {
    color: #fff !important;
}
.product-modal .product-categories h4 {
    color: #162035 !important; /* older rule forces white with !important */
    margin: 0;
    padding: 0;
    font-family: inherit;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 2px;
    line-height: 1.3;
    text-transform: uppercase;
    text-align: center;
}

/* Featured products: yellow star after the name (grid, selected list, quick search).
   .car-booking-form prefix beats the grey, block ".car-booking-form span" hint style. */
.sfb-featured-star,
.car-booking-form .sfb-featured-star {
    display: inline-flex;
    flex: none;
    vertical-align: -0.15em;
    margin-left: 6px;
    color: #eab308;
    font-size: 1.15em;
    line-height: 1;
}
.car-booking-form .product-item-header .sfb-featured-star,
.product-item-header .sfb-featured-star {
    font-size: 16px;
    margin-top: 1px;
}

/* Product picker: round "back to categories" button (top left) and bottom category tabs */
.product-modal .product-modal-back {
    flex: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    margin-right: 12px;
    padding: 0;
    border: 1px solid #dde2ea;
    border-radius: 50%;
    background: #fff;
    color: #162035;
    box-shadow: 0 2px 8px rgba(22, 32, 53, 0.15);
    cursor: pointer;
}
.product-modal .product-modal-back:hover,
.product-modal .product-modal-back:focus-visible {
    background: #162035;
    color: #fff;
}
.product-modal .product-modal-header .modal-title-text {
    color: #162035;
    font-size: inherit; /* beat the 11px ".car-booking-form span" hint style */
}
.product-modal .product-modal-footer {
    flex: none;
    border-top: 1px solid #dde2ea;
    background: #fff;
    box-shadow: 0 -5px 15px rgba(22, 32, 53, 0.12);
    position: relative;
    z-index: 1;
}
.product-modal .product-nav-tabs {
    gap: 6px;
    padding: 10px;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
}
.product-modal .product-nav-tabs::-webkit-scrollbar {
    display: none;
}
.product-modal .nav-tab {
    scroll-snap-align: center;
    background: #f5f7fb;
    color: #7e858f;
    border: 1px solid #dde2ea;
    border-radius: 999px;
    padding: 8px 14px;
    font-size: 12px;
    font-weight: 600;
    box-shadow: none;
}
.product-modal .nav-tab:hover {
    background: #eaf2ff;
    color: #162035;
}
.product-modal .nav-tab.active {
    background: #162035;
    border-color: #162035;
    color: #fff;
    box-shadow: none;
}

/* Phones: less padding, shorter empty product box */
@media (max-width: 600px) {
    .car-booking-form-container .car-booking-form {
        padding: 18px;
        border-radius: 14px;
    }
    .car-booking-form-container .selected-products-container {
        height: 280px;
    }
}

/* "Sending your booking..." overlay: blocks the page after Send booking until it moves on */
.car-booking-sending-overlay {
    position: fixed;
    inset: 0;
    z-index: 2147483000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(245, 247, 251, 0.88);
    backdrop-filter: blur(2px);
    cursor: wait;
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
.car-booking-sending-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 28px 36px;
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 20px 50px rgba(22, 32, 53, 0.18);
    text-align: center;
    color: #7e858f;
    font-size: 14px;
}
.car-booking-sending-box strong {
    color: #162035;
    font-size: 18px;
    font-weight: 600;
}
.car-booking-spinner {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 4px solid #dde2ea;
    border-top-color: #1475f7;
    animation: car-booking-spin 0.8s linear infinite;
}
@keyframes car-booking-spin {
    to { transform: rotate(360deg); }
}
@media (prefers-reduced-motion: reduce) {
    .car-booking-spinner { animation-duration: 2s; }
}
body.car-booking-is-sending {
    overflow: hidden;
}

/* Live-site theme button styles (padding, letter-spacing, line-height, font, min-height) were inflating
   these plugin buttons; pin their size and type so any theme renders them as designed. */
.product-modal .product-nav-tabs .nav-tab {
    height: auto !important;
    min-height: 0 !important;
    width: auto !important;
    margin: 0 !important;
    padding: 7px 14px !important;
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    line-height: 1.3 !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
    white-space: nowrap !important;
    border-radius: 999px !important;
}
.product-modal .product-modal-back,
.product-modal .product-modal-close {
    width: 40px !important;
    height: 40px !important;
    min-width: 0 !important;
    min-height: 0 !important;
    padding: 0 !important;
    line-height: 1 !important;
    letter-spacing: 0 !important;
    border-radius: 50% !important;
}
.product-modal .product-modal-close {
    padding-bottom: 3px !important;
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
    font-size: 28px !important;
}

/* Product grid: every thumbnail sits in the same fixed box (scaled to fit, never cropped) so titles
   line up across cards; cards grow with their text instead of clipping the product code. */
.product-modal .product-items {
    flex: 1;
    min-height: 0;
    grid-auto-rows: max-content; /* rows fit their cards; the list scrolls instead of squashing them */
    align-content: start;
    align-items: stretch;
}
.product-modal .product-item {
    height: auto !important;
}
.product-modal .product-item-image {
    display: block;
    box-sizing: border-box;
    width: 100% !important;
    height: 110px !important;
    margin: 0 !important;
    padding: 12px 16px !important;
    object-fit: contain;
    object-position: left center;
    background: #fff;
    border-radius: 0 !important;
}
/* Quick search thumbnails: show the whole product rather than a cropped middle */
.search-result-image-container {
    background: #fff;
}
.search-result-image {
    object-fit: contain;
}
.product-modal .product-item-content {
    padding-bottom: 0 !important;
}
.product-modal .product-item-info {
    box-sizing: border-box;
    height: auto !important; /* an older rule fixed this at 134px */
    min-height: 112px; /* two-line name + subtitle + code, so cards match even with one-line names */
    padding: 10px 12px 34px !important; /* bottom room for the + button */
}
.product-modal .product-item-header {
    margin-bottom: 4px !important;
}
.product-modal .product-item-quality {
    margin: 0 !important;
}
.product-modal .product-item-code {
    margin: 6px 0 0 !important;
}

/* Errors replace the hint text under a field (same size and spacing, so nothing moves) */
.car-booking-form-container .car-booking-form .car-booking-hint.car-booking-inline-error {
    color: #d63638;
    font-size: 12px;
    margin-top: 4px;
}

/* Make / Model: free text with a suggestion list (script.js initSuggest) */
.car-booking-form .sfb-suggest {
    position: relative;
    display: block;
    margin: 0;
}
.car-booking-form .sfb-suggest .sfb-suggest-list {
    display: block;
    position: absolute;
    z-index: 60;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    max-height: 260px;
    margin: 0;
    padding: 6px;
    overflow-y: auto;
    list-style: none;
    background: #fff;
    border: 1px solid #dde2ea;
    border-radius: 12px;
    box-shadow: 0 16px 40px rgba(22, 32, 53, 0.18);
    overscroll-behavior: contain;
}
.car-booking-form .sfb-suggest .sfb-suggest-list[hidden] {
    display: none;
}
.car-booking-form .sfb-suggest .sfb-suggest-option {
    display: block;
    margin: 0;
    padding: 9px 12px;
    font-size: 14px;
    line-height: 1.3;
    color: #162035;
    border-radius: 8px;
    cursor: pointer;
}
.car-booking-form .sfb-suggest .sfb-suggest-option.is-active {
    background: #eef5ff;
}
.car-booking-form .sfb-suggest .sfb-suggest-option mark {
    background: none;
    color: #1475f7;
    font-weight: 700;
    padding: 0;
}

/* Extra details toggles are colour-coded when on (Tony's request): white track, coloured outline and knob
   (canopy pink-red, Hybrid/EV orange); grey when off */
.car-booking-form-container .car-booking-switch--canopy input:checked + .car-booking-slider { background-color: #fff; border: 2px solid #f43f5e; }
.car-booking-form-container .car-booking-switch--canopy input:checked + .car-booking-slider:before { background-color: #f43f5e; box-shadow: none; }
.car-booking-form-container .car-booking-switch--hybrid input:checked + .car-booking-slider { background-color: #fff; border: 2px solid #f59e0b; }
.car-booking-form-container .car-booking-switch--hybrid input:checked + .car-booking-slider:before { background-color: #f59e0b; box-shadow: none; }
.car-booking-form-container .car-booking-switch--canopy input:checked + .car-booking-slider:before,
.car-booking-form-container .car-booking-switch--hybrid input:checked + .car-booking-slider:before {
    width: 16px;
    height: 16px;
    bottom: 2px;
    transform: translateX(17px); /* leaves a small gap inside the 2px outline */
}

/* itfirm theme pads #content.site-content 100px top/bottom; keep a little air once the form is open */
body.sfb-booking-form-open #content.site-content {
    padding-top: 24px !important;
}

/* "Booking sent successfully!" toast, bottom centre like the React form */
.sfb-toast {
    position: fixed;
    z-index: 100000;
    left: 50%;
    bottom: 24px;
    transform: translateX(-50%);
    padding: 10px 18px;
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    background: #16a34a;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(22, 32, 53, 0.25);
    white-space: nowrap;
    max-width: calc(100vw - 32px);
}

/* Inserted error lines (products box, extra emails) are red: the generic ".car-booking-form span" grey must lose */
.car-booking-form-container .car-booking-form .car-booking-inline-error,
.booking-confirmation-modal .car-booking-inline-error {
    color: #d63638;
    font-size: 12px;
}

/* Chevron inside Make / Model: opens the full suggestion list */
.car-booking-form-container .car-booking-form .sfb-suggest input[type="text"] {
    padding-right: 42px;
}
.car-booking-form .sfb-suggest .sfb-suggest-toggle {
    position: absolute;
    top: 0;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px !important;
    height: 44px !important;
    min-width: 0 !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    color: #7e858f;
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 10px 10px 0 !important;
    box-shadow: none !important;
    cursor: pointer;
}
.car-booking-form .sfb-suggest .sfb-suggest-toggle:hover {
    color: #162035;
}
.car-booking-form .sfb-suggest .sfb-suggest-toggle svg {
    transition: transform 0.15s ease;
}
.car-booking-form .sfb-suggest input[aria-expanded="true"] ~ .sfb-suggest-toggle {
    color: #1475f7;
}
.car-booking-form .sfb-suggest input[aria-expanded="true"] ~ .sfb-suggest-toggle svg {
    transform: rotate(180deg);
}
.car-booking-form .sfb-suggest .sfb-suggest-option.is-selected {
    font-weight: 600;
}
