#wowBookingsFormSearch{
    --secondary-500: #004225;
    --main-400: #9A7C58;
    --main-100: #E6DFD6;
    --secondary-700: #002113;
    --support-700: #141414;
    --support-300: #8A8A8A;
    --support-400: #4F4F4F;
    --background-400: #D6D3D1;
    --background-200: #F4F1EE;
    --background-100: #FAF8F7;
    --white: #ffffff;

    /*--secondary-500: #3592AE;
    --main-400: #5A5758;
    --main-100: #E4E3E4;
    --secondary-700: #1E5363;
    --support-700: #141414;
    --support-400: #4F4F4F;
    --support-300: #8A8A8A;*/

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin: 0;
    
    font-size: 16px;
    line-height: 1;
    font-weight: 400;

    width: 100%;
    width: calc(var(--container-max-width) - 40px);
    max-width: 100%;

    *{
        box-sizing: border-box;
    }
    
    & button {
        border: 0;
        cursor: pointer;
        -webkit-appearance: button;
        appearance: button;
        font-size: 1.125rem;
        line-height: 1.5rem;
        border-radius: 0;
        font-weight: 400;
        outline: none;
        text-transform: none;
        letter-spacing: normal;

        
        &.wow-search{
            flex-grow: 5;
        }

        &.wow-submit{
            flex-grow: 1;
            background: var(--secondary-500);
            color: #fff;
            padding: 1rem 1.5rem;
            transition: all .25s ease-in-out;
            max-width: max-content;

            border-radius: 1.5rem;

            &:hover{
                background: var(--secondary-700);
            }

            &:has(svg){
                display: flex;
                flex-direction: row;
                justify-content: center;
                align-items: center;
                gap: 0.5rem;
            }
        }
    }

    &>section{
        display: flex;
        flex-direction: row;
        justify-content: center;
        align-items: center;
        flex-wrap: wrap;
        border: 1px solid rgba(0, 66, 37, 0.12);
        background-color: var(--background-200);
        text-wrap: nowrap;
        width: 100%;
        padding: 1rem;
        position: relative;
        transition: all 0.25s ease-in-out;
        column-gap: 1.5rem;

        border-radius: 1.5rem;
        background: #fff;

        & .wow-search{
            background-color: transparent;
            color: var(--support-700);
            padding: 1rem 1.5rem;
            line-height: 2rem;
            display: flex;
            flex-direction: row;
            justify-content: space-evenly;
            align-items: center;
            gap: 0.5rem;

            &:hover,
            &:has(input:focus){
                background: #ffffff;
            }


            & input{
                outline: none;
                border: none;
                background: transparent;
                color: var(--support-700);
                font-size: 1.125rem;
                line-height: 2rem;
                padding: 0;

                &::placeholder{
                    color: var(--support-300);
                }
            }

            & .badge{
                background-color: var(--main-400);
                border-radius: 0.25rem;
                padding: 0 0.25rem;
                font-size: 0.75rem;
                line-height: 1rem;
                font-weight: 400;
                color: #ffffff;
            }

            &:has(>div){
                gap: 1.5rem;
                flex-wrap: wrap;
            }
            &>div{
                display: flex;
                flex-direction: row;
                justify-content: center;
                align-items: center;
                gap: 0.5rem;
            }

            @media screen and (width >= 1024px) {
                & span[data-prepend]:before {
                    content: attr(data-prepend) " ";
                }
            }
        }

        @media screen and (width < 1024px) {
            & .wow-submit span,
            & #wowNightsBadge{
                display: none;
            }
        }
        @media screen and (width < 768px) {

            &{
                gap: 0;
            }

            &>.wow-search{
                gap: 0.5rem !important;
                padding: 0.5rem;

                & input{
                    display: none;
                }
            }
            &,
            & .wow-submit{
                padding: 0.5rem;
            }
        }

        &>section#bookingSearchFormContent{
            display: flex;
            flex-direction: row;
            justify-content: center;
            align-items: stretch;
            flex-wrap: wrap;
            gap: 1rem;
            position: absolute;
            z-index: 10;
            width: calc(100% + 2px);
            background-color: var(--background-200);
            border: 1px solid rgba(0, 66, 37, 0.12);
            border-top-width: 0;
            padding: 0 1rem 1rem 1rem;
            top: calc(100% - 1px);
            opacity: 0;
            transform: translateY(-1rem);
            pointer-events: none;
            transition: opacity 0.25s ease-in-out, transform 0.25s ease-in-out;

            background-color: #ffffff;

            &.show{
                opacity: 1;
                transform: translateY(0);
                pointer-events: auto;

                @media screen and (width < 768px) {
                    position: fixed;
                    bottom: 0;
                    top: 110px;
                    overflow-y: auto;
                    padding-top: 1rem;
                    border-top-width: inherit;

                    &>.wow-close{
                        display: inherit;
                        position: fixed;
                        top: 0.5rem;
                        right: 0.5rem;
                        padding: 0.25rem;
                        color: var(--support-300);
                        border: 1px solid var(--support-300);
                    }
                }
            }

            &>.wow-close{
                display: none;
            }
            
            &>.section-group{
                padding: 1.5rem;            
                border: 1px solid rgba(0, 66, 37, 0.12);
                background-color: #ffffff;
                display: flex;
                flex-direction: column;
                justify-content: center;
                align-items: center;
                gap: 1.5rem;
                min-width: 280px;
                max-width: 100%;
                flex-grow: 1;
                width: min-content;

                border-radius: 1.5rem;

                /* &.section-group-inline{
                    max-width: 1000px;
                } */

                &>.form-group{
                    margin: 0;
                    display: flex;
                    flex-direction: column;
                    justify-content: stretch;
                    align-items: stretch;
                    gap: 1rem;
                    width: 100%;

                    &>label{
                        display: flex;
                        flex-direction: row;
                        justify-content: start;
                        align-items: center;
                        gap: 0.5rem;
                        font-size: 1rem;
                        line-height: 1.5rem;
                        color: var(--support-700);
                        margin: 0;

                        &>small{
                            font-size: 0.875rem;
                            line-height: 1.5rem;
                            font-weight: 400;
                            color: var(--support-300);
                        }
                    }
                    &>.wow-number-input{
                        width: 100%;
                        border-radius: 1.5rem;
                    }
                }

                @media screen and (width < 1024px) {
                    &.wow-desktop-hide{
                        width: 100%;
                        padding: 0;
                        align-items: start;
                    }
                }
            }
            
            @media screen and (width >= 1024px) {
                & .wow-desktop-hide{
                    display: none;
                }
            }
            
            @media screen and (width < 1024px) {
                & .wow-submit.wow-desktop-hide{
                    width: 100%;
                    max-width: inherit;
                    padding: 1rem 1.5rem;
                    position: sticky;
                    bottom: 0;

                    &>span{
                        display: inherit;
                    }
                }
            }
        }

    }

    &.wow-searchbar-inline {
        &>section>section#bookingSearchFormContent {
            position: initial;
            border: 0;
            padding: 0;
        }


        &>section>section#bookingSearchFormContent > section.section-subtitles {
            flex-basis: 100%;
            order: 50;
            display: flex;
            justify-content: center;
            align-items: center;
            flex-wrap: wrap;
            gap: 16px;

            &>.subtitle-item {
                display: flex;
                align-items: center;
                gap: 8px;
                min-width: 0;
            }

            & .subtitle-text {
                color: var(--support-400);
                font-family: Lato, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
                font-size: 16px;
                font-weight: 400;
                line-height: 24px;
                letter-spacing: 0;
            }

            & .subtitle-badge {
                display: flex;
                width: 16px;
                height: 16px;
                justify-content: center;
                align-items: center;
                aspect-ratio: 1 / 1;
                border-radius: 2px;
                flex: 0 0 16px;
                color: var(--support-300);
                font-family: var(--Typography-font-family-additional, "DM Sans"), system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
                font-size: 10px;
                font-style: normal;
                font-weight: 300;
                line-height: 16px;
                letter-spacing: 0;

                &.checkin {
                    background: var(--main-400);
                }

                &.days-range {
                    background: var(--main-100);
                }

                &.n-a {
                    background: var(--background-100);
                }
            }
        }

        &>section>section#bookingSearchFormContent > button.wow-submit {
            flex-basis: 100%;
            width: 100% !important;
            max-width: 100% !important;
            display: flex;
            justify-content: center;
            order: 60;
        }
    }



    .wow-number-input {
        display: flex;
        flex-direction: row;
        justify-content: center;
        align-items: center;
        gap: 0.5rem;
        background: #fff;
        padding: 0.5rem 1.5rem;
        border: 1px solid var(--support-300);

        &>input[type="number"] {
            -webkit-appearance: textfield;
            -moz-appearance: textfield;
            appearance: textfield;
            outline: none;
            box-shadow: none;
            border: 0;
            text-align: center;
            min-width: 48px;
            height: 1.5rem;
            font-size: 1rem;
            line-height: 1.5rem;
            font-weight: 500;
            padding: 0;
            flex-grow: 1;

            &::-webkit-inner-spin-button,
            &::-webkit-outer-spin-button {
                -webkit-appearance: none;
                -moz-appearance: none;
                appearance: none;
            }
        }

        &>button {
            outline: none;
            -webkit-appearance: none;
            -moz-appearance: none;
            appearance: none;
            display: flex;
            align-items: center;
            justify-content: center;
            width: 1.5rem;
            height: 1.5rem;
            cursor: pointer;
            padding: 0;
            border: 0;
            background-color: transparent;
            line-height: 1;
            
            &:before {
                display: inline-flex;
                content: '-';
                color: var(--support-700);
                font-size: 1.5rem;
                height: 100%;
                align-items: center;
                
            }

            &:last-child:before {
                content: '+';
            }

            &:disabled:before {
                color: var(--support-300);
            }
            
            &:is(:hover, :focus){
                background-color: var(--background-200);

                &:before {
                    color: var(--support-300);
                }
            }
        }
    }

    .flatpickr-calendar {

        &.inline .dayContainer .flatpickr-day{
            display: flex;
            flex-direction: column;
            gap: 0;
            font-size: 0.875rem;
            line-height: 1.5rem;
            color: var(--support-300);
            height: inherit;
            min-height: 3rem;

            &.wow-calendar-day-unvailable:not(.nextMonthDay, .prevMonthDay){
                /* text-decoration: line-through;
                color: #ccc; */
                opacity: 0.25;
                pointer-events: none;
            }

            &:not(.flatpickr-disabled, .wow-calendar-day-unvailable, .wow-calendar-day-available){
                pointer-events: none;
                color: #ccc;
                position: relative;
            }

            &:not(.flatpickr-disabled, .wow-calendar-day-unvailable, .wow-calendar-day-available, .nextMonthDay, .prevMonthDay):before{
                content: '';
                width: 40%;
                height: 2px;
                background: #ccc;
                position: absolute;
                bottom: 0;
                left: 0;
                box-sizing: border-box;
                animation: hitZak 0.4s ease-in-out infinite alternate;
            }

            &>span{
                font-size: 0.625rem;
                font-weight: 300;
                line-height: 1;
                display: flex;
                flex-direction: column;
            }
        }

        &.inline .dayContainer .flatpickr-day.wow-calendar-day-na > span{
            color: var(--support-300);
            font-family: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
            font-size: 10px;
            font-style: normal;
            font-weight: 300;
            line-height: 16px;
            letter-spacing: 0;
        }

        &.inline{
            border-radius: 0;
            border: 0;
            top: inherit;
            box-shadow: none;
            width: 100% !important;

            &>.flatpickr-innerContainer{
                flex-direction: column;

                & .flatpickr-weekdays .flatpickr-weekdaycontainer .flatpickr-weekday{
                    color: #8A8A8A;
                    font-weight: 400;
                }
            }
            
            &>.flatpickr-months,
            &>.flatpickr-innerContainer>.flatpickr-rContainer>*{
                gap: 1.5rem;
                justify-content: center;
                width: 100% !important;

                & .dayContainer {
                    width: 100% !important;
                    max-width: none;
                }
                & .dayContainer + .dayContainer{
                    box-shadow: none;
                }
            }

            &>.flatpickr-months .flatpickr-current-month *{
                font-weight: 400;
            }
        }

        &.rangeMode .flatpickr-day{
            max-width: inherit;
            border: 0;
            font-weight: 400;
            color: var(--support-300);
            box-shadow: none;

            &:is(:not(.startRange, .inRange, .endRange)):hover{
                border-radius: 0.5rem;
            }

            &:is(.startRange, .endRange) {
                background: var(--main-400);
                color: #ffffff;
            }
            &.startRange{
                border-top-left-radius: 0.5rem;
                border-bottom-left-radius: 0.5rem;
            }
            &.endRange{
                border-top-right-radius: 0.5rem;
                border-bottom-right-radius: 0.5rem;
            }
            &.inRange {
                box-shadow: none;
                background: var(--main-100);
            }

            &.flatpickr-disabled{
                opacity: 0.25;
            }
            
            &>span{
                font-size: 0.625rem;
                line-height: 1rem;
                font-weight: 300;
            }
        }

        /* &.inline{
            width: 100% !important;
        } */

        
    }
}
