/**
 * Hesap menüsü çekmecesi — PC: sağdan sola (sepet gibi), mobil/tablet: alt panel
 */

/* —— Masaüstü: sağdan sola kayan panel (sepet ile aynı yön) —— */
.yer6-account-menu-root {
    position: fixed;
    inset: 0;
    z-index: 100045;
    pointer-events: none;
}

.yer6-account-menu-root.is-open {
    pointer-events: auto;
}

.yer6-account-menu-overlay {
    position: absolute;
    inset: 0;
    z-index: 0;
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    opacity: 0;
    transition: opacity 0.28s ease;
}

.yer6-account-menu-root.is-open .yer6-account-menu-overlay {
    opacity: 1;
}

.yer6-account-menu-drawer {
    position: absolute;
    top: 0;
    right: 0;
    left: auto;
    z-index: 1;
    width: min(440px, 100%);
    max-width: 100%;
    height: 100%;
    background: #141518;
    border-left: 1px solid var(--header-strip-border, #2d3139);
    border-right: none;
    box-shadow: -12px 0 40px rgba(0, 0, 0, 0.45);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: translateX(100%);
    transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
    color: #e8eaed;
}

.yer6-account-menu-root.is-open .yer6-account-menu-drawer {
    transform: translateX(0);
}

.yer6-account-menu-drawer__slot {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

body.light-mode .yer6-account-menu-drawer {
    background: #ffffff;
    border-left-color: rgba(0, 0, 0, 0.08);
    box-shadow: -12px 0 40px rgba(0, 0, 0, 0.12);
    color: #1a1f2e;
}

@media (min-width: 1025px) {
    .yer6-account-menu-drawer__slot #userMenuContainer .user-menu-topbar {
        border-bottom: 1px solid var(--header-strip-border, #2d3139) !important;
        margin-bottom: 0 !important;
    }

    body.light-mode .yer6-account-menu-drawer__slot #userMenuContainer .user-menu-topbar {
        border-bottom-color: var(--header-strip-border, rgba(74, 158, 255, 0.15)) !important;
    }

    .yer6-account-menu-drawer__slot #userMenuContainer.user-menu-container {
        position: relative !important;
        top: auto !important;
        right: auto !important;
        left: auto !important;
        bottom: auto !important;
        width: 100% !important;
        max-width: none !important;
        height: 100% !important;
        max-height: none !important;
        margin: 0 !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
        display: flex !important;
        flex-direction: column !important;
        overflow: hidden !important;
        pointer-events: auto !important;
    }

    .yer6-account-menu-drawer__slot #userMenuContainer .user-menu-body {
        flex: 0 0 auto;
        min-height: auto;
        overflow: visible;
        padding-bottom: 32px;
    }
}

body.yer6-account-menu-open {
    overflow: hidden;
}

@media (min-width: 1025px) {
    body.yer6-account-menu-open {
        position: fixed;
        width: 100%;
    }
}
