/**
 * Custom Mobile Menu Styles
 */

.custom-mobile-menu {
    position: fixed;
    top: 61px;
    left: 0;
    width: 100%;
    background: #ffffff;
    z-index: 99999;
    visibility: hidden;
    opacity: 0;
    transform: translateY(-20px);
    transition: visibility 0.3s, opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.custom-mobile-menu.is-open {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
}

/* Search Bar */
.custom-mobile-menu__search {
    padding: 16px;
    margin-top: 0;
    border-bottom: 1px solid #e0e0e0;
}

.custom-mobile-menu__search-form {
    position: relative;
    display: flex;
    align-items: center;
}

.custom-mobile-menu__search-icon {
    position: absolute;
    left: 10px;
    color: #999;
    pointer-events: none;
    width: 16px;
    height: 16px;
}

.custom-mobile-menu__search-input {
    width: 100%;
    padding: 8px 10px 8px 32px;
    border: 1px solid #e0e0e0;
    border-radius: 3px;
    font-size: 14px;
    outline: none;
    background: #fafafa;
    color: #333;
}

.custom-mobile-menu__search-input::placeholder {
    color: #999;
}

.custom-mobile-menu__search-input:focus {
    border-color: #0098a6;
    background: #fff;
}

/* Panels Container */
.custom-mobile-menu__panels {
    flex: 1;
    position: relative;
}

/* Individual Panel */
.custom-mobile-menu__panel {
    position: absolute;
    top: 0;
    left: 100%;
    width: 100%;
    min-height: 100%;
    background: #ffffff;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
}

.custom-mobile-menu__panel--active {
    left: 0 !important;
    box-shadow: 0 8px 12px 6px rgba(0, 0, 0, 0.15), 0 4px 4px 0 rgba(0, 0, 0, 0.30);
}

.custom-mobile-menu__panel.is-sliding-left {
    left: -100%;
}

.custom-mobile-menu__panel.is-sliding-in {
    left: 0;
}

/* Panel Header (for submenus) */
.custom-mobile-menu__panel-header {
    display: flex;
    align-items: center;
    padding: 14px 16px;
    border-bottom: 1px solid #e0e0e0;
    position: sticky;
    top: 0;
    background: #ffffff;
    z-index: 5;
    min-height: 50px;
}

.custom-mobile-menu__back {
    background: transparent;
    border: none;
    padding: 4px;
    margin-right: 10px;
    cursor: pointer;
    color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
}

.custom-mobile-menu__back svg {
    width: 18px;
    height: 18px;
}

.custom-mobile-menu__back:hover {
    opacity: 0.7;
}

.custom-mobile-menu__panel-title {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #333;
    text-decoration: none;
}

.custom-mobile-menu__panel-title:hover,
.custom-mobile-menu__panel-title:focus {
    color: #00C1C7;
    text-decoration: underline;
}

/* Navigation */
.custom-mobile-menu__nav {
    padding: 0;
}

.custom-mobile-menu__list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.custom-mobile-menu__item {
    border-bottom: 1px solid #f0f0f0;
}

.custom-mobile-menu__item:last-child {
    border-bottom: none;
}

/* Menu Links */
.custom-mobile-menu__link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    color: #333;
    text-decoration: none !important;
    font-size: 15px;
    background: transparent;
    border: none;
    width: 100%;
    text-align: left;
    cursor: pointer;
    transition: background-color 0.15s ease;
    font-weight: 400;
    line-height: 1.4;
}

/* Main panel (top-level) menu items - special styling */
.custom-mobile-menu__panel[data-panel="main"] .custom-mobile-menu__link {
    font-family: "Noto Sans", sans-serif;
    font-size: 24px;
    font-style: normal;
    color: var(--awb-custom_color_1);
    font-weight: 300;
    line-height: normal;
}

.custom-mobile-menu__link:hover,
.custom-mobile-menu__link:focus {
    background-color: #fafafa;
    text-decoration: none !important;
}

.custom-mobile-menu__link--parent {
    font-weight: 400;
	letter-spacing: 0.21px;
}

.custom-mobile-menu__arrow {
    color: #999;
    flex-shrink: 0;
    width: 18px;
    height: 18px;
}

/* Main panel chevron styling */
.custom-mobile-menu__panel[data-panel="main"] .custom-mobile-menu__arrow {
    background-color: var(--awb-color4);
    color: #ffffff;
    border-radius: 0;
    padding: 4px;
    width: 24px;
    height: 24px;
}

/* Responsive */
@media (min-width: 1025px) {
    .custom-mobile-menu {
        display: none !important;
    }
}

/* Smooth scrolling for iOS */
.custom-mobile-menu__panel {
    -webkit-overflow-scrolling: touch;
}

/* Prevent body scroll when menu is open */
body.custom-mobile-menu-open {
    overflow: hidden;
}

/* Megamenu icons inside mobile menu links */
.custom-mobile-menu__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
    flex-shrink: 0;
    vertical-align: middle;
}
