/**
 * 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-nav-tabs button {
    background: none !important;
    color: #000;
    padding: 0px 3px;
}
.product-item-subtitle {
    font-size: 10px;
}
.product-modal-footer button.nav-tab.active {
    color: #000 !important; box-shadow: 0 0 6px #ccc; border-color: #ccc;
}
.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 */
.car-booking-columns {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.car-booking-column {
    flex: 1;
}

/* Headings */
.car-booking-form h2 {
    margin-top: 0; font-weight: 600;
    color: #000;
    font-size: 1.2em;
    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;
    min-width: 80px;
    height: 37px;
    padding: 8px;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
     padding-right: 32px;
}

.car-booking-postcode-field {
    flex: 2;
}

/* 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-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: 0px;
    left: 0;
    right: -4px;
    bottom: 0;
    background-color: #ccc;
    transition: 0.4s;
    border-radius: 24px;
}

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

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

input:focus + .car-booking-slider {
    box-shadow: 0 0 1px #007cba;
}

input:checked + .car-booking-slider:before {
    transform: translateX(26px);
}

/* 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;
}

@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-list-header {
    padding: 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
    gap: 16px;
}

.back-btn {
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #000;
    padding: 8px;
    border-radius: 4px;
    position: absolute;
    left: 0;
}

.back-btn:hover {
    background: #f0f0f0;
}

.product-list-header h4 {
    margin: 0;
    font-size: 18px;
    color: #333; padding-left: 32px;
}

/* 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;
}
input.car-booking-submit {
    background-color: #000 !important;
    background-image: none;
    /* padding: 10px 0; */
    border-radius: 10px;
    text-transform: none;
    line-height: 41px;
    letter-spacing: inherit !important;
    width: 300px !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;
    }
    
    .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;
    }
}