/*
Theme Name: Drop-top Child Theme
Theme URI: https://drop-top.themerex.net/
Description: Drop-top is a Premium WordPress theme that has built-in support for popular Page Builders, slider with swipe gestures, and is SEO- and Retina-ready. The unique system of inheritance and override options allows setting up individual parameters for different sections of your site and supported plugins.
Author: ThemeREX
Author URI: https://themerex.net/
Version: 1.5.0
Tested up to: 6.7
Requires at least: 5.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Tags: blog, e-commerce, portfolio, grid-layout, one-column, two-columns, three-columns, four-columns, left-sidebar, right-sidebar, custom-background, custom-colors, custom-header, custom-logo, custom-menu, editor-style, featured-image-header, featured-images, flexible-header, footer-widgets, full-width-template, microformats, post-formats, sticky-post, theme-options, threaded-comments, translation-ready, block-styles, wide-blocks
Text Domain: drop-top
Template: drop-top
*/


/* =Child-Theme customization starts here
------------------------------------------------------------ */

/* ===== Global Color Override — Logo Blue ===== */
/* Replace parent theme orange (#FF8615) with Drive EV blue.
   Target light-background schemes only — dark/extra schemes keep their
   own palette so the footer and dark sections remain readable. */
.scheme_default,
body.scheme_default,
.scheme_light,
body.scheme_light,
.scheme_dealer,
body.scheme_dealer,
.scheme_dealer-light,
body.scheme_dealer-light,
.scheme_red,
body.scheme_red,
.scheme_red-light,
body.scheme_red-light {
    --theme-color-text_link: #00337a;
    --theme-color-text_hover: #002255;
    --theme-color-text_link2: #00337a;
    --theme-color-text_hover2: #002255;
    --theme-color-text_link3: #00337a;
    --theme-color-text_hover3: #002255;
    --theme-color-alter_link: #00337a;
    --theme-color-alter_hover: #002255;
    --theme-color-alter_link2: #00337a;
    --theme-color-alter_hover2: #002255;
    --theme-color-alter_link3: #00337a;
    --theme-color-alter_hover3: #002255;
    --theme-color-extra_link: #00337a;
    --theme-color-extra_hover: #002255;
    --theme-color-extra_link2: #00337a;
    --theme-color-extra_hover2: #002255;
    --theme-color-extra_link3: #00337a;
    --theme-color-extra_hover3: #002255;
    --theme-color-inverse_link: #ffffff;
    --theme-color-inverse_hover: #ffffff;

    /* Background & border — neutral white/grey instead of warm cream */
    --theme-color-bg_color: #ffffff;
    --theme-color-bd_color: #e8e8e8;
    --theme-color-alter_bg_color: #f5f5f3;
    --theme-color-alter_bg_hover: #ebebeb;
    --theme-color-alter_bd_color: #e8e8e8;
    --theme-color-alter_bd_hover: #d5d5d5;

    /* Text — neutral grey instead of warm grey */
    --theme-color-text: #666666;
    --theme-color-text_light: #999999;
    --theme-color-text_dark: #1d1d1d;

    /* Background rgba variants (white-based) */
    --theme-color-bg_color_0: rgba(255, 255, 255, 0);
    --theme-color-bg_color_02: rgba(255, 255, 255, 0.2);
    --theme-color-bg_color_07: rgba(255, 255, 255, 0.7);
    --theme-color-bg_color_08: rgba(255, 255, 255, 0.8);
    --theme-color-bg_color_09: rgba(255, 255, 255, 0.9);

    /* Alter background rgba variants */
    --theme-color-alter_bg_color_00: rgba(245, 245, 243, 0);
    --theme-color-alter_bg_color_02: rgba(245, 245, 243, 0.2);
    --theme-color-alter_bg_color_04: rgba(245, 245, 243, 0.4);
    --theme-color-alter_bg_color_07: rgba(245, 245, 243, 0.7);

    /* Alter border rgba */
    --theme-color-alter_bd_color_02: rgba(232, 232, 232, 0.2);

    /* Text link rgba variants — blue instead of orange */
    --theme-color-text_link_007: rgba(0, 51, 122, 0.07);
    --theme-color-text_link_02: rgba(0, 51, 122, 0.2);
    --theme-color-text_link_03: rgba(0, 51, 122, 0.3);
    --theme-color-text_link_04: rgba(0, 51, 122, 0.4);
    --theme-color-text_link_07: rgba(0, 51, 122, 0.7);

    /* Alter link rgba variants — blue instead of orange */
    --theme-color-alter_link_02: rgba(0, 51, 122, 0.2);
    --theme-color-alter_link_03: rgba(0, 51, 122, 0.3);
    --theme-color-alter_link_07: rgba(0, 51, 122, 0.7);

    /* Extra link rgba variants */
    --theme-color-extra_link_02: rgba(0, 51, 122, 0.2);
    --theme-color-extra_link_07: rgba(0, 51, 122, 0.7);

    /* Text hover rgba variants */
    --theme-color-text_hover_02: rgba(0, 34, 85, 0.2);
    --theme-color-text_hover_07: rgba(0, 34, 85, 0.7);

    /* Text dark rgba variants */
    --theme-color-text_dark_003: rgba(29, 29, 29, 0.03);
    --theme-color-text_dark_005: rgba(29, 29, 29, 0.05);
    --theme-color-text_dark_008: rgba(29, 29, 29, 0.08);
    --theme-color-text_dark_015: rgba(29, 29, 29, 0.15);
    --theme-color-text_dark_02: rgba(29, 29, 29, 0.2);
    --theme-color-text_dark_03: rgba(29, 29, 29, 0.3);
    --theme-color-text_dark_05: rgba(29, 29, 29, 0.5);
    --theme-color-text_dark_07: rgba(29, 29, 29, 0.7);
    --theme-color-text_dark_08: rgba(29, 29, 29, 0.8);

    /* Alter dark rgba variants */
    --theme-color-alter_dark_015: rgba(29, 29, 29, 0.15);
    --theme-color-alter_dark_02: rgba(29, 29, 29, 0.2);
    --theme-color-alter_dark_05: rgba(29, 29, 29, 0.5);
    --theme-color-alter_dark_08: rgba(29, 29, 29, 0.8);

    /* Blend colors — slightly shifted hue for gradients/overlays */
    --theme-color-text_link_blend: #073887;
    --theme-color-alter_link_blend: #073887;
    --theme-color-text_dark_blend: #222222;
}

body {
    --wp--preset--color--text-link: #00337a;
    --wp--preset--color--text-hover: #002255;
}

/* Services We Offer section - padding */
[data-id="1e5eecc"] {
    padding-top: 60px;
    padding-bottom: 60px;
}

/* Service cards - white background */
[data-id="1e5eecc"] .sc_icons_item {
    background-color: #ffffff !important;
}

/* Service icons - replace font icons with outline SVGs */
[data-id="1e5eecc"] .sc_icons_icon::before,
[data-id="1e5eecc"] .sc_icons_icon span::before {
    content: none;
}
[data-id="1e5eecc"] .sc_icons_icon span {
    display: none;
}
[data-id="1e5eecc"] .sc_icons_icon {
    width: 64px;
    height: 64px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}
/* Insurance icon */
[data-id="1e5eecc"] .sc_icons_icon.icon-shield {
    background-image: url('/wp-content/themes/drop-top-child/images/insurance-icon.png');
}
/* Charging icon */
[data-id="1e5eecc"] .sc_icons_icon.icon-flash {
    background-image: url('/wp-content/themes/drop-top-child/images/charging-icon.png');
}
/* Finance icon */
[data-id="1e5eecc"] .sc_icons_icon.icon-dollar {
    background-image: url('/wp-content/themes/drop-top-child/images/finance-icon.png');
}
/* Car Service icon */
[data-id="1e5eecc"] .sc_icons_icon.icon-wrench {
    background-image: url('/wp-content/themes/drop-top-child/images/service-icon.png');
}

[data-id="1e5eecc"] a,
[data-id="1e5eecc"] a:hover,
[data-id="1e5eecc"] .sc_icons_icon,
[data-id="1e5eecc"] .sc_icons_item:hover .sc_icons_icon,
[data-id="1e5eecc"] .sc_button,
[data-id="1e5eecc"] .sc_title_subtitle,
[data-id="1e5eecc"] .sc_icons_item_title a,
[data-id="1e5eecc"] .sc_icons_item_link,
[data-id="1e5eecc"] .sc_icons_item_readmore {
    color: #00337a !important;
}
/* ===== Unified Button Style ===== */
/* All homepage CTA buttons: blue bg, white text, Barlow Condensed, uppercase */
/* Targets: View All Services, Load More, Learn More, Submit */

/* View all services button - default: white bg, blue border/text */
[data-id="1e5eecc"] .sc_button.sc_button_default {
    color: #00337a !important;
    background-color: #ffffff !important;
    border: 2px solid #00337a !important;
    padding: 10px 30px !important;
    font-family: "Barlow Condensed", sans-serif !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease !important;
}
[data-id="1e5eecc"] .sc_button.sc_button_default .sc_button_title,
[data-id="1e5eecc"] .sc_button.sc_button_default .sc_button_text {
    color: #00337a !important;
    font-family: "Barlow Condensed", sans-serif !important;
    font-weight: 600 !important;
    letter-spacing: 1px !important;
    text-transform: uppercase !important;
}
/* View all services button - hover: blue bg, white text */
[data-id="1e5eecc"] .sc_button.sc_button_default:hover {
    background-color: #00337a !important;
    border-color: #00337a !important;
    color: #ffffff !important;
}
[data-id="1e5eecc"] .sc_button.sc_button_default:hover .sc_button_title,
[data-id="1e5eecc"] .sc_button.sc_button_default:hover .sc_button_text {
    color: #ffffff !important;
}

/* Recommendation section - padding */
[data-id="11a7d8d"] {
    padding-top: 40px;
    padding-bottom: 60px;
}

[data-id="11a7d8d"] a,
[data-id="11a7d8d"] a:hover,
[data-id="11a7d8d"] .sc_cars_item_price,
[data-id="11a7d8d"] .sc_cars_item_info a,
[data-id="11a7d8d"] .sc_cars_item_info a:hover,
[data-id="11a7d8d"] .post_featured .mask,
[data-id="11a7d8d"] .sc_title_subtitle {
    color: #00337a !important;
}
/* Sale label - white text on blue bg */
[data-id="11a7d8d"] .sc_cars_item_labels a {
    color: #ffffff !important;
    background-color: #00337a !important;
}
/* Load more button - default: white bg, blue border/text */
[data-id="11a7d8d"] .nav-links-more .nav-links {
    color: #00337a !important;
    background-color: #ffffff !important;
    border: 2px solid #00337a !important;
    padding: 10px 30px !important;
    font-family: "Barlow Condensed", sans-serif !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease !important;
}
[data-id="11a7d8d"] .nav-links-more .nav-links span {
    color: #00337a !important;
    font-family: inherit !important;
    font-weight: inherit !important;
    letter-spacing: inherit !important;
}
/* Load more button - hover: blue bg, white text */
[data-id="11a7d8d"] .nav-links-more .nav-links:hover {
    background-color: #00337a !important;
    border-color: #00337a !important;
    color: #ffffff !important;
}
[data-id="11a7d8d"] .nav-links-more .nav-links:hover span {
    color: #ffffff !important;
}

/* Brand logos section - white background, minimal spacing */
[data-id="9bb9a7d"],
.elementor-element-9bb9a7d {
    background-color: #ffffff;
    padding-top: 15px;
    padding-bottom: 15px;
}
[data-id="9bb9a7d"] img {
    filter: brightness(0.5) contrast(1.1);
    opacity: 0.7;
}

/* EV Categories section - top padding */
[data-id="1dbf6ad"] {
    padding-top: 60px;
}

/* EV Category cards - padding and text logo blue */
[data-id="8808b82"] {
    padding-bottom: 60px;
}

[data-id="8870a23"]{
    padding: 10px 55px 10px 55px;
}

[data-id="8808b82"] .elementor-heading-title,
[data-id="8808b82"] a,
[data-id="8808b82"] p,
[data-id="8808b82"] span {
    color: #00337a;
}

/* Section 38aa0777 - text logo blue */
[data-id="38aa0777"] p,
[data-id="38aa0777"] span,
[data-id="38aa0777"] a,
[data-id="38aa0777"] .elementor-text-editor,
[data-id="38aa0777"] .elementor-heading-title {
    color: #00337a;
}

/* Section 4851fc13 - social names hover grey (icons locked by theme !important) */
.sc_layouts_panel_menu [data-id="4851fc13"] .sc_socials.sc_socials_icons_names .socials_wrap .social_item:hover .social_name {
    color: #424242;
}

/* Footer Services dropdown */
.footer-services-dropdown {
    position: absolute;
    bottom: 100%;
    left: 0;
    background: #ffffff;
    list-style: none;
    margin: 0;
    padding: 10px 0;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.2s ease, visibility 0.2s ease;
    z-index: 10;
    min-width: 180px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.footer-services-dropdown .custom_links_list_item {
    padding: 6px 20px;
}

.footer-services-dropdown {
    --theme-color-text_dark: #1d1d1d;
    --theme-color-text: #1d1d1d;
}

.widget_custom_links .footer-services-dropdown > li.custom_links_list_item .custom_links_list_item_link {
    color: #1d1d1d;
    text-decoration: none;
    border-bottom: none;
}

.widget_custom_links .footer-services-dropdown > li.custom_links_list_item .custom_links_list_item_title::after {
    display: none;
}

.widget_custom_links .footer-services-dropdown > li.custom_links_list_item .custom_links_list_item_link:hover,
.widget_custom_links .footer-services-dropdown > li.custom_links_list_item:hover .custom_links_list_item_link {
    color: #00337a;
    margin-left: 0;
}

/* Footer content row — three equal columns */
[data-id="effbad2"] {
    padding-bottom: 60px;
}
[data-id="effbad2"] > .elementor-container,
[data-id="effbad2"] > .elementor-container > .elementor-row {
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 40px;
}
[data-id="effbad2"] .elementor-column {
    flex: 1 !important;
    width: auto !important;
    max-width: none !important;
}

/* About Us column — override JS-set fixed width */
[data-id="dde7476"] {
    width: auto !important;
    max-width: none !important;
    flex-basis: 0 !important;
    flex: 1 !important;
}

/* Footer links - two-column layout */
[data-id="d337dc3"] .custom_links_list {
    columns: 2;
    column-gap: 30px;
    width: 100% !important;
}
[data-id="d337dc3"] .custom_links_list_item {
    break-inside: avoid;
}
[data-id="d337dc3"] .custom_links_list_item_link {
    font-size: 14px;
    padding: 0.2em 0.3em;
}

/* Footer - override dark scheme orange links to match header blue */
.footer_wrap a {
    color: #00337a;
}
.footer_wrap a:hover {
    color: #002255;
}

/* Footer heading - padding and no margin */
[data-id="fdfec5e"] {
    padding-top: 60px;
    padding-bottom: 60px;
    margin: 0;
    width: max-content;
}
[data-id="fdfec5e"] .sc_title {
    margin: 0;
}
[data-id="fdfec5e"] h2 {
    margin: 0;
    white-space: nowrap;
}

/* Footer title alignment fix */
.footer_wrap h2.sc_item_title_tag:not(.sc_align_center) {
    margin-left: -16px;
}

/* Slide-out panel - grey background */
#header-popup.sc_layouts_panel,
#header-popup.sc_layouts_panel .sc_layouts_panel_inner {
    --theme-color-bg_color: #d9d9d9;
    background-color: #d9d9d9;
    --theme-color-text: #232323;
    --theme-color-text_light: #555555;
    color: #232323;
}

/* Slide-out panel - social icons hover logo blue */
#header-popup .sc_socials .social_item a:hover,
#header-popup .sc_socials .social_item a:hover .social_name {
    color: #00337a;
}

/* Section 5a8e62e - padding */
[data-id="5a8e62e"] {
    padding-top: 40px;
    padding-bottom: 60px;
}

/* Homepage - Barlow Condensed and capitalize for all titles */
.home h1,
.home h2,
.home h3,
.home h4,
.home h5,
.home h6,
.home .sc_item_title_text,
.home .sc_item_subtitle,
.home .sc_icons_item_title,
.home .sc_icons_item_title a,
.home .elementor-heading-title,
.home .sc_title_subtitle,
.home .sc_button_title,
.home .drive-ev-section-title,
.home .drive-ev-section-label,
.home .drive-ev-about-title,
.home .drive-ev-about-label,
.home .drive-ev-about-author strong {
    font-family: "Barlow Condensed", sans-serif;
    text-transform: capitalize;
}

/* Footer About Us block */
.drive-ev-about-us {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    text-align: justify;
}

.drive-ev-about-us-heading {
    color: #ffffff;
    font-family: "Barlow Condensed", sans-serif;
    font-size: 18px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0 0 4px;
    font-weight: 600;
}

.drive-ev-about-us-text {
    color: rgba(255, 255, 255, 0.75);
    font-size: 14px;
    line-height: 1.7;
    margin: 0;
}

/* Footer Feedback Form */
.drive-ev-feedback-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 100%;
}

.drive-ev-feedback-form input[type="text"],
.drive-ev-feedback-form input[type="email"],
.drive-ev-feedback-form textarea {
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.4);
    color: #ffffff;
    padding: 8px 0;
    font-size: 14px;
    font-family: inherit;
    outline: none;
    width: 100%;
    box-sizing: border-box;
    transition: border-color 0.2s ease;
}

.drive-ev-feedback-form input[type="text"]:focus,
.drive-ev-feedback-form input[type="email"]:focus,
.drive-ev-feedback-form textarea:focus {
    border-bottom-color: #ffffff;
}

.drive-ev-feedback-form input::placeholder,
.drive-ev-feedback-form textarea::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.drive-ev-feedback-form textarea {
    resize: vertical;
    min-height: 50px;
}

.drive-ev-feedback-form button[type="submit"] {
    background-color: #ffffff;
    color: #00337a;
    border: 2px solid #00337a !important;
    padding: 10px 30px;
    font-size: 14px;
    font-family: "Barlow Condensed", sans-serif;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    align-self: flex-start;
    margin-top: 4px;
}

.drive-ev-feedback-form button[type="submit"]:hover {
    background-color: #00337a;
    border-color: #00337a;
    color: #ffffff;
}

.drive-ev-feedback-form button[type="submit"]:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.drive-ev-feedback-msg {
    font-size: 13px;
    margin-top: 4px;
}

.drive-ev-feedback-msg.success {
    color: #4caf50;
}

.drive-ev-feedback-msg.error {
    color: #ff6b6b;
}

/* About Us page - column d5014ae uniform text size and alignment */
[data-id="d5014ae"] p,
[data-id="d5014ae"] li,
[data-id="d5014ae"] span,
[data-id="d5014ae"] b,
[data-id="d5014ae"] strong {
    font-size: 16px;
    line-height: 1.7;
    color: inherit;
    text-align: left;
}
[data-id="d5014ae"] ol {
    padding-left: 20px;
    margin: 10px 0;
}
[data-id="d5014ae"] ol li {
    margin-bottom: 6px;
    padding-left: 4px;
}
[data-id="d5014ae"] p {
    margin-bottom: 12px;
}
[data-id="d5014ae"] b,
[data-id="d5014ae"] strong {
    font-weight: 700;
}

/* About Us - Founder avatar replacing icon-turbo-1 (widget 93d117e, post 8554) */

/* Hide the font icon character — it lives on the inner span */
[data-id="93d117e"] .sc_icons_icon.icon-turbo-1 span::before {
    content: none;
}
[data-id="93d117e"] .sc_icons_icon.icon-turbo-1 span {
    display: block;
    width: 0;
    height: 0;
}

/* Style the icon wrapper div as a circular avatar */
[data-id="93d117e"] .sc_icons_icon.icon-turbo-1 {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.12);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='rgba(255,255,255,0.7)'%3E%3Cpath d='M12 12c2.7 0 4.8-2.1 4.8-4.8S14.7 2.4 12 2.4 7.2 4.5 7.2 7.2 9.3 12 12 12zm0 2.4c-3.2 0-9.6 1.6-9.6 4.8v2.4h19.2v-2.4c0-3.2-6.4-4.8-9.6-4.8z'/%3E%3C/svg%3E");
    background-size: 55%;
    background-repeat: no-repeat;
    background-position: center;
    border: 2px solid rgba(255, 255, 255, 0.3);
    margin: 0 auto 0 0;
}

/* "A Letter from the Founder" label — injected before the details block */
[data-id="93d117e"] .sc_icons_item_details::before {
    content: 'A Letter from the Founder';
    display: block;
    color: rgba(255, 255, 255, 0.75);
    font-size: 13px;
    font-family: "Barlow Condensed", sans-serif;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 12px;
}

/* About Us page - column cebbb1d vertical center */
[data-id="cebbb1d"].elementor-column {
    display: flex;
    align-items: stretch;
}
[data-id="cebbb1d"] > .elementor-widget-wrap {
    justify-content: center;
    align-items: flex-start;
    display: flex;
    flex-direction: column;
}



/* ===== Single Car Page — Banner (matches FYV page) ===== */
body.single-cpt_cars .page_content_wrap {
    padding-top: 0;
}
.car-single-banner {
    background-color: #00337a;
    padding: 90px 20px;
    text-align: center;
    width: 100vw;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
}
.car-single-banner-title {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 3.167em;
    font-weight: 600;
    font-style: normal;
    line-height: 1em;
    text-transform: uppercase;
    text-decoration: none;
    color: #ffffff;
    margin: 0;
}
.car-single-breadcrumb {
    font-family: 'DM Sans', sans-serif;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 12px;
}
.car-single-breadcrumb a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s ease;
}
.car-single-breadcrumb a:hover {
    color: #ffffff;
}
.car-single-breadcrumb-sep {
    margin: 0 8px;
}

@media (max-width: 767px) {
    .car-single-banner {
        padding: 16px;
    }
    .car-single-banner-title {
        font-size: 2em;
    }
}

/* ===== Single Car Page — layout: white bg, grey cards, #424242 titles ===== */
/* Override CSS variables for the car single page */
body.single-cpt_cars {
    --theme-color-bg_color: #ffffff;
    --theme-color-text_dark: #424242;
    --theme-color-alter_bg_color: #f5f5f3;
    --theme-color-alter_bg_hover: #F4EDDA;
    background-color: #ffffff;
}

/* White page content background */
body.single-cpt_cars .page_content_wrap {
    background-color: #ffffff;
}

/* Card-style background on highlighted sections */
.cars_page .cars_page_section.cars_page_details,
.cars_page .cars_page_section.cars_page_features,
.cars_page .cars_page_section.cars_page_video,
.cars_page .cars_page_section.cars_page_agent {
    background-color: #f5f5f3;
    padding: 1.5em 2em;
    border-radius: 4px;
}

/* Title color */
.cars_page .cars_page_title,
.cars_page .cars_page_section_title,
.cars_page h2,
.cars_page h3,
.cars_page h4,
.cars_page .cars_page_agent_info .cars_page_agent_info_name {
    color: #424242;
}

/* ===== Single Car Page — button hover: white bg, blue border & text ===== */
/* Agent contact form — default (sc_form) button */
.cars_page .cars_page_agent_form .sc_form_field_button button,
.cars_page .cars_page_agent_form .sc_form_form button,
.cars_page .cars_page_agent_form form button {
    color: #ffffff;
    background-color: #00337a;
    border: 2px solid #00337a;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}
.cars_page .cars_page_agent_form .sc_form_field_button button:hover,
.cars_page .cars_page_agent_form .sc_form_form button:hover,
.cars_page .cars_page_agent_form form button:hover {
    color: #00337a;
    background-color: #ffffff;
    border-color: #00337a;
}
/* Agent contact form — Contact Form 7 submit
   The theme JS wraps .wpcf7-submit in a .wpcf7-submit-style span and renders
   the visual button via .submit-style-in (z-index:0, visible bg) while the
   actual input is transparent (z-index:1, visible text only).
   We target .submit-style-in for bg/border and .wpcf7-submit for text color.
   Higher specificity needed because CF7 CSS loads after child theme CSS. */
/* Hover — visual background: white bg, blue border */
.cars_page .cars_page_agent_form .wpcf7 .wpcf7-submit-style:hover .wpcf7-submit + .submit-style-in {
    background-color: #ffffff;
    color: #00337a;
    border: 2px solid #00337a;
}
/* Hover — input text turns blue */
.cars_page .cars_page_agent_form .wpcf7 .wpcf7-submit-style:hover .wpcf7-submit {
    color: #00337a;
}
/* General theme buttons on car page (exclude CF7 submit — it uses .submit-style-in) */
body.single-cpt_cars .page_content_wrap form button:not(.components-button):hover,
body.single-cpt_cars .page_content_wrap input[type="submit"]:not(.wpcf7-submit):hover,
body.single-cpt_cars .page_content_wrap .sc_button_default:hover,
body.single-cpt_cars .page_content_wrap .sc_button:not(.sc_button_simple):not(.sc_button_bordered):not(.sc_button_bg_image):hover,
body.single-cpt_cars .page_content_wrap .theme_button:hover,
body.single-cpt_cars .page_content_wrap .more-link:hover {
    color: #00337a;
    background-color: #ffffff;
    border-color: #00337a;
}
body.single-cpt_cars .page_content_wrap .sc_button:hover .sc_button_title,
body.single-cpt_cars .page_content_wrap form button:hover .sc_button_title {
    color: #00337a;
}
/* Status badges in car title — need nth-child to beat parent specificity */
.cars_page_title .cars_page_status > a:hover,
.cars_page_title .cars_page_status > a:nth-child(n):hover {
    color: #00337a;
    background-color: #ffffff;
    border: 1px solid #00337a;
}
/* Car listing label badges */
.sc_cars_default .sc_cars_item .sc_cars_item_thumb .sc_cars_item_labels > a:hover {
    color: #00337a;
    background-color: #ffffff;
    border: 1px solid #00337a;
}

/* ===== About Us Page — CF7 submit button hover ===== */
/* Default state — blue bg, white text */
.page-template-default .wpcf7 .wpcf7-submit-style .submit-style-in,
.page-template-default .wpcf7 .wpcf7-submit-style .wpcf7-submit + .submit-style-in {
    background-color: #00337a;
    color: #ffffff;
    border: 2px solid #00337a;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}
.page-template-default .wpcf7 .wpcf7-submit-style .wpcf7-submit {
    color: #ffffff;
    transition: color 0.3s ease;
}
/* Hover — white bg, blue text and border */
.page-template-default .wpcf7 .wpcf7-submit-style:hover .wpcf7-submit + .submit-style-in {
    background-color: #ffffff;
    color: #00337a;
    border: 2px solid #00337a;
}
.page-template-default .wpcf7 .wpcf7-submit-style:hover .wpcf7-submit {
    color: #00337a;
}

/* Footer custom links — reduce title font size */
.widget_custom_links ul > li.custom_links_list_item .custom_links_list_item_title {
    font-size: 14px;
}

/* ===== Cars Archive Page — pagination ===== */
.post-type-archive-cpt_cars .nav-links {
    display: flex;
    justify-content: center;
    gap: 6px;
    flex-wrap: wrap;
    padding: 20px 0 40px;
}
.post-type-archive-cpt_cars .nav-links .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    font-family: "Barlow Condensed", sans-serif;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    border: 2px solid transparent;
    border-radius: 4px;
    color: #00337a;
    background: transparent;
    transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}
.post-type-archive-cpt_cars .nav-links .page-numbers.current {
    background-color: #00337a;
    color: #ffffff;
    border-color: #00337a;
}
.post-type-archive-cpt_cars .nav-links a.page-numbers:hover {
    border-color: #00337a;
    background-color: rgba(0, 51, 122, 0.08);
    color: #00337a;
}
.post-type-archive-cpt_cars .nav-links .page-numbers.dots {
    border: none;
    background: none;
    cursor: default;
    color: #999999;
}
/* Pagination arrows — center the icon inside the box */
.post-type-archive-cpt_cars .nav-links .page-numbers.prev,
.post-type-archive-cpt_cars .nav-links .page-numbers.next,
.post-type-archive-cpt_cars .nav-links .page-numbers.first,
.post-type-archive-cpt_cars .nav-links .page-numbers.last {
    position: relative;
}
.post-type-archive-cpt_cars .nav-links .page-numbers.prev:before,
.post-type-archive-cpt_cars .nav-links .page-numbers.next:before,
.post-type-archive-cpt_cars .nav-links .page-numbers.first:before,
.post-type-archive-cpt_cars .nav-links .page-numbers.last:before {
    top: 50%;
    transform: translateY(-50%);
    line-height: 1;
}

/* ===== Cars Archive Page — blue banner ===== */
body.post-type-archive-cpt_cars .page_content_wrap {
    padding-top: 0;
}
.cars-archive-banner {
    background-color: #00337a;
    padding: 90px 20px;
    text-align: center;
    width: 100vw;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    margin-bottom: 0;
}

/* Cars archive — compare instruction bar */
.cars-archive-compare-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 20px 0;
    clear: both;
}
.cars-archive-compare-text {
    font-family: 'DM Sans', sans-serif;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.7;
    color: var(--theme-color-text, #666666);
    margin: 0;
}
.cars-archive-compare-btn {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    padding: 10px 28px;
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    text-decoration: none;
    color: #ffffff;
    background-color: #00337a;
    border: 2px solid #00337a;
    border-radius: 4px;
    transition: background-color 0.3s ease, color 0.3s ease;
}
.cars-archive-compare-btn:hover {
    color: #00337a;
    background-color: #ffffff;
}

/* Back button on compare results page */
.cars-archive-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 28px;
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    text-decoration: none;
    color: #00337a;
    background-color: #ffffff;
    border: 2px solid #00337a;
    border-radius: 4px;
    transition: background-color 0.3s ease, color 0.3s ease;
}
.cars-archive-back-btn:hover {
    color: #ffffff;
    background-color: #00337a;
}
.cars-archive-banner-title {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 3.167em;
    font-weight: 600;
    font-style: normal;
    line-height: 1em;
    text-transform: uppercase;
    text-decoration: none;
    color: #ffffff;
    margin: 0;
}
.cars-archive-breadcrumb {
    font-family: 'DM Sans', sans-serif;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 12px;
}
.cars-archive-breadcrumb a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s ease;
}
.cars-archive-breadcrumb a:hover {
    color: #ffffff;
}
.cars-archive-breadcrumb-sep {
    margin: 0 8px;
}

/* Cars archive — hide Sale/Rent labels and price overlay on thumbnails */
.post-type-archive-cpt_cars .sc_cars_default .sc_cars_item .sc_cars_item_thumb .sc_cars_item_labels,
.post-type-archive-cpt_cars .sc_cars_default .sc_cars_item .sc_cars_item_thumb .sc_cars_item_price {
    display: none;
}

/* Cars archive — make info section flex column so Compare button sits at the bottom */
.post-type-archive-cpt_cars .sc_cars_default .sc_cars_item .sc_cars_item_info {
    display: flex;
    flex-direction: column;
}
.post-type-archive-cpt_cars .sc_cars_default .sc_cars_item .sc_cars_item_info .sc_cars_item_footer {
    margin-top: auto;
}

/* Cars archive — compare icon → "Compare" button */
.post-type-archive-cpt_cars .sc_cars_default .sc_cars_item .sc_cars_item_info .sc_cars_item_compare {
    position: static;
    order: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin-top: 14px;
    padding: 10px 20px;
    font-family: "Barlow Condensed", sans-serif;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    color: #00337a;
    background-color: #ffffff;
    border: 2px solid #00337a;
    border-radius: 4px;
    cursor: pointer;
    box-sizing: border-box;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}
/* Hide the fontello icon */
.post-type-archive-cpt_cars .sc_cars_default .sc_cars_item .sc_cars_item_info .sc_cars_item_compare:before {
    content: none;
}
/* Show "ADD TO COMPARE" text */
.post-type-archive-cpt_cars .sc_cars_default .sc_cars_item .sc_cars_item_info .sc_cars_item_compare:after {
    content: 'ADD TO COMPARE';
}
/* Hover state */
.post-type-archive-cpt_cars .sc_cars_default .sc_cars_item .sc_cars_item_info .sc_cars_item_compare:hover {
    background-color: #00337a;
    color: #ffffff;
    border-color: #00337a;
}
/* Active/in-compare state — solid blue bg, no hover change */
.post-type-archive-cpt_cars .sc_cars_default .sc_cars_item .sc_cars_item_info .sc_cars_item_compare.in_compare_list,
.post-type-archive-cpt_cars .sc_cars_default .sc_cars_item .sc_cars_item_info .sc_cars_item_compare.in_compare_list:hover {
    background-color: #00337a;
    color: #ffffff;
    border-color: #00337a;
    cursor: default;
}
.post-type-archive-cpt_cars .sc_cars_default .sc_cars_item .sc_cars_item_info .sc_cars_item_compare.in_compare_list:after {
    content: 'ADDED TO COMPARE';
}

/* Cars archive sidebar — hide all default widgets except banner */
.post-type-archive-cpt_cars .sidebar .widget {
    display: none;
}
.post-type-archive-cpt_cars .sidebar .widget_banner {
    display: block;
}

/* ===== Cars Archive Sidebar — EV Type List ===== */
.drive-ev-sidebar-ev-types {
    margin-bottom: 30px;
    padding: 20px;
}
.drive-ev-sidebar-ev-types-heading {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 20px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #424242;
    margin: 0 0 16px;
}
.drive-ev-sidebar-ev-types-list {
    list-style: disc;
    margin: 0;
    padding: 0 0 0 20px;
}
.drive-ev-sidebar-ev-types-list li {
    padding: 6px 0;
    color: #424242;
}
.drive-ev-sidebar-ev-types-list a {
    text-decoration: none;
    color: #424242;
    font-family: 'DM Sans', sans-serif;
    font-size: 15px;
    font-weight: 500;
    transition: color 0.25s ease;
}
.drive-ev-sidebar-ev-types-list a:hover {
    color: #00337a;
}
.drive-ev-sidebar-ev-types-list li.active a {
    color: #00337a;
    font-weight: 600;
}

@media (max-width: 767px) {
    .cars-archive-banner {
        padding: 16px;
    }
    .cars-archive-banner-title {
        font-size: 2em;
    }
    .cars-archive-compare-bar {
        flex-direction: column;
        text-align: center;
        gap: 12px;
        padding: 16px 15px;
    }
}