/* Account entry Bottom Sheet — guest auth choices */
.acc-sheet-root {
    position: fixed;
    inset: 0;
    z-index: 12000;
    pointer-events: none;
    visibility: hidden;
}

.acc-sheet-root.is-open {
    pointer-events: auto;
    visibility: visible;
}

.acc-sheet-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
    opacity: 0;
    transition: opacity 0.28s ease;
    border: 0;
    padding: 0;
    cursor: pointer;
}

.acc-sheet-root.is-open .acc-sheet-backdrop {
    opacity: 1;
}

.acc-sheet {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    max-height: min(88dvh, 560px);
    background: #fff;
    border-radius: 22px 22px 0 0;
    box-shadow: 0 -12px 40px rgba(15, 23, 42, 0.18);
    transform: translate3d(0, 110%, 0);
    transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
    display: flex;
    flex-direction: column;
    padding: 0 0 calc(1rem + env(safe-area-inset-bottom, 0px));
    will-change: transform;
    touch-action: none;
}

.acc-sheet-root.is-open .acc-sheet {
    transform: translate3d(0, 0, 0);
}

.acc-sheet__handle-wrap {
    display: flex;
    justify-content: center;
    padding: 0.7rem 0 0.35rem;
    flex-shrink: 0;
    cursor: grab;
}

.acc-sheet__handle {
    width: 42px;
    height: 4px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.18);
}

.acc-sheet__head {
    padding: 0.35rem 1.25rem 0.85rem;
    text-align: center;
}

.acc-sheet__title {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 800;
    color: #23214f;
}

.acc-sheet__sub {
    margin: 0.35rem 0 0;
    font-size: 0.88rem;
    color: #6b7280;
}

.acc-sheet__list {
    list-style: none;
    margin: 0;
    padding: 0.25rem 1rem 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
}

.acc-sheet__row {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    width: 100%;
    text-align: start;
    padding: 0.9rem 1rem;
    border: 1px solid rgba(61, 57, 146, 0.12);
    border-radius: 16px;
    background: #fafafa;
    color: inherit;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
    font: inherit;
}

.acc-sheet__row:hover,
.acc-sheet__row:focus-visible {
    background: #fff;
    border-color: rgba(61, 57, 146, 0.35);
    outline: none;
}

.acc-sheet__row:active {
    transform: scale(0.985);
}

.acc-sheet__icon {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: rgba(61, 57, 146, 0.1);
    color: #3d3992;
    font-size: 1.1rem;
}

.acc-sheet__row[data-action="guest"] .acc-sheet__icon {
    background: rgba(226, 198, 149, 0.28);
    color: #8a6d2f;
}

.acc-sheet__text {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.acc-sheet__text strong {
    font-size: 0.98rem;
    font-weight: 700;
    color: #1f2937;
}

.acc-sheet__text span {
    font-size: 0.8rem;
    color: #6b7280;
    line-height: 1.35;
}

.acc-sheet__chevron {
    color: #9ca3af;
    font-size: 0.85rem;
    flex-shrink: 0;
}

[dir="ltr"] .acc-sheet__chevron {
    transform: scaleX(-1);
}

body.acc-sheet-open {
    overflow: hidden !important;
}

@media (min-width: 768px) {
    .acc-sheet {
        left: 50%;
        right: auto;
        width: min(440px, calc(100% - 2rem));
        margin: 0;
        transform: translate3d(-50%, 110%, 0);
        border-radius: 22px 22px 16px 16px;
        bottom: 1rem;
        max-height: min(80dvh, 520px);
    }

    .acc-sheet-root.is-open .acc-sheet {
        transform: translate3d(-50%, 0, 0);
    }
}
