/* 
Theme Name: Hello Elementor Child
Theme URI: https://github.com/elementor/hello-theme-child/
Description: Hello Elementor Child is a child theme of Hello Elementor, created by Elementor team
Author: Elementor Team
Author URI: https://elementor.com/
Template: hello-elementor
Version: 2.0.0
Text Domain: hello-elementor-child
License: GNU General Public License v3 or later.
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Tags: flexible-header, custom-colors, custom-menu, custom-logo, editor-style, featured-images, rtl-language-support, threaded-comments, translation-ready
*/

/* Add your custom styles here */
/* Keep the booking form inside its Elementor container */
.booking_product_analyzer {
    width: 100%;
    min-width: 0;
}

.booking_product_analyzer,
.booking_product_analyzer * {
    box-sizing: border-box;
}

/* Reset the fieldset layout */
.booking_product_analyzer .booking_area {
    width: 100%;
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
}

/* Let the address box determine the container height */
.booking_product_analyzer .booking_address_part {
    position: relative;
    width: 100%;
}

/* Leave room for the clear-address button */
.booking_product_analyzer .booking_address_part input[type="text"] {
    padding-right: 48px;
}

/* Position the clear button inside the address field */
.booking_product_analyzer
.booking_address_part
span.address-clear-icon {
    top: 50%;
    right: 27px;
    bottom: auto;
    margin: 0;
    transform: translateY(-50%);
}

/* White background for the booking section */
#booking_page_section_data {
    background-color: #fff !important;
    background-image: none !important;
}

/* White panels throughout the booking steps */
#booking_page_section_data .booking_address_part,
#booking_page_section_data .booking_knife_quantity_part,
#booking_page_section_data .select_the_date_data,
#booking_page_section_data .select_the_driver_data {
    background-color: #fff;
}

/* White hero background once the booking advances past step 1 */
body.home .elementor-element-8a009e4:has(
    .booking_area_1[style*="display: none"]
) {
    background-image: none !important;
    background-color: #fff !important;
}

/* Remove the dark image overlay during booking */
body.home .elementor-element-8a009e4:has(
    .booking_area_1[style*="display: none"]
)::before {
    background: none !important;
}

/* Keep the headline and introductory text readable */
body.home .elementor-element-8a009e4:has(
    .booking_area_1[style*="display: none"]
) .elementor-heading-title,
body.home .elementor-element-8a009e4:has(
    .booking_area_1[style*="display: none"]
) .elementor-widget-text-editor {
    color: #333 !important;
}

body.home .elementor-element-8a009e4:has(
    .booking_area_1[style*="display: none"]
) .elementor-widget-text-editor p {
    color: inherit !important;
}

/* Keep the white header logo and navigation readable */
body.home:has(
    .elementor-element-8a009e4
    .booking_area_1[style*="display: none"]
) .elementor-location-header {
    background-color: #343333 !important;
}
/* Unavailable dates: consistent red on every row */
.booking_product_analyzer table.calendar-table tbody tr td.disabled {
    background: #ff9999 !important;
    color: #fff !important;
    opacity: 1 !important;
}

/* Available dates: green */
.booking_product_analyzer table.calendar-table tbody tr td.available {
    background: #2bc44c !important;
    color: #fff !important;
}

/* Selected date: purple */
.booking_product_analyzer table.calendar-table tbody tr td.selected {
    background: #8c368d !important;
    color: #fff !important;
}

/* Empty cells before the first day: no availability colour */
.booking_product_analyzer table.calendar-table tbody tr td:empty {
    background: transparent !important;
}
/* White hero while the customer is past the address step */
body.home .elementor-element-8a009e4:has(
    .booking_area_1[style*="display: none"]
) {
    background: #fff !important;
}

/* Remove the hero's dark overlay during booking */
body.home .elementor-element-8a009e4:has(
    .booking_area_1[style*="display: none"]
)::before {
    background: none !important;
}

/* Dark headline and introductory text on white */
body.home .elementor-element-8a009e4:has(
    .booking_area_1[style*="display: none"]
) .elementor-heading-title,
body.home .elementor-element-8a009e4:has(
    .booking_area_1[style*="display: none"]
) .elementor-widget-text-editor,
body.home .elementor-element-8a009e4:has(
    .booking_area_1[style*="display: none"]
) .elementor-widget-text-editor p {
    color: #333 !important;
}

/* Keep the white logo and navigation readable */
body.home:has(
    .elementor-element-8a009e4
    .booking_area_1[style*="display: none"]
) .elementor-location-header {
    background-color: #343333 !important;
}

/* Dark red border around the address box */
.booking_product_analyzer .booking_address_part {
    border-color: #a7352d !important;
}

/* Dark red accents on booking panels */
.booking_product_analyzer .booking_knife_quantity_part,
.booking_product_analyzer .select_the_date_data {
    border-top-color: #a7352d !important;
}

/* Dark red buttons and calendar navigation */
.booking_product_analyzer .address-clear-icon,
.booking_product_analyzer .maybe_step_jump,
.booking_product_analyzer #complete_step_3,
.booking_product_analyzer #back_to_step_3,
.booking_product_analyzer #back_to_step_4,
.booking_product_analyzer .calendar-header button {
    background-color: #a7352d !important;
    color: #fff !important;
}

/* Dark red price summary */
.booking_product_analyzer .total_price_part p.total_part {
    color: #a7352d !important;
}

/* Checkout: place order button */
.woocommerce-checkout #payment #place_order {
    background: #a7352d !important;
    border-color: #a7352d !important;
    color: #fff !important;
}

/* Slightly darker on hover */
.woocommerce-checkout #payment #place_order:hover {
    background: #8e2d26 !important;
    border-color: #8e2d26 !important;
}

/* Homepage: use a different hero image on mobile */
@media (max-width: 767px) {
    .elementor-114 .elementor-element.elementor-element-8a009e4 {
        background-image: url("https://slibemesteren.dk/wp-content/uploads/2025/11/gul_bil_2-scaled.jpg") !important;
        background-position: center center;
        background-size: cover;
        background-repeat: no-repeat;
    }
}