.fhm-fullscreen-menu {
    --fhm-overlay-duration: 360ms;
    --fhm-overlay-ease: cubic-bezier(0.22, 1, 0.36, 1);
    position: relative;
    width: 100%;
}

.fhm-fullscreen-menu,
.fhm-fullscreen-menu * {
    box-sizing: border-box;
}

.fhm-empty {
    padding: 14px 16px;
    border: 1px dashed #c9c9c9;
    font-size: 14px;
}

.fhm-toggle {
    --fhm-icon-size: 28px;
    --fhm-toggle-box-size: 44px;
    --fhm-toggle-color: #111111;
    --fhm-toggle-open-color: #ffffff;
    position: relative;
    z-index: 1000001;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: var(--fhm-toggle-box-size);
    height: var(--fhm-toggle-box-size);
    min-width: var(--fhm-toggle-box-size);
    min-height: var(--fhm-toggle-box-size);
    border: 0;
    background: transparent;
    color: var(--fhm-toggle-color);
    padding: 0;
    cursor: pointer;
    transition: color var(--fhm-overlay-duration) var(--fhm-overlay-ease), transform var(--fhm-overlay-duration) var(--fhm-overlay-ease);
}

.fhm-toggle:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 3px;
}

.fhm-toggle__icon {
    position: absolute;
    inset: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: opacity var(--fhm-overlay-duration) var(--fhm-overlay-ease), transform var(--fhm-overlay-duration) var(--fhm-overlay-ease);
}

.fhm-toggle__icon i,
.fhm-toggle__icon svg {
    width: var(--fhm-icon-size);
    height: var(--fhm-icon-size);
    font-size: var(--fhm-icon-size);
}

.fhm-toggle__icon svg {
    fill: currentColor;
}

.fhm-toggle__icon--open {
    opacity: 0;
    transform: rotate(-90deg) scale(.8);
}

.fhm-toggle__icon--closed {
    opacity: 1;
    transform: rotate(0deg) scale(1);
}

.fhm-fullscreen-menu.is-open .fhm-toggle {
    color: var(--fhm-toggle-open-color);
    opacity: 0;
    pointer-events: none;
}

.fhm-fullscreen-menu.is-open .fhm-toggle__icon--open {
    opacity: 0;
    transform: rotate(0deg) scale(.85);
}

.fhm-fullscreen-menu.is-open .fhm-toggle__icon--closed {
    opacity: 0;
    transform: rotate(90deg) scale(.8);
}

.fhm-fullscreen-menu__overlay {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100dvh;
    z-index: 1000000;
    background: rgba(10,10,10,.95);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity var(--fhm-overlay-duration) var(--fhm-overlay-ease), visibility var(--fhm-overlay-duration) var(--fhm-overlay-ease);
}

.fhm-fullscreen-menu__overlay.is-active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.fhm-fullscreen-menu__content {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 40px;
}

.fhm-fullscreen-menu__nav {
    width: 100%;
}

.fhm-fullscreen-menu__nav ul,
.fhm-fullscreen-menu__nav li {
    list-style: none;
    margin: 0;
    padding: 0;
}

.fhm-fullscreen-menu__nav ul {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 18px;
}

.fhm-fullscreen-menu[data-layout="row"] .fhm-fullscreen-menu__nav ul {
    flex-direction: row;
    flex-wrap: wrap;
}

.fhm-fullscreen-menu__nav a {
    color: #fff;
    text-decoration: none;
    transition: color .2s ease, opacity .2s ease, transform .2s ease;
}

.fhm-fullscreen-menu__nav a:hover {
    transform: translateY(-1px);
}



.fhm-fullscreen-menu__content {
    opacity: 0;
    transform: scale(.96);
    transition: opacity var(--fhm-overlay-duration) var(--fhm-overlay-ease), transform var(--fhm-overlay-duration) var(--fhm-overlay-ease);
}

.fhm-fullscreen-menu__overlay.is-active .fhm-fullscreen-menu__content {
    opacity: 1;
    transform: none;
}

.fhm-fullscreen-menu[data-animation="fade"] .fhm-fullscreen-menu__content {
    transform: none;
}

.fhm-fullscreen-menu[data-animation="fade-scale"] .fhm-fullscreen-menu__content {
    transform: scale(.96);
}

.fhm-fullscreen-menu[data-animation="slide-top"] .fhm-fullscreen-menu__content {
    transform: translateY(-48px);
}

.fhm-fullscreen-menu[data-animation="slide-bottom"] .fhm-fullscreen-menu__content {
    transform: translateY(48px);
}

.fhm-fullscreen-menu[data-animation="slide-left"] .fhm-fullscreen-menu__content {
    transform: translateX(-48px);
}

.fhm-fullscreen-menu[data-animation="slide-right"] .fhm-fullscreen-menu__content {
    transform: translateX(48px);
}

.fhm-fullscreen-menu__notice {
    position: fixed;
    right: 32px;
    bottom: 28px;
    max-width: min(420px, calc(100vw - 64px));
    color: rgba(255,255,255,0.72);
    font-size: 13px;
    line-height: 1.5;
    text-align: right;
    z-index: 2;
    pointer-events: none;
}

body.fhm-menu-open {
    overflow: hidden;
}

@media (max-width: 767px) {
    .fhm-fullscreen-menu__content {
        padding: 24px;
    }

    .fhm-fullscreen-menu__notice {
        right: 20px;
        bottom: 18px;
        max-width: calc(100vw - 40px);
        font-size: 12px;
    }

    .fhm-fullscreen-menu[data-layout="row"] .fhm-fullscreen-menu__nav ul {
        flex-direction: column;
    }
}
