/**
 * YouGo Cars Rental Booking — Frontend CSS
 */

:root {
    --ygc-rental-container-width: 1200px;
    --ygc-rental-archive-padding-block: 30px;
    --ygc-rental-archive-padding-inline: 20px;
    --ygc-rental-search-form-padding: 20px 15px;
}

h1 {margin-top: 20px; margin-bottom: 30px; font-size: 30px;  font-weight: 600; letter-spacing: 1px;}

/* ---------- 4. PRODUCT ARCHIVE/LISTING ---------- */

/* Full-width page wrapper — resets theme constraints */
.ygc-rental-archive-page {
    width: 100%;
    box-sizing: border-box;
}

/* Centred inner container with breathing room */
.ygc-rental-archive-inner {
    max-width: var(--ygc-rental-container-width);
    margin: 0 auto;
    padding: var(--ygc-rental-archive-padding-block) var(--ygc-rental-archive-padding-inline);
    box-sizing: border-box;
}

.ygc-rental-archive-title {
    font-size: 30px;
    font-weight: 700;
    letter-spacing: 1px;
    margin: 0 0 30px;
}

/* Layout: list + optional sidebar */
.ygc-rental-archive-layout {
    display: flex;
    gap: 24px;
}

/* No sidebar — list takes full width */
.ygc-rental-archive-layout.ygc-rental-no-sidebar .ygc-rental-cars-list {
    width: 100%;
}

/* Sidebar right (default) — list left, sidebar right */
.ygc-rental-archive-layout.ygc-rental-has-sidebar.ygc-rental-sidebar-right {
    flex-direction: row;
}

/* Sidebar left — sidebar is second in HTML, row-reverse moves it visually left */
.ygc-rental-archive-layout.ygc-rental-has-sidebar.ygc-rental-sidebar-left {
    flex-direction: row-reverse;
}

.ygc-rental-cars-list {
    flex: 1;
    min-width: 0; /* prevent flex overflow */
}

.ygc-rental-cars-sidebar {
    width: 280px;
    flex-shrink: 0;
}

/* Sidebar background */
.ygc-rental-cars-sidebar .ygc-rental-container {
    background: #fff;
}

/* Stack on mobile — sidebar above, list below */
@media (max-width: 860px) {
    .ygc-rental-archive-layout {
        flex-direction: column !important;
    }
    .ygc-rental-cars-sidebar {
        width: 100%;
        order: -1;
    }
    .ygc-rental-cars-list {
        order: 1;
    }
}

/* Archive page background */
.ygc-rental-archive-page {
    background: #fff;
}

/* Base card container — border, shadow, radius (from ygc-rental-styles.css) */
.ygc-rental-container {
    border: 1px solid #e8e8e8;
    border-radius: 10px;
    padding: 20px;
    background-color: #FFFFFF;
    box-shadow: 0px 8px 16px rgba(17, 24, 39, .06);
    margin-bottom: 15px;
}

.ygc-rental-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
    list-style: none;
    padding: 0;
    margin: 0;
    clear: both;
    width: 100%;
}

/* ---------- 5. PRODUCT CARD STYLING ---------- */

.ygc-rental-car-card {
    justify-content: flex-end;
    position: relative;
    text-align: center !important;
    transition: transform .45s ease-out;
}

.ygc-rental-car-card:hover {
    transform: translateY(-6px);
}

.ygc-rental-car-card img {
    box-shadow: none !important;
}

.ygc-rental-car-card-button {
    display: inline-block;
    padding: 12px 25px;
    background-color: #2abe39;
    color: white;
    text-align: center;
    text-decoration: none;
    font-weight: bold;
    border-radius: 21px;
    height: 42px;
    line-height: 18px;
    font-size: 14px;
    box-sizing: border-box;
    transition: background-color 0.3s ease;
    min-width: 60%;
    margin: 0 auto 5px;
    text-transform: uppercase;
    pointer-events: none;
}

.ygc-rental-car-card .ygc-rental-card-link:after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    cursor: pointer;
}

.ygc-rental-card-image {
    display: block;
    width: 100%;
    max-width: 100%;
    height: 180px;
    object-fit: contain;
}

/* ---------- 6. PRODUCT LOOP ELEMENTS ---------- */

/* Loop Title */
.ygc-rental-card-title {
    margin-top: 5px !important;
    margin-bottom: 20px !important;
    font-weight: 500;
    font-size: 20px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.ygc-rental-card-title a {
    color: #1e293b;
    text-decoration: none;
}

/* Loop Features */
.ygc-rental-card-feature-list {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    list-style: none;
    padding: 0;
    margin-bottom: 15px;
}

.ygc-rental-card-feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 25%;
    font-size: 12px;
}

.ygc-rental-card-feature-icon img {
    width: 22px !important;
    height: 22px !important;
    object-fit: contain;
    margin: 0 auto 3px !important;
}

.ygc-rental-card-feature-name {
    font-size: 12px;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
    text-align: center;
}

/* Loop Price List */
.ygc-rental-car-card .ygc-rental-card-price-list {    
    border-top: 1px solid #e8e8e8;
    padding-top: 10px;
    margin-bottom: 20px;
    font-size: 14px;
}

.ygc-rental-car-card .ygc-rental-card-price-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

/* ---------- 7. PAGINATION ---------- */

.ygc-rental-pagination {
    display: flex;
    justify-content: center;
    margin-top: 30px;
}

.ygc-rental-pagination .nav-links {
    display: flex;
    gap: 8px;
    padding: 10px;
}

.ygc-rental-pagination .page-numbers {
    display: inline-block;
    padding: 10px 15px;
    background: #ffffff;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    box-shadow: 0px 8px 16px rgba(17,24,39,.06) !important;
    text-decoration: none;
    color: #333;
    font-weight: bold;
    transition: all 0.3s ease;
}

.ygc-rental-pagination .page-numbers:hover, 
.ygc-rental-pagination .next:hover {
    background: #f8f8f8;
    border-color: rgba(0, 0, 0, 0.2);
}

.ygc-rental-pagination .page-numbers.current {
    background: #046bd2;
    color: #ffffff;
    border-color: #046bd2;
    cursor: default;
    box-shadow: 0px 8px 16px rgba(17,24,39,.06) !important;
}

.ygc-rental-pagination .next {
    color: #046bd2;
    border-color: #e8e8e8;
}

/* ---------- 8. SINGLE PRODUCT PAGE ---------- */

.ygc-rental-car-container,
.ygc-rental-related-section {
    width: 100%;
    margin-bottom: 30px;
    overflow: auto;
}

.ygc-rental-col-1 {
    width: 60%;
    float: left;
}

.ygc-rental-col-2 {
    width: 40%;
    float: right;
    padding-left: 30px;
}

.ygc-rental-col-3 {
    width: 60%;
    float: left;
}

.ygc-rental-car-featured-image {
    width: 100%;
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

/* Page Components */
.ygc-rental-product-features h3,
.ygc-rental-product-description h3,
.ygc-rental-product-info-custom h3,
.ygc-rental-add-to-cart h3 {
    font-size: 22px;
    font-weight: 600;
}

.ygc-rental-product-features h3,
.ygc-rental-product-description h3,
.ygc-rental-product-info-custom h3 {
    margin-bottom: 20px;
}

.ygc-rental-product-features,
.ygc-rental-add-to-cart,
.ygc-rental-product-description,
.ygc-rental-product-info-custom {
    padding: 20px 25px !important;
    margin-bottom: 25px !important;
}

/* Product Price */
.product-price .amount {
    font-weight: 600;
    font-size: 22px;
    color: #10bd1d;
}

/* Product Price List */
.ygc-rental-car-price-list {
    background-color: #f5f5f5;
    border-radius: 6px;
    padding: 5px 25px !important;
    margin-bottom: 25px;
}

.ygc-rental-car-price-list .ygc-rental-card-price-list {
    padding-top: 5px;
    margin-bottom: 5px;
}

.ygc-rental-car-price-list .ygc-rental-card-price-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #ddd;
    padding: 15px 0;
}

.ygc-rental-card-price-item:last-child {
    border-bottom: none;
}

.ygc-rental-car-price-list .ygc-rental-card-price-cost {
    font-weight: 500;
}

/* .ygc-rental-car-price-list ul {
    margin: 0;
}

.ygc-rental-car-price-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-top: 1px solid #ddd;
}

.ygc-rental-car-price-list li:first-child {
    border: none;
}

.price-duration {
    text-align: left;
    flex: 1;
}

.price-cost {
    text-align: right;
    flex: 1;
    font-weight: 600;
} */

/* Product Form */
.single-product-book-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.single-product-book-logo {
    width: 46px;
    height: 46px;
    object-fit: contain;
    margin-right: 6px;
}

.single-product-book-name {
    margin: 0;
    font-size: 18px;
    font-weight: bold;
}

/* Terms and Conditions */
.ygc-rental-terms ul {
    list-style: none;
    padding-left: 0;
    margin-left: 0;
}

.ygc-rental-terms ul li {
    position: relative;
    padding-left: 30px;
}

.ygc-rental-terms ul li::before {
    content: "\f147";
    font-family: 'Dashicons';
    position: absolute;
    left: -4px;
    top: 1px;
    font-size: 28px;
    color: #f80909;
}

/* Related Products */
.ygc-rental-related-container .related h2 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 20px;
}

/* ---------- 9. FEATURES ---------- */

.ygc-rental-product-features h3 {
    border-bottom: 1px solid #ddd;
    padding-bottom: 15px;
}

.ygc-rental-feature-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    list-style: none;
    padding: 0; margin: 0;
}

.ygc-rental-feature-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 14px 14px 0;
    border-top: 1px solid #eeeeee;
}

.ygc-rental-feature-icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
}
.ygc-rental-product-features .ygc-rental-feature-list { margin-top: 16px; }

/* ---------- 11. RESPONSIVE MEDIA QUERIES ---------- */


@media (max-width: 860px) {
    .ygc-rental-col-1, 
    .ygc-rental-col-2, 
    .ygc-rental-col-3 {
        padding: 0;
        width: 100%;
        float: none;
        clear: both;
    }
    
    .ygc-rental-product-features,
    .ygc-rental-add-to-cart,
    .ygc-rental-product-description,
    .ygc-rental-product-info-custom {
        padding: 20px !important;
    }
    
    .ygc-rental-product-features h3,
    .ygc-rental-product-description h3,
    .ygc-rental-product-info-custom h3,
    .ygc-rental-add-to-cart h3 {
        font-size: 18px;
    }
    
    .ygc-rental-feature-list {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* === SEARCH FORM HORIZONTAL === */
.ygc-rental-search-form-container-horizontal {
    width: 100%;
    max-width: var(--ygc-rental-container-width);
    margin: 0 auto;
    padding: var(--ygc-rental-search-form-padding);
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

#ygc-rental-search-form-horizontal {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: space-between;
    align-items: flex-end;
}

.ygc-rental-search-form-field-horizontal {
    flex: 1 1 200px;
    min-width: 200px;
}

.ygc-rental-search-form-field-horizontal label {
    display: block;
    margin-bottom: 10px;
    font-size: 16px;
}

.ygc-rental-search-form-field-horizontal select,
.ygc-rental-search-form-field-horizontal input[type="text"] {
    width: 100%;
    font-size: 14px;
    border: 1px solid #ccc;
    border-radius: 8px;
    box-sizing: border-box;
}

/* Custom Select Styling */
.ygc-rental-custom-select-horizontal {
    position: relative;
    width: 100%;
}

.ygc-rental-custom-select-horizontal .select-icon {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    height: 20px;
    width: auto;
    z-index: 1;
}

.ygc-rental-select-selected {
    background-color: white;
    padding: 8px 16px;
    padding-left: 40px;
    border: 1px solid #ccc;
    cursor: pointer;
    border-radius: 8px;
    display: flex;
    align-items: center;
    position: relative;
}

.ygc-rental-select-selected:after {
    content: '';
    position: absolute;
    right: 10px;
    top: 18px;
    border: 6px solid transparent;
    border-top: 6px solid #999;
}

.ygc-rental-custom-select-horizontal.active .ygc-rental-select-selected:after {
    border-top: none;
    border-bottom: 6px solid #999;
}

.ygc-rental-select-items {
    position: absolute;
    background-color: white;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 99;
    max-height: 250px;
    overflow-y: auto;
    border: 1px solid #ccc;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.ygc-rental-select-hide {
    display: none;
}

.ygc-rental-select-items div {
    padding: 8px 16px;
    cursor: pointer;
}

.ygc-rental-select-items div:hover {
    background-color: #f8f8f8;
}

.ygc-rental-custom-select-horizontal.active .ygc-rental-select-selected {
    border-radius: 8px 8px 0 0;
    border-bottom: none;
    padding-bottom: 9px;
}

/* Date Picker Styles */
.ygc-rental-date-picker-with-icon {
    position: relative;
    width: 100%;
}

.ygc-rental-date-picker-with-icon img {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    height: 20px;
    width: 20px;
    pointer-events: none;
    z-index: 2;
}

#daterange,
.ygc-rental-daterange-input {
    width: 100%;
    padding: 8px 16px;
    padding-left: 40px;
    border: 1px solid #ccc;
    border-radius: 8px;
    box-sizing: border-box;
    font-size: 16px;
    height: 44px;
    caret-color: transparent;
    user-select: none;
    touch-action: manipulation;
}
#daterange:focus,
.ygc-rental-daterange-input:focus {
    outline: none;
    box-shadow: none;
    border-color: #ccc;
}
.ygc-rental-form-container-vertical .ygc-rental-daterange-input:focus {
    outline: none;
    box-shadow: none;
    border: none;
}

.ygc-rental-search-form-button-horizontal button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    font-size: 16px;
    background-color: #0073aa;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s;
}

.ygc-rental-search-form-button-horizontal button:hover {
    background-color: #005f8d;
}

.ygc-rental-search-form-button-horizontal .select-icon {
    width: 18px;
    height: 18px;
    object-fit: contain;
    display: inline-block;
}

.ygc-rental-search-form-button-horizontal button[type="submit"] { 
    background-color: #4CAF50;
    color: white;
    border: none;
    padding: 13px 30px;
    font-size: 18px;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.ygc-rental-search-form-button-horizontal button[type="submit"]:hover { 
    background-color: #45a049;
}



/* === SEARCH FORM VERTICAL === */
/* Form Vertical Styles */
.ygc-rental-form-field {
    border-bottom: 1px solid #ddd;
    padding: 10px 0 5px;
    position: relative;
    cursor: pointer;
}

.ygc-rental-form-header {
    display: flex;
    align-items: center;
    gap: 10px;
}

.ygc-rental-form-icon {
    width: 24px;
    height: 24px;
}

.ygc-rental-form-title {
    flex-grow: 1;
    font-size: 15px;
}

.ygc-rental-arrow {
    margin-left: auto;
    transition: transform 0.3s ease;
}

.ygc-rental-form-content {
    padding-left: 32px;
}

.ygc-rental-selected-value {
    padding: 5px 0;
    font-weight: 600;
}

.ygc-rental-options-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: none;
    background: #fff;
    border: 1px solid #ccc;
    position: absolute;
    width: 100%;
    z-index: 10;
    padding: 10px 0;
    border-radius: 6px;
    box-shadow: 1px 1px 16px #55555533;
    left: 0;
    top: 78px;
}

.ygc-rental-options-list li {
    padding: 10px 20px;
    cursor: pointer;
    font-weight: 500;
}

.ygc-rental-options-list li:hover {
    background: #f0f0f0;
}

.ygc-rental-form-container-vertical #daterange,
.ygc-rental-form-container-vertical .ygc-rental-daterange-input {
    display: block;
    width: 100%;
    height: auto;
    border: none;
    outline: none;
    padding: 5px 0;
    background: transparent;
    color: inherit;
    font: inherit;
    font-weight: 600;
    line-height: normal;
}

.ygc-rental-form-container-vertical #daterange::placeholder {
    color: inherit;
    opacity: 1;
}

/* Contact Form Styles */
.ygc-rental-contact-form input, 
.ygc-rental-contact-form textarea {
    border-radius: 6px !important;
    padding: 22px 15px !important;
}

/* Test Elements */
.test-form {
    width: 200px;
}

/* Responsive Styles */
@media (max-width: 860px) {
    .ygc-rental-search-form-button-horizontal {
        width: 100%;
        padding: 8px 0 6px;
    }
    
    .ygc-rental-search-form-button-horizontal button[type="submit"] { 
        width: 100%;
    }

    .header.entry-header.entry-title {
        margin-top: 50px;
    }
    
    .ygc-rental-order-1 {
        order: 1 !important;
    }
    
    .ygc-rental-order-2 {
        order: 2 !important;
    }
    
    .ygc-rental-justify-center {
        justify-content: center !important;
    }
    
    .ygc-rental-footer-wrapper {
        flex-direction: column;
    }
    
    .ygc-rental-footer-container, 
    .ygc-rental-footer-contacts-col {
        align-items: center;
        flex-direction: column;
    }
    
    .ygc-rental-footer-logo-container {
        padding-bottom: 20px;
    }
    
    .ygc-rental-footer-info-container {
        padding: 0 10px;
    }
    
    .ygc-rental-footer-container, 
    .ygc-rental-footer-contacts-col, 
    .ygc-rental-footer-info-container, 
    .ygc-rental-footer-contacts, 
    .ygc-rental-footer-links {
        width: 100%;
        margin-bottom: 15px;
    }
    .ygc-rental-footer-description {
        line-height: 2;
    }
    .ygc-rental-footer-contacts-text {    
        padding: 5px;
    }
}

@media (min-width: 861px) {
    .ygc-rental-filters-container {
        display: block !important;
        border-top: none;
    }
    
    #ygc-rental-filters-header {
        display: none;
    }
}
/* === FILTERS === */
.ygc-rental-filters-container {
    display: none;
}

.ygc-rental-filters-container.open {
    display: block;
}

.ygc-rental-filters-container h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 6px;
    margin-top: 36px;
    letter-spacing: 1px;
}

.ygc-rental-form-field.filter-field {
    border: none;
}

.ygc-rental-filter-item {
    margin-bottom: 1.25em;
}

.ygc-rental-filter-checkbox-list {
    margin: 0;
    padding: 0;
    width: 100%;
}

.ygc-rental-filter-checkbox-list li {
    list-style: none outside;
    margin: 0;
    padding: 0;
}

.ygc-rental-filter-checkbox-list li label {
    align-items: flex-start;
    cursor: pointer;
    display: inline-flex;
    font-size: .875em;
    margin-bottom: 0 !important;
    position: relative;
}

.ygc-rental-filter-checkbox {
    line-height: 1;
    margin-top: 1em;
}

.ygc-rental-filter-checkbox-input[type=checkbox] {
    appearance: none;
    background-color: #fff;
    border: 1px solid #91908d;
    border-radius: 4px;
    font-size: 1em;
    height: 20px;
    margin: 0 1em 0 0;
    overflow: hidden;
    position: static;
    vertical-align: middle;
    width: 20px;
    cursor: pointer;
    position: relative;
    top: 1px;
}

.ygc-rental-filter-checkbox-input[type=checkbox]:checked, 
.ygc-rental-filter-checkbox-input[type=checkbox]:hover {
    background-color: #fff !important;
    border-color: #91908d !important;
}

.ygc-rental-filter-checkbox-mark {
    fill: #000;
    height: 1.125em;
    margin-left: .1875em;
    margin-top: .0625em;
    pointer-events: none;
    position: absolute;
    width: 1.125em;
}

.ygc-rental-filter-checkbox-input[type=checkbox]:not(:checked) + .ygc-rental-filter-checkbox-mark {
    display: none;
}

.ygc-rental-filter-checkbox-label {
    line-height: 1.5em;
    vertical-align: middle;
}


.ygc-rental-wrap { background: #fff; }

/* Single car page spacing */
.ygc-rental-single-wrap { padding: 30px 0 0; }
.ygc-rental-single-title { font-size: 28px; font-weight: 700; margin: 0 0 24px; }

/* Description inside media card */
.ygc-rental-car-description {
    margin-top: 20px;
    line-height: 1.75;
    color: #374151;
}

/* === BOOKING FORM === */
.ygc-rental-booking-form { margin-top: 16px; }
.ygc-rental-form-grid { display: grid; grid-template-columns: 1fr; gap: 20px; }
.ygc-rental-field { display: flex; flex-direction: column; gap: 4px; }
/* Date+time pair — 2 columns in one row */
.ygc-rental-date-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.ygc-rental-field label { font-weight: 600; color: #1d2327; }
.ygc-rental-field .req { color: #b32d2e; }
.ygc-rental-field input[type="text"],
.ygc-rental-field input[type="email"],
.ygc-rental-field input[type="tel"],
.ygc-rental-field select,
.ygc-rental-field textarea {
    width: 100%; padding: 9px 12px; border: 1px solid #dcdcde;
    border-radius: 6px; box-sizing: border-box; background: #fff;
    line-height: 1.5; height: 44px;
}
.ygc-rental-field input:focus, .ygc-rental-field select:focus, .ygc-rental-field textarea:focus {
    border-color: #b8d4f5; outline: none; box-shadow: 0 0 0 2px rgba(100,181,246,.08);
}

/* Extras — no borders, top divider */
.ygc-rental-extras-list { display: flex; flex-direction: column; border: 1px solid #dcdcde; border-radius: 8px; padding: 6px 16px;}
.ygc-rental-extra-item {
    display: flex; align-items: center; justify-content: space-between;
    gap: 8px; padding: 7px 0;
    border-top: 1px solid #e6e6e6;
}
.ygc-rental-extra-item:first-child { border-top: none; }
.ygc-rental-extra-info { display: flex; flex-direction: column; gap: 1px; flex: 1; min-width: 0; font-size: 0.9em; }
.ygc-rental-extra-name { font-weight: 600; color: #1d2327; }
.ygc-rental-extra-price { color: #8c8f94; }

/* Counter */
.ygc-rental-counter {
    display: flex !important; align-items: center !important;
    border: 1.5px solid #d1d5db !important; border-radius: 7px !important;
    overflow: hidden !important; flex-shrink: 0 !important;
    width: auto !important; height: auto !important;
}
.ygc-rental-counter__btn {
    width: 34px !important; height: 34px !important;
    min-width: 0 !important; min-height: 0 !important;
    padding: 0 !important; margin: 0 !important;
    background: #f3f4f6 !important; border: none !important;
    border-radius: 0 !important; box-shadow: none !important;
    cursor: pointer !important; font-size: 18px !important;
    line-height: 1 !important; color: #374151 !important;
    display: flex !important; align-items: center !important; justify-content: center !important;
    transition: background .15s !important;
}
.ygc-rental-counter__btn:hover:not([disabled]) { background: #e5e7eb !important; }
.ygc-rental-counter__btn[disabled] { opacity: .3 !important; cursor: default !important; pointer-events: none !important; }
.ygc-rental-counter__btn:after { display: none !important; }
.ygc-rental-counter__btn:before { display: none !important; }
.ygc-rental-counter__val {
    width: 36px !important; height: 34px !important;
    border: none !important; border-left: 1.5px solid #d1d5db !important;
    border-right: 1.5px solid #d1d5db !important;
    text-align: center !important; font-size: 14px !important; font-weight: 600 !important;
    color: #1d2327 !important; background: #fff !important;
    padding: 0 !important; -moz-appearance: textfield !important;
}
.ygc-rental-counter__val::-webkit-inner-spin-button,
.ygc-rental-counter__val::-webkit-outer-spin-button { -webkit-appearance: none; }

/* Checkbox extra */
.ygc-rental-extra-toggle {
    position: relative; display: inline-flex; flex-shrink: 0;
    width: 44px; height: 24px;
}
.ygc-rental-extra-toggle input { opacity: 0; width: 0; height: 0; position: absolute; }
.ygc-rental-extra-toggle__track {
    position: absolute; inset: 0; background: #d1d5db; border-radius: 12px;
    cursor: pointer; transition: background .2s;
}
.ygc-rental-extra-toggle__track:before {
    content: ''; position: absolute; width: 18px; height: 18px;
    background: #fff; border-radius: 50%; top: 3px; left: 3px;
    transition: transform .2s; box-shadow: 0 1px 3px rgba(0,0,0,.2);
}
.ygc-rental-extra-toggle input:checked + .ygc-rental-extra-toggle__track { background: #4c8aff; }
.ygc-rental-extra-toggle input:checked + .ygc-rental-extra-toggle__track:before { transform: translateX(20px); }

/* Section dividers */
.ygc-rental-section-divider {
    border: none; border-top: 1px solid #e5e7eb; margin: 4px 0;
}

/* Custom time picker */
.ygc-rental-time-picker {
    position: relative;
}
.ygc-rental-time-display {
    display: flex; align-items: center; justify-content: space-between;
    width: 100%; padding: 9px 12px; border: 1px solid #dcdcde;
    border-radius: 6px; box-sizing: border-box;
    background: #fff; cursor: pointer; user-select: none;
    line-height: 1.5;
}
.ygc-rental-time-display:focus { outline: none; border-color: #b8d4f5; box-shadow: 0 0 0 2px rgba(100,181,246,.08); }
.ygc-rental-time-display.ygc-rental-field-error { border-color: #e53935 !important; }
.ygc-rental-time-picker.open .ygc-rental-time-display { border-color: #b8d4f5; border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
.ygc-rental-time-value { color: #1d2327; }
.ygc-rental-time-value.placeholder { color: #8c8f94; }
.ygc-rental-time-arrow { font-size: 14px; color: #374151; transition: transform .15s; }
.ygc-rental-time-picker.open .ygc-rental-time-arrow { transform: rotate(180deg); }
.ygc-rental-time-dropdown {
    position: absolute; left: 0; right: 0; top: 100%;
    background: #fff; border: 1px solid #b8d4f5; border-top: none;
    border-bottom-left-radius: 6px; border-bottom-right-radius: 6px;
    max-height: 200px; overflow-y: auto; z-index: 9999;
    box-shadow: 0 4px 12px rgba(0,0,0,.12);
}
.ygc-rental-time-option {
    padding: 10px 12px; font-size: 15px; cursor: pointer; color: #1d2327;
    border-bottom: 1px solid #f3f4f6;
}
.ygc-rental-time-option:last-child { border-bottom: none; }
.ygc-rental-time-option:hover { background: #f3f4f6; }
.ygc-rental-time-option.selected { background: #e9eaec; font-weight: 600; color: #1d2327; }
.ygc-rental-price-summary {
    background: #f3f4f6; border-radius: 8px; padding: 12px 14px;
    display: flex; flex-direction: column; gap: 6px;
}
.ygc-rental-price-row {
    display: flex; justify-content: space-between; align-items: baseline;
    color: #646970;
}
.ygc-rental-price-row.ygc-rental-price-total {
    border-top: 1px solid #e5e7eb; margin-top: 4px; padding-top: 8px;
    font-size: 15px; font-weight: 700; color: #1d2327;
}
.ygc-rental-price-row span:last-child { font-weight: 600; color: #1d2327; }
.ygc-rental-price-row.ygc-rental-price-total span:last-child { font-size: 16px; }
.ygc-rental-price-placeholder { color: #8c8f94; font-style: italic; margin: 0; }


/* Field icons */
.ygc-rental-field-icon {
    width: 16px; height: 16px; flex-shrink: 0;
    display: inline-block; vertical-align: middle;
}
.ygc-rental-input-icon-wrap {
    position: relative; display: flex; align-items: center;
}
.ygc-rental-input-icon-wrap .ygc-rental-field-icon {
    position: absolute; left: 12px; pointer-events: none; z-index: 1;
}
.ygc-rental-input-icon-wrap input {
    padding: 9px 12px 9px 34px !important;
    line-height: 1.5 !important;
    height: 44px !important;
}
/* Icon inside custom picker display */
.ygc-rental-time-display.ygc-rental-has-icon {
    gap: 8px;
}
.ygc-rental-time-display.ygc-rental-has-icon .ygc-rental-time-value {
    flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.ygc-rental-form-notice { padding: 10px 14px; border-radius: 6px; margin-bottom: 12px; }
.ygc-rental-form-notice.success { background: #ecfdf5; border: 1px solid #6ee7b7; color: #065f46; }
.ygc-rental-form-notice.error { background: #fef2f2; border: 1px solid #fca5a5; color: #991b1b; }
.ygc-rental-submit-btn { display: block; width: 100%; margin-top: 20px; padding: 16px 25px; background-color: #2abe39; color: white; text-align: center; font-weight: bold; border: none; border-radius: 30px; font-size: inherit; box-sizing: border-box; cursor: pointer; transition: background-color 0.3s ease; text-transform: uppercase; }
.ygc-rental-submit-btn:disabled { opacity: .6; cursor: not-allowed; }
.ygc-rental-submit-btn:hover { color: #cdff00; background-color: #24a832; }

/* Validation */
.ygc-rental-field input.ygc-rental-field-error,
.ygc-rental-field select.ygc-rental-field-error,
.ygc-rental-field textarea.ygc-rental-field-error { border-color: #e53935 !important; box-shadow: 0 0 0 2px rgba(229,57,53,.12); }
.ygc-rental-field-msg { display: block; font-size: 12px; color: #e53935; margin-top: 2px; }
/* Feature list styles defined above. */

/* === BRAND === */
.ygc-rental-brand-title-row { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.ygc-rental-car-brand { flex-shrink: 0; margin-bottom: 0; }
.ygc-rental-car-brand img { max-height: 40px; width: auto; }
.ygc-rental-booking-title { margin: 0; }

/* === GALLERY === */
.ygc-rental-gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; }
.ygc-rental-gallery-img { width: 100%; height: 110px; object-fit: cover; border-radius: 6px; }

/* === TERMS === */
.ygc-rental-terms h3 { font-size: 18px; font-weight: 700; margin-bottom: 12px; }
.ygc-rental-terms ul { margin-left: 20px; }
.ygc-rental-terms li { margin-bottom: 8px; line-height: 1.6; }

/* === RELATED === */
.ygc-rental-related-title { font-size: 22px; font-weight: 700; margin-bottom: 20px; }


/* === BOOKING MODAL === */
.ygc-rental-modal { display: none; position: fixed; inset: 0; z-index: 100000; }
.ygc-rental-modal:not([hidden]) { display: flex; align-items: center; justify-content: center; }
.ygc-rental-modal-overlay { position: absolute; inset: 0; background: rgba(0,0,0,.55); }
.ygc-rental-modal-dialog {
    position: relative; z-index: 1;
    background: #fff; border-radius: 12px;
    width: 90vw; max-width: 860px; max-height: 90vh;
    overflow-y: auto; box-shadow: 0 20px 60px rgba(0,0,0,.25);
    display: flex; flex-direction: column;
}
.ygc-rental-modal-close {
    position: absolute; top: 14px; right: 16px;
    background: none; border: none; font-size: 20px; cursor: pointer;
    color: #6b7280; line-height: 1; padding: 4px 8px; z-index: 2;
}
.ygc-rental-modal-close:hover { color: #1d2327; }
.ygc-rental-modal-body { display: grid; grid-template-columns: 1fr 1fr; min-height: 0; }

/* Summary column */
.ygc-rental-modal-summary {
    padding: 28px 24px;
    background: #f9fafb;
    border-right: 1px solid #e5e7eb;
    border-radius: 12px 0 0 12px;
    display: flex; flex-direction: column; gap: 12px;
}
.ygc-rental-modal-car-img {
    width: 100%; height: auto; max-height: 220px; object-fit: cover;
    border-radius: 8px;
}
.ygc-rental-modal-car-name { margin: 0; font-size: 17px; font-weight: 700; }
.ygc-rental-modal-booking-summary { display: flex; flex-direction: column; gap: 6px; }
.ygc-rental-modal-summary-row {
    display: flex; gap: 8px; font-size: 13px; color: #374151;
}
.ygc-rental-modal-summary-row strong { color: #6b7280; font-weight: 500; min-width: 80px; }
.ygc-rental-modal-summary-row.ygc-rental-sub-row { padding-left: 88px; color: #6b7280; margin-top: -2px; }
.ygc-rental-modal-price-box {
    margin-top: auto;
    background: #fff; border-radius: 8px; padding: 10px 14px;
    border: 1px solid #e5e7eb;
}

/* Contact column */
.ygc-rental-modal-contact {
    padding: 28px 24px;
    display: flex; flex-direction: column; gap: 16px;
}
.ygc-rental-modal-title { margin: 0; font-size: 18px; font-weight: 700; }

@media (max-width: 640px) {
    .ygc-rental-modal-body { grid-template-columns: 1fr; }
    .ygc-rental-modal-summary { border-right: none; border-bottom: 1px solid #e5e7eb; border-radius: 12px 12px 0 0; }
}

/* Success panel */
.ygc-rental-modal-success {
    padding: 56px 32px 48px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}
.ygc-rental-modal-success[hidden] { display: none; }
.ygc-rental-modal-success__check {
    width: 72px; height: 72px;
    border-radius: 50%;
    background: #dcfce7;
    border: 2px solid #86efac;
    display: flex; align-items: center; justify-content: center;
    font-size: 34px;
    color: #16a34a;
    font-weight: 700;
}
.ygc-rental-modal-success__heading {
    margin: 0;
    font-size: 22px;
    font-weight: 700;
    color: #15803d;
}
.ygc-rental-modal-success__msg {
    margin: 0;
    font-size: 16px;
    color: #374151;
}
.ygc-rental-modal-success__ref {
    margin: 0;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: #1a3a5c;
    background: #f0f7ff;
    padding: 10px 28px;
    border-radius: 8px;
    border: 1px solid #bfdbfe;
}
.ygc-rental-modal-success__ref:empty { display: none; }
.ygc-rental-modal-success__btn { margin-top: 8px; }

/* ============================================================
   Flatpickr calendar overrides — YouGo Cars Rental
   ============================================================ */

/* ============================================================
   Flatpickr — Booking Form date picker overrides
   ============================================================ */

/* Match the plugin's input style — covers both original and altInput */
#ygc-rental-booking-form .ygc-rental-single-date-input,
#ygc-rental-booking-form .ygc-rental-single-date-input.flatpickr-input {
    width: 100%;
    cursor: pointer;
    font-size: 15px;
}

/* Calendar container */
.flatpickr-calendar {
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0,0,0,.10);
    font-family: inherit;
}

/* Month navigation bar */
.flatpickr-months {
    background: #4c8aff;
    border-radius: 10px 10px 0 0;
    height: 42px;
}
.flatpickr-months .flatpickr-month {
    background: transparent;
    color: #fff;
    fill: #fff;
    height: 42px;
}
.flatpickr-current-month {
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    height: 42px;
    padding-top: 12px;
}
.flatpickr-current-month .flatpickr-monthDropdown-months,
.flatpickr-current-month input.cur-year {
    color: #fff;
    font-weight: 600;
}
.flatpickr-months .flatpickr-prev-month,
.flatpickr-months .flatpickr-next-month {
    color: #fff;
    fill: #fff;
    padding: 12px 14px 6px;
    height: 42px;
}
.flatpickr-months .flatpickr-prev-month:hover,
.flatpickr-months .flatpickr-next-month:hover {
    color: #fff;
    fill: #fff;
    background: rgba(255,255,255,.15);
    border-radius: 6px;
}
.flatpickr-months .flatpickr-prev-month svg,
.flatpickr-months .flatpickr-next-month svg {
    fill: #fff;
}
.flatpickr-current-month .numInputWrapper:hover,
.flatpickr-current-month select.flatpickr-monthDropdown-months:hover {
    background: transparent;
}

/* Weekday header */
.flatpickr-weekdays {
    background: #f9fafb;
}
span.flatpickr-weekday {
    background: #f9fafb;
    color: #6b7280;
    font-weight: 600;
    font-size: 12px;
}

/* Day cells */
.flatpickr-day {
    border-radius: 6px;
    color: #1f2937;
    font-size: 13px;
}
.flatpickr-day:hover,
.flatpickr-day.prevMonthDay:hover,
.flatpickr-day.nextMonthDay:hover {
    background: #e8f0ff;
    border-color: #e8f0ff;
    color: #4c8aff;
}
.flatpickr-day.selected,
.flatpickr-day.selected:hover {
    background: #4c8aff;
    border-color: #4c8aff;
    color: #fff;
}
.flatpickr-day.today {
    border-color: #4c8aff;
    color: #4c8aff;
}
.flatpickr-day.today:hover {
    background: #4c8aff;
    color: #fff;
}
.flatpickr-day.flatpickr-disabled,
.flatpickr-day.flatpickr-disabled:hover {
    color: #d1d5db;
}
.flatpickr-day.prevMonthDay,
.flatpickr-day.nextMonthDay {
    color: #d1d5db;
}

.flatpickr-current-month .numInput.cur-year {
    pointer-events: none;
    border: 0;
    background: transparent;
    -moz-appearance: textfield;
}

.flatpickr-current-month .arrowUp,
.flatpickr-current-month .arrowDown {
    display: none;
}

/* Mobile: center calendar */
@media (max-width: 640px) {
    .flatpickr-calendar.open {
        width: calc(100vw - 16px) !important;
        max-width: 320px;
        left: 50% !important;
        right: auto !important;
        margin-left: -160px;
        transform: none !important;
        animation: none !important;
    }
}

@media (max-width: 336px) {
    .flatpickr-calendar.open {
        left: 8px !important;
        margin-left: 0;
    }
}
