/* Side Menu Widget - 77977bbe */

/* Page scroll lock when menu is open */
html.sm-77977bbe-noscroll,
html.sm-77977bbe-noscroll body {
    overflow: hidden !important;
    height: 100% !important;
    touch-action: none;
}

/* Trigger */
.sm-77977bbe-trigger-wrap {
    display: block;
}

.sm-77977bbe-trigger {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    border: none;
    background: transparent;
    padding: 8px 12px;
    transition: color 0.3s ease, background-color 0.3s ease;
    line-height: 1;
}

.sm-77977bbe-trigger-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.sm-77977bbe-trigger-text {
    line-height: 1;
}

/* Overlay — stays in widget DOM, uses fixed positioning to cover viewport */
.sm-77977bbe-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    z-index: 999998 !important;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    cursor: pointer;
    pointer-events: none;
}

.sm-77977bbe-overlay.sm-77977bbe-active {
    visibility: visible;
    pointer-events: auto;
}

/* Panel — stays in widget DOM, uses fixed positioning to cover viewport edge */
.sm-77977bbe-panel {
    position: fixed !important;
    top: 0 !important;
    height: 100vh !important;
    width: 85vw !important;
    max-width: 85vw !important;
    z-index: 999999 !important;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    box-sizing: border-box;
    background-color: #ffffff;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    pointer-events: none;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.sm-77977bbe-panel::-webkit-scrollbar {
    display: none;
}

.sm-77977bbe-panel.sm-77977bbe-active {
    pointer-events: auto;
}

.sm-77977bbe-panel--left {
    left: 0 !important;
    right: auto !important;
    transform: translateX(-100%) !important;
}

.sm-77977bbe-panel--right {
    right: 0 !important;
    left: auto !important;
    transform: translateX(100%) !important;
}

.sm-77977bbe-panel.sm-77977bbe-active.sm-77977bbe-panel--left,
.sm-77977bbe-panel.sm-77977bbe-active.sm-77977bbe-panel--right {
    transform: translateX(0) !important;
}

/* Panel Background Overlay */
.sm-77977bbe-panel-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.sm-77977bbe-panel-inner {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 100%;
    box-sizing: border-box;
    z-index: 1;
}

/* Close Button */
.sm-77977bbe-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    cursor: pointer;
    line-height: 1;
    padding: 5px;
    transition: color 0.3s ease, background-color 0.3s ease;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

.sm-77977bbe-close-icon {
    display: inline-block;
    line-height: 1;
    transform: translateY(-1px);
}

/* Image */
.sm-77977bbe-image-wrap {
    margin-top: 20px;
}

.sm-77977bbe-image {
    display: inline-block;
    max-width: 100%;
    height: auto;
}

/* Menu */
.sm-77977bbe-menu-wrap {
    margin-top: 10px;
}

.sm-77977bbe-nav .sm-77977bbe-menu-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.sm-77977bbe-nav .sm-77977bbe-menu-list > li {
    padding-bottom: 12px;
    border-top: 0 none transparent;
}

.sm-77977bbe-nav .sm-77977bbe-menu-list > li + li {
    padding-top: 12px;
}

.sm-77977bbe-nav .sm-77977bbe-menu-list a {
    text-decoration: none;
    transition: color 0.3s ease;
    display: inline-block;
    cursor: pointer;
}

/* Dropdown menu item row */
.sm-77977bbe-menu-item-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.sm-77977bbe-menu-item-row > a {
    flex: 1;
    min-width: 0;
}

/* Dropdown toggle button */
.sm-77977bbe-dropdown-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    padding: 0;
    margin: 0;
    border: none;
    background: none;
    cursor: pointer;
    flex-shrink: 0;
    transition: color 0.3s ease, background-color 0.3s ease, transform 0.3s ease;
    color: #666666;
    border-radius: 4px;
    box-sizing: border-box;
}

.sm-77977bbe-dropdown-toggle[aria-expanded="true"] {
    transform: rotate(180deg);
}

.sm-77977bbe-arrow {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    margin-top: -2px;
}

/* Sub-menus */
.sm-77977bbe-nav .sub-menu {
    list-style: none;
    margin: 0;
    padding: 0 0 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, opacity 0.35s ease, padding 0.35s ease;
    opacity: 0;
}

.sm-77977bbe-nav .sub-menu.sm-77977bbe-submenu-open {
    max-height: 500px;
    opacity: 1;
    padding-top: 8px;
}

.sm-77977bbe-nav .sub-menu li {
    padding: 6px 0;
}

.sm-77977bbe-nav .sub-menu a {
    text-decoration: none;
    transition: color 0.3s ease;
    display: inline-block;
}

.sm-77977bbe-nav .sub-menu .sub-menu {
    padding-left: 15px;
}

/* Social Icons */
.sm-77977bbe-social-wrap {
    margin-top: 10px;
}

.sm-77977bbe-social-list {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 10px;
}

.sm-77977bbe-social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: color 0.3s ease, background-color 0.3s ease;
    line-height: 1;
}

/* Mobile */
@media (max-width: 767px) {
    .sm-77977bbe-panel-inner {
        padding: 20px;
    }

    .sm-77977bbe-close {
        top: 10px;
        right: 10px;
    }
}

/* Focus styles */
.sm-77977bbe-trigger:focus-visible,
.sm-77977bbe-close:focus-visible,
.sm-77977bbe-social-link:focus-visible,
.sm-77977bbe-nav a:focus-visible,
.sm-77977bbe-dropdown-toggle:focus-visible {
    outline: 2px solid #0073aa;
    outline-offset: 2px;
}
