.bottom-sheet {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--vh);
    opacity: 0;
    z-index: -1;
    transition-duration: 0.5s;

    &.on {
        z-index: 9999;
        opacity: 1;

        .bottom-sheet-panel {
            transform: translate(-50%, 0);
        }
    }

    &.no-transition,
    &.no-transition .bottom-sheet-panel {
        transition-duration: 0s;
    }

    .bottom-sheet-dim {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
    }

    .bottom-sheet-panel {
        position: absolute;
        bottom: 0;
        left: 50%;
        display: flex;
        flex-direction: column;
        width: 100%;
        max-width: 480px;
        max-height: calc(var(--vh) * 0.9);
        box-sizing: border-box;
        border-radius: 26px 26px 0 0;
        background-color: var(--white-color);
        transform: translate(-50%, 100%);
        transition-duration: 0.5s;
    }

    .bottom-sheet-header {
        display: flex;
        flex-direction: column;
        flex-shrink: 0;
        padding: 20px 20px 0;

        .bottom-sheet-title {
            color: var(--gray-900);
            font-size: 20px;
            font-weight: 700;
            line-height: 30px;
        }

        .bottom-sheet-desc {
            margin-top: 4px;
            color: var(--gray-500);
            font-size: 14px;
            font-weight: var(--fontWeight-normal);
            line-height: 1.5;
        }
    }

    .bottom-sheet-close {
        align-self: flex-end;
        width: 24px;
        height: 24px;
        border-radius: 50%;
        background: var(--gray-050) url('/assets/images/icon/ic-sheet-close-3a99da3a0ea18fdcc79e6eef1a3acea5.svg') no-repeat center / 14px;
        cursor: pointer;
    }

    .bottom-sheet-body {
        display: flex;
        flex-direction: column;
        gap: 24px;
        min-height: 0;
        padding: 24px 20px;

        .note {
            color: #717171;
            font-size: 14px;
            font-weight: var(--fontWeight-normal);
            line-height: 20px;
        }

        .menu-list {
            display: flex;
            flex-direction: column;
            gap: 8px;
            overflow-y: auto;
            overscroll-behavior: contain;

            li {
                flex-shrink: 0;
            }

            .menu-item {
                display: flex;
                width: 100%;
                text-align: left;
                align-items: center;
                justify-content: space-between;
                height: 72px;
                padding: 0 16px;
                box-sizing: border-box;
                border-radius: 14px;
                background-color: var(--gray-000);

                .menu-info {
                    display: flex;
                    align-items: center;
                    gap: 12px;
                    min-width: 0;
                }

                .icon-box {
                    display: flex;
                    flex-shrink: 0;
                    align-items: center;
                    justify-content: center;
                    width: 40px;
                    height: 40px;
                    border-radius: 12px;
                    background-color: var(--white-color);
                }

                .menu-text {
                    display: flex;
                    flex-direction: column;
                    gap: 4px;
                    min-width: 0;

                    .name {
                        color: var(--gray-900);
                        font-size: 16px;
                        font-weight: var(--fontWeight-medium);
                        line-height: 1.4;

                        &.is-danger {
                            color: var(--red-color);
                        }
                    }

                    .desc {
                        color: #717171;
                        font-size: 13px;
                        font-weight: var(--fontWeight-normal);
                        line-height: 1.3;
                    }
                }

                .arrow {
                    flex-shrink: 0;
                }
            }
        }
    }

    .bottom-sheet-footer {
        display: flex;
        gap: 10px;
        padding: 24px 16px;

        &.footer-stack {
            flex-direction: column;
            gap: 20px;

            .bottom-sheet-btn {
                flex: none;
            }
        }

        &.footer-none {
            display: none;
        }
    }

    .bottom-sheet-panel:has(> .bottom-sheet-footer:not(.footer-none)) .bottom-sheet-body {
        padding-bottom: 0;
    }

    .bottom-sheet-btn {
        flex: 1;
        padding: 16px 20px;
        border-radius: 12px;
        background-color: var(--primary-color);
        color: var(--gray-000);
        text-align: center;
        font-size: 16px;
        font-weight: 600;
        line-height: 24px;

        &:disabled {
            background-color: #A4A4A4;
        }

        &.secondary {
            color: var(--gray-900);
            background-color: var(--gray-050);
        }
    }

    .bottom-sheet-link-btn {
        color: var(--gray-600);
        font-size: 16px;
        font-weight: var(--fontWeight-medium);
        line-height: 24px;
    }

    &.sheet-center {
        .bottom-sheet-header {
            text-align: center;
        }

        .bottom-sheet-body {
            align-items: center;
            gap: 4px;
            padding-top: 4px;
            text-align: center;
        }
    }
}
