/* Theme Name: Ireca Child Theme
Theme URI: https://themeforest.net/user/ovatheme/portfolio
Description: This is child theme of ireca
Author: Ovatheme
Author URI: https://themeforest.net/user/ovatheme
Template: ireca
Version: 1.0.0
Tags: translation-ready, left-sidebar, right-sidebar
Text Domain:  ireca-child
*/

#scrollUp {
    display: none !important;
}
/* ==========================================================================
   FORCE HIDE GOOGLE RECAPTCHA BADGE COMPLETELY (ALL SCREENS)
   ========================================================================== */
.grecaptcha-badge {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
    transform: scale(0) !important;
    width: 0 !important;
    height: 0 !important;
}

.ovamenu_shrink.active_fixed {
    box-shadow: none !important;
}
/* Logo only — desktop + mobile */
.navbar-brand.desktop img,
.navbar-brand.mobile img {
    height: 50px !important;
    width: auto !important;
    padding: 0 !important;
}
.ovatheme_header_default nav.navbar li>a {
    padding: 25px 15px !important;
}

/* Apply a solid grey border to the Select2 dropdown boxes */
.wrap_content .s_field .select2-container--default .select2-selection--single {
    border: 1px solid #cccccc !important;
    border-radius: 4px !important; /* Adjust or remove if you prefer completely sharp corners */
    height: 40px !important;       /* Ensures vertical symmetry across elements */
    display: flex !important;
    align-items: center !important;
}

/* Fix alignment for the Select2 internal text and arrow indicator */
.wrap_content .s_field .select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 40px !important;
    padding-left: 12px !important;
}
.wrap_content .s_field .select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 38px !important;
}

/* Apply the exact same solid grey border to the Pick-up and Drop-off date input fields */
.wrap_content .s_field .content input[type="text"].ovacrs_datetimepicker {
    border: 1px solid #cccccc !important;
    border-radius: 4px !important;
    height: 40px !important;
    padding: 0 12px !important;
    outline: none !important;
}

/* ==========================================================================
   BossCar Modernized Forminator Contact Form Style (image_fc7530.png)
   ========================================================================== */

/* 1. Hide default form labels and character counters to use placeholders instead */
#forminator-module-3418 .forminator-label,
#forminator-module-3418 .forminator-description {
    display: none !important;
}

/* 2. Style the text inputs and textarea with a sleek dashed border */
#forminator-module-3418 .forminator-input,
#forminator-module-3418 .forminator-textarea {
    border: 1px dashed #cccccc !important;
    background-color: #ffffff !important;
    box-shadow: none !important;
    border-radius: 4px !important;
    padding: 16px 20px !important;
    height: auto !important;
    color: #333333 !important;
    font-size: 15px !important;
    transition: border-color 0.3s ease, box-shadow 0.3s ease !important;
}

/* 3. Adjust textarea height */
#forminator-module-3418 .forminator-textarea {
    min-height: 160px !important;
}

/* 4. Input Focus Aesthetic */
#forminator-module-3418 .forminator-input:focus,
#forminator-module-3418 .forminator-textarea:focus {
    border-color: #f19e38 !important; /* Subtle brand orange focus hint */
    border-style: solid !important;
    outline: none !important;
}

/* 5. Custom Placeholder Text Color Styling */
#forminator-module-3418 .forminator-input::placeholder,
#forminator-module-3418 .forminator-textarea::placeholder {
    color: #999999 !important;
    font-weight: 400;
}

/* 6. Center and Clean Up the Submit Row Grid */
#forminator-module-3418 .forminator-row-last {
    display: flex !important;
    justify-content: center !important;
    margin-top: 30px !important;
    background: transparent !important;
}

#forminator-module-3418 .forminator-row-last .forminator-col {
    width: auto !important;
    flex: none !important;
}

/* 7. Brand-Orange Centered Submit Button Layout */
#forminator-module-3418 .forminator-button-submit {
    background-color: #f19e38 !important; /* Dynamic brand orange accent */
    color: #ffffff !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    letter-spacing: 1px !important;
    padding: 14px 70px !important;
    border-radius: 4px !important;
    border: none !important;
    text-transform: uppercase !important;
    cursor: pointer !important;
    transition: background-color 0.25s ease, transform 0.1s ease !important;
    box-shadow: none !important;
}

#forminator-module-3418 .forminator-button-submit:hover {
    background-color: #d98526 !important; /* Smooth dark orange toggle on hover */
}

#forminator-module-3418 .forminator-button-submit:active {
    transform: scale(0.98);
}

/* Custom button */
/* ==========================================================================
   BossCar Custom CTA Button Style (.contact-us-button)
   ========================================================================== */

/* Target the core anchor element inside your custom class wrapper */
.contact-us-button .elementor-button {
    background-color: #f19e38 !important; /* Premium brand orange color */
    color: #ffffff !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    letter-spacing: 1px !important;
    text-transform: uppercase !important;
    padding: 14px 40px !important; /* Balanced structural spacing */
    border-radius: 4px !important;
    border: none !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: background-color 0.25s ease, transform 0.1s ease, box-shadow 0.25s ease !important;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05) !important;
    text-decoration: none !important;
}

/* Smooth transition state when a customer hovers over the CTA */
.contact-us-button .elementor-button:hover {
    background-color: #d98526 !important; /* Identical dark orange matching the form submit hover state */
    box-shadow: 0 6px 12px rgba(217, 133, 38, 0.2) !important; /* Soft premium glow */
    color: #ffffff !important;
}

/* Tactile press response effect */
.contact-us-button .elementor-button:active {
    transform: scale(0.98) !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
}

/* Ensure inner text wrappers inherit structural rules clean and flat */
.contact-us-button .elementor-button-content-wrapper {
    display: inline-block !important;
    line-height: 1 !important;
}

/* ==========================================================================
   BossCar FAQ Sidebar Custom Floating Card Style (image_0bf7d7.png)
   ========================================================================= */

/* 1. Structural Card Box Wrapper */
.sidebar .elementor-widget-wrap {
    background: #ffffff !important;
    border: 1px solid #e5e5e5 !important;
    padding: 5px 15px !important;
    border-radius: 4px !important;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.05) !important;
    
    /* Pulls the box upward to neatly overlap the hero banner image section */
    position: relative !important;
    z-index: 99 !important;
    transition: all 0.3s ease !important;
}

/* 2. Style the Title Component (.find-answer) */
.sidebar .find-answer .title {
    font-size: 22px !important;
    font-weight: 700 !important;
    color: #111111 !important;
    padding-bottom: 0 !important;
    text-transform: none !important;
    letter-spacing: -0.5px !important;
}

/* Strip out old theme default underline borders on the heading widget */
.sidebar .find-answer .ovacrs_heading1.border_yes::after,
.sidebar .find-answer .ovacrs_heading1 .title::after,
.sidebar .find-answer .ovacrs_heading1 .title span::after {
    display: none !important;
    content: none !important;
}

/* 3. Clean up Forminator Elements Inside the Card */
.sidebar #forminator-module-3418 .forminator-label,
.sidebar #forminator-module-3418 .forminator-description {
    display: none !important; /* Hides labels to accurately use placeholders */
}

.sidebar #forminator-module-3418 .forminator-row {
    margin-bottom: 18px !important;
}

.sidebar #forminator-module-3418 .forminator-input,
.sidebar #forminator-module-3418 .forminator-textarea {
    border: 1px dashed #cccccc !important;
    background-color: #ffffff !important;
    box-shadow: none !important;
    border-radius: 4px !important;
    padding: 14px 18px !important;
    color: #333333 !important;
    font-size: 14px !important;
    height: auto !important;
}

.sidebar #forminator-module-3418 .forminator-textarea {
    min-height: 140px !important;
}

/* 4. Center-Aligned Submit Action Elements */
.sidebar #forminator-module-3418 .forminator-row-last {
    display: flex !important;
    justify-content: center !important;
    margin-top: 25px !important;
    background: transparent !important;
}

.sidebar #forminator-module-3418 .forminator-button-submit {
    background-color: #f19e38 !important; /* Premium Brand Orange */
    color: #ffffff !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    letter-spacing: 1px !important;
    padding: 14px 65px !important;
    border-radius: 4px !important;
    border: none !important;
    text-transform: uppercase !important;
    width: auto !important;
    min-width: 180px;
    cursor: pointer !important;
    transition: background-color 0.2s ease, transform 0.1s ease !important;
}

.sidebar #forminator-module-3418 .forminator-button-submit:hover {
    background-color: #d98526 !important;
}

.sidebar #forminator-module-3418 .forminator-button-submit:active {
    transform: scale(0.98);
}


/* ==========================================================================
   BossCar Custom CSS: Hide Specific Blog Sidebar Widgets
   ========================================================================= */

/* 1. Hide Search Bar Block */
#block-2.widget_search {
    display: none !important;
}

/* 2. Hide Recent Posts Block */
#block-3 {
    display: none !important;
}

/* 3. Hide Recent Comments Block */
#block-4 {
    display: none !important;
}

/* 4. Hide Archives Block */
#block-5 {
    display: none !important;
}

/* 5. Hide Block-styled Categories */
#block-6 {
    display: none !important;
}

/* 6. Hide Traditional-styled Categories Menu */
#categories-1.widget_categories {
    display: none !important;
}
/* Hide the traditional theme search form widget */
.sidebar .search-form,
.widget-area .search-form {
    display: none !important;
}
/* Hide the comment */
.post-comment {
    display: none !important;
}

/* ==========================================================================
   BossCar Fix: Symmetrical Mini-Cart Dropdown Buttons
   ========================================================================= */

/* 1. Turn the button container into a flex row alignment */
.ireca_minicart .woocommerce-mini-cart__buttons.buttons {
    display: flex !important;
    justify-content: space-between !important;
    gap: 12px !important; /* Balanced spacing between the buttons */
    margin-top: 15px !important;
    padding: 0 !important;
}

/* 2. Standardize both buttons to be perfectly uniform in size and text centering */
.ireca_minicart .woocommerce-mini-cart__buttons.buttons a.button {
    display: inline-flex !important;
    align-items: center !important;    /* Vertically centers text if it wraps */
    justify-content: center !important;  /* Horizontally centers text */
    flex: 1 !important;                 /* Forces both buttons to have identical width */
    height: 50px !important;            /* Forces both buttons to have identical height */
    padding: 2px 8px !important;        /* Prevents text from clipping the edges */
    text-align: center !important;
    line-height: 1.3 !important;        /* Keeps multi-line spacing clean */
    font-size: 12px !important;         /* Sharp, readable sizing for the restricted space */
    font-weight: 700 !important;
    text-transform: uppercase !important;
    box-sizing: border-box !important;
}
.wc-block-cart-items.wp-block-woocommerce-cart-line-items-block tr {
    border-color: #ffffff !important;
}

/* ==========================================================================
   BossCar Cart Page Custom Layout & UI Fixes
   ========================================================================= */

/* -------------------------------------------------------------------------
   1. Fix Promo Code Input Placeholder / Label Overlap
   ------------------------------------------------------------------------- */
.wc-block-components-totals-coupon__input {
    position: relative !important;
    margin-top: 12px !important;
}

/* Forces the label to sit cleanly on the upper border line out of the text's way */
.wc-block-components-totals-coupon__input label,
.wc-block-components-text-input label {
    position: absolute !important;
    top: -10px !important;
    left: 12px !important;
    font-size: 12px !important;
    background-color: #ffffff !important;
    padding: 0 6px !important;
    color: #444444 !important;
    transform: none !important;
    opacity: 1 !important;
    z-index: 2 !important;
}

/* Ensure the text input itself has clean padding inside */
#wc-block-components-totals-coupon__input-coupon {
    padding: 12px 10px !important;
    height: auto !important;
}

/* -------------------------------------------------------------------------
   2. Fix Submit Button Text Color on Hover (Keep White)
   ------------------------------------------------------------------------- */
.wc-block-cart__submit-button:hover,
.wc-block-cart__submit-button:hover .wc-block-components-button__text {
    color: #ffffff !important;
    text-decoration: none !important;
}

/* -------------------------------------------------------------------------
   3. Hide the Plus (+) and Minus (−) Quantity Selector Buttons
   ------------------------------------------------------------------------- */
.wc-block-components-quantity-selector__button--minus,
.wc-block-components-quantity-selector__button--plus {
    display: none !important;
}

/* Adjust the input field width to sit cleanly alone */
.wc-block-components-quantity-selector {
    border: 1px solid #ccc !important;
    max-width: 60px !important;
    border-radius: 4px !important;
}

.wc-block-components-quantity-selector__input {
    width: 100% !important;
    text-align: center !important;
    padding: 6px 0 !important;
}
/* Disable all pointer interactions and editing on the quantity input field */
.wc-block-components-quantity-selector__input {
    pointer-events: none !important; /* Blocks mouse clicks, scrolling adjustments, and focus clicks */
    background-color: #f5f5f5 !important; /* Grays out the box visually to show it's disabled */
    color: #777777 !important; /* Softens text color */
    cursor: not-allowed !important; /* Displays a lockout icon when hovered */
}
/* ==========================================================================
   BossCar Fix: Match Promo Code Button and Input Heights Perfectly
   ========================================================================= */

/* 1. Prevent the flex container from stretching items vertically */
.wc-block-components-totals-coupon__form {
    align-items: flex-end !important; /* Aligns baseline elements cleanly */
}

/* 2. Unify the button height and align its internal text */
button.wc-block-components-totals-coupon__button {
    height: 47px !important;        /* Matches the height threshold of the text box */
    padding: 0 20px !important;     /* Removes heavy vertical padding, keeps side padding */
    margin: 0 !important;           /* Eliminates conflicting outer margins */
    display: inline-flex !important;
    align-items: center !important;  /* Vertically centers the "Appliquer" text */
    justify-content: center !important;
}

/* 3. Ensure the input box retains a matching clean profile */
#wc-block-components-totals-coupon__input-coupon {
    height: 47px !important;        /* Strict uniform sizing alignment */
    box-sizing: border-box !important;
}

/* ==========================================================================
   BossCar Checkout Page Layout & Responsiveness Overhaul
   ========================================================================= */

/* 1. Fix Car Rental Metadata Text Fragmentation */
.wc-block-components-product-details {
    display: flex !important;
    flex-direction: column !important; /* Stack each item vertically so words don't break */
    gap: 6px !important;
    margin-top: 8px !important;
    font-size: 13px !important;
    line-height: 1.4 !important;
}

/* Hide the ugly, lingering separator slashes */
.wc-block-components-product-details span[aria-hidden="true"] {
    display: none !important;
}

/* Format the Metadata Labels & Values nicely */
.wc-block-components-product-details__name {
    font-weight: 700 !important;
    color: #444444 !important;
    display: inline-block !important;
    margin-right: 4px !important;
}

.wc-block-components-product-details__value {
    font-weight: 500 !important;
    color: #111111 !important;
}

/* 2. Fix Layout Squishing inside the Item Row */
.wc-block-components-order-summary-item {
    display: flex !important;
    flex-wrap: wrap !important; /* Prevents text colliding with image */
    align-items: flex-start !important;
    gap: 12px !important;
    padding: 15px 0 !important;
}

.wc-block-components-order-summary-item__image {
    flex: 0 0 48px !important;
    max-width: 48px !important;
}

.wc-block-components-order-summary-item__description {
    flex: 1 !important;
    min-width: 160px !important; /* Prevents shrinking past a healthy look */
}

/* 3. Elevate Product Name Legibility */
.wc-block-components-product-name {
    font-size: 15px !important;
    font-weight: 700 !important;
    color: #222222 !important;
    margin-bottom: 4px !important;
    line-height: 1.3 !important;
}

/* 4. Smooth Checkout Global Block Responsiveness */
@media (max-width: 992px) {
    /* Stacks columns vertically on smaller screens and tablets */
    .wc-block-checkout, 
    .wp-block-woocommerce-checkout {
        flex-direction: column !important;
    }
    
    .wp-block-woocommerce-checkout-order-summary-block {
        width: 100% !important;
        max-width: 100% !important;
        margin-top: 30px !important;
    }
}

.wc-blocks-components-select .wc-blocks-components-select__container {
    margin-top: 10px;
}

/* Fixing Bokking Form */
.select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 25px;
}
.ovacrs_contact_tab{
	display: none !important;
}

/* ==========================================================================
   BossCar Booking Form Fix: Restrain Select2 Full-Width Dropdown Overflow
   ========================================================================= */

/* 1. Target ONLY the absolute-positioned floating options container overlay */
body > .select2-container--open,
.select2-container.select2-container--open[style*="position: absolute"] {
    width: auto !important;
    min-width: 255px !important;  /* Matches the inline script configuration */
    max-width: 280px !important;  /* Locks it cleanly to the visual column boundaries */
}

/* 2. Style the inner dropdown options container for a clean look */
.select2-container--open .select2-dropdown {
    width: 100% !important;
    min-width: 100% !important;
    background-color: #ffffff !important;
    border: 1px solid #cccccc !important;
    border-radius: 4px !important;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1) !important;
    z-index: 99999 !important; /* Ensures options sit on top of the Extra Service panel */
}

/* 3. Ensure option padding looks uniform */
.select2-results__option {
    padding: 8px 14px !important;
    font-size: 14px !important;
    color: #333333 !important;
}

/* ==========================================================================
   Center Icon Boxes Vertically Next to Text Content
   ========================================================================= */

/* 1. Turn the main parent wrapper into a flexible row container */
.ovacrs_service_full .content .wrap_service .item {
    display: flex !important;
    align-items: center !important; /* Centers icon box perfectly against total text height */
    justify-content: flex-start !important;
}

/* 2. Fix the icon structure, dropping table displays */
.ovacrs_service_full .content .wrap_service .item .icon {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important; /* Prevents the box from shrinking or distorting */
    
    /* Keep your explicit dimensions intact */
    width: 100px;
    height: 100px;
    line-height: normal !important; /* Wipe out line-height centering since flex handles it */
    background-color: #343434;
    border-radius: 4px;
    margin-right: 30px;
}

/* 3. Ensure the text info block fills up the remaining available room */
.ovacrs_service_full .content .wrap_service .item .info {
    flex-grow: 1;
}

/* Masquer le widget des articles récents avec miniatures */
#recent-posts-widget-with-thumbnails-3 {
    display: none !important;
}

/* Masquer le nuage de tags (Tag Cloud) */
#tag_cloud-1 {
    display: none !important;
}
/* 1. Masquer complètement la barre latérale droite sur la page panier */
.woocommerce-cart .row > .col-lg-4.right_sidebar {
    display: none !important;
}

/* 2. Étendre la zone du panier sur toute la largeur */
.woocommerce-cart .row > .col-lg-8.right_sidebar {
    flex: 0 0 100% !important;
    max-width: 100% !important;
    width: 100% !important;
}

/* Masquer tous les filtres optionnels sur toutes les pages de recherche */
.ovacrs_search .s_field:has(select[name="cat"]),
.ovacrs_search .s_field:has(select[name="product_type"]),
.ovacrs_search .s_field:has(select[name="product_manufacturer"]),
.ovacrs_search .s_field:has(select[name="product_steering"]),
.ovacrs_search .s_field:has(select[name="product_gearbox"]),
.ovacrs_search .s_field:has(select[name="product_auto_park"]) {
    display: none !important;
}

/* Force the checkout content container to take up full width */
.woocommerce-checkout .row .right_sidebar {
    flex: 0 0 100% !important;
    max-width: 100% !important;
}


/* 1. Hide the WooCommerce Shipping Method Block */
.wp-block-woocommerce-checkout-shipping-method-block {
    display: none !important;
}

/* 2. Reduce the bottom margin of the Contact Information section */
#contact-fields {
    margin-bottom: 0px !important; /* Adjust this value (e.g., 0px, 5px, 10px) to get the exact spacing you want */
}
/* Hide the WooCommerce Pickup Options Block */
.wp-block-woocommerce-checkout-pickup-options-block {
    display: none !important;
}

/* Hide the 'Checking out as guest' notice */
#contact-fields #wc-guest-checkout-notice {
    display: none !important;
}

/* Remove default bottom margin from the step content elements */
#contact-fields .wc-block-components-checkout-step__content > div {
    margin-bottom: 0 !important;
}