#header-wrapper {
    background: #ffffff;
    padding: 40px 0;
    z-index: 202;
    position: relative;
    max-width: 100vw;

    @media (max-width: 767px) {
        padding: 10px 0;
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
    }

    #header-left {
        display: flex;
        flex: 1;
        gap: 20px;

        #logo-text {
            max-width: 220px;
            font-size: 15px;
            line-height: 20px;
            letter-spacing: 0.15px;
        }

        @media (min-width: 768px) and (max-width: 991px) {
            #logo-wrapper {
                margin-right: 30px;
            }
        }
    }

    #header-right {
        gap: 50px;

        @media (min-width: 768px) and (max-width: 991px) {
            gap: 30px;
        }

        #search-wrapper {
            display: flex;
            justify-content: center;

            #header-search-form {
                display: flex;
                justify-content: center;

                border: 1px solid #F15A22;
                border-radius: 8px;
                padding: 8px 16px;

                #search-input {
                    background: #FFFFFF;
                    font-size: 17px;
                    padding: 0;
                    line-height: 25px;
                    text-align: left;
                    color: #484641;
                    outline: none;
                    width: 200px;
                    border: none;
                }

                #search-input::placeholder {
                    color: #484641;
                }

                #search-input:focus, #search-input:hover {
                    background: #EFEFEE;
                }

                #search-btn {
                    width: 36px;
                    height: 36px;
                    background: none;
                    border: none;
                    box-shadow: none;
                    display: flex;
                    align-items: center;
                    justify-content: center;
                    margin-left: 5px;

                    #search-btn-icon {
                        height: 36px;
                        width: 36px;
                        display: inline-block;
                        background: url("../../napha2015/gfx/icons/icon_search_gray.svg") no-repeat center;
                    }
                }
            }

            #header-search-form:has(#search-input:hover), #header-search-form:has(#search-input:focus) {
                background: #EFEFEE;
            }
        }

        #log-in-out a {
            color: #484641;
        }

        #log-in-out a:hover {
            text-decoration: underline;
        }

        #menu-wrapper {
            .btn-menu {
                border-radius: 8px;
                padding: 12px;
                background: #353430;
                color: #FFFFFF;
                text-align: center;
                font-size: 17px;
                font-style: normal;
                font-weight: 400;
                line-height: 25px;
                letter-spacing: 0.174px;
                display: inline-flex;
                justify-content: center;
                text-decoration: none;
                width: 103px;

                .icon.icon-hamburger {
                    display: inline-block;
                    width: 24px;
                    height: 23px;
                    float: right;
                    background: url("../gfx/icons/icon_hamburger_menu.svg") 0 0 no-repeat;
                    align-self: center;
                    margin-left: 10px;
                }

                .icon.icon-hamburger-close {
                    display: inline-block;
                    width: 24px;
                    height: 23px;
                    float: right;
                    background: url("../gfx/icons/icon_hamburger_menu_close.svg") 0 0 no-repeat;
                    align-self: center;
                    margin-left: 10px;
                }
            }
        }
    }

    div {
        display: flex;
        align-items: center;
    }
}

#main-menu-container-wrapper {
    -webkit-transition: all 0.3s ease;
    -moz-transform: all 0.3s ease;
    transition: all 0.3s ease;
    z-index: 202;
    background: #FFFFFF;
    position: fixed;
    right: -380px;
    padding: 40px;
    height: 100%;
    width: 380px;
    overflow: auto;

    @media (max-width: 767px) {
        padding-top: 20px;
    }

    #search-wrapper-xs {
        display: flex;
        justify-content: center;
        margin-bottom: 20px;

        #header-search-form-xs {
            display: flex;
            justify-content: center;

            border: 1px solid #F15A22;
            border-radius: 8px;
            padding: 8px 16px;

            #search-input-xs {
                background: #FFFFFF;
                font-size: 17px;
                padding: 0;
                line-height: 25px;
                text-align: left;
                color: #484641;
                outline: none;
                width: 200px;
                border: none;
            }

            #search-input-xs::placeholder {
                color: #484641;
            }

            #search-input-xs:focus, #search-input-xs:hover {
                background: #f2f2f2;
            }

            #search-btn-xs {
                width: 36px;
                height: 36px;
                background: none;
                border: none;
                box-shadow: none;
                display: flex;
                align-items: center;
                justify-content: center;
                margin-left: 5px;

                #search-btn-icon-xs {
                    height: 36px;
                    width: 36px;
                    display: inline-block;
                    background: url("../../napha2015/gfx/icons/icon_search_gray.svg") no-repeat center;
                }
            }
        }

        #header-search-form-xs:has(#search-input-xs:hover), #header-search-form-xs:has(#search-input-xs:focus) {
            background: #f2f2f2;
        }
    }

    ul#main-menu-elements {
        padding: 0;
        list-style: none;
        margin: 0;

        .main-menu-sub-menu {
            -webkit-transition: all 0.3s ease;
            -moz-transform: all 0.3s ease;
            transition: all 0.3s ease;
        }

        li.expansion-closed {
            .main-menu-sub-menu {
                display: none;
            }
        }

        li.expansion-opened {
            .main-menu-sub-menu {
                display: block;
            }
        }

        li {
            border-bottom: 1px solid #FFDEC7;

            a.main-menu-navitem {
                color: #484641;
                font-weight: 400;
                font-size: 20px;
                line-height: 24px;
                display: block;
                padding: 15px;
                text-decoration: none;
            }

            a.main-menu-navitem:hover, a.main-menu-navitem:active {
                background: #FFF3EA;
                text-decoration: none;
            }

            ul.main-menu-sub-menu {
                padding: 0 0 0 10px;
                list-style: none;
                margin: 0;
                border-left: 2px solid #FFDEC7;

                li {
                    border: none;

                    a.main-menu-sub-navitem {
                        display: inline-block;
                        padding: 10px;
                        font-size: 16px;
                        line-height: 19.2px;
                        color: #484641;
                        font-weight: 400;
                    }

                    a.main-menu-sub-navitem:hover, a.main-menu-sub-navitem:active {
                        background: #FFF3EA;
                        text-decoration: none;
                    }
                }
            }

            .menu-expansion-icon {
                display: inline-block;
                width: 10px;
                height: 7px;
                background: url("../gfx/icons/icon_chevron_down.svg") 0 0 no-repeat;
                margin-left: 20px;
                margin-bottom: 2px;
            }
        }

        li.expansion-opened {
            border: none;

            .menu-expansion-icon {
                background: url("../gfx/icons/icon_chevron_up.svg") 0 0 no-repeat;
            }
        }
    }

    ul#main-menu-elements2 {
        padding: 0;
        list-style: none;
        margin: 20px 0 100px 0;

        li {
            a {
                color: #484641;
                font-weight: 400;
                font-size: 16px;
                line-height: 19.2px;
                display: inline-block;
                padding: 10px;
            }

            a:hover, a:active {
                background: #FFF3EA;
                text-decoration: none;
            }
        }
    }
}

#main-menu-overlay {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(36, 36, 36, 0.5);
    z-index: 201;
    pointer-events: all;
}

.avoid-page-scroll {
    overflow: hidden !important;
}