body.sc-bookmark-limit-open {
    overflow: hidden;
}

body.sc-bookmark-limit-open .sc-floating-btn {
    visibility: hidden;
    pointer-events: none;
}

.sc-bookmark-limit-modal {
    position: fixed;
    inset: 0;
    z-index: 9500;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.sc-bookmark-limit-modal[hidden] {
    display: none;
}

.sc-bookmark-limit-backdrop {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    background: rgba(42, 40, 45, 0.42);
    cursor: default;
}

.sc-bookmark-limit-panel {
    position: relative;
    z-index: 1;
    display: flex;
    width: 536px;
    max-width: calc(100vw - 40px);
    min-height: 250px;
    padding: 54px 20px 28px;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    gap: 36px;
    border-radius: 16px;
    background: var(--White, #FFF);
    box-shadow: 0 -2px 12px 0 rgba(0, 0, 0, 0.10);
}

.sc-bookmark-limit-panel:focus {
    outline: 0;
}

.sc-bookmark-limit-close {
    position: absolute;
    top: 16px;
    right: 16px;
    display: none;
    width: 24px;
    height: 24px;
    padding: 0;
    align-items: center;
    justify-content: center;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.sc-bookmark-limit-close img {
    display: block;
    width: 24px;
    height: 24px;
}

.sc-bookmark-limit-copy {
    display: flex;
    width: 100%;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    text-align: center;
}

.sc-bookmark-limit-copy [hidden] {
    display: none;
}

.sc-bookmark-limit-copy strong,
.sc-bookmark-limit-copy p {
    margin: 0;
    color: var(--Gray-900, #19171A);
    font-family: Pretendard, sans-serif;
    font-style: normal;
    letter-spacing: 0;
}

.sc-bookmark-limit-copy strong {
    font-size: 20px;
    font-weight: 700;
    line-height: 28px;
}

.sc-bookmark-limit-title-break {
    display: none;
}

.sc-bookmark-limit-copy p {
    font-size: 18px;
    font-weight: 500;
    line-height: 24px;
}

.sc-bookmark-limit-actions {
    display: flex;
    width: 100%;
    gap: 12px;
}

.sc-bookmark-limit-button {
    display: flex;
    min-width: 0;
    height: 56px;
    padding: 0 16px;
    flex: 1 1 0;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 8px;
    font-family: Pretendard, sans-serif;
    font-size: 16px;
    font-style: normal;
    font-weight: 600;
    line-height: 24px;
    letter-spacing: 0;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
}

.sc-bookmark-limit-button--later {
    background: var(--Gray-200, #E9E7EC);
    color: var(--Gray-600, #625F66);
}

.sc-bookmark-limit-button--browse {
    background: var(--Primary-500, #600FC9);
    color: var(--Gray-50, #FAF9FC);
}

.sc-bookmark-limit-button--browse:hover,
.sc-bookmark-limit-button--browse:focus-visible {
    background: var(--Primary-600, #4D0CA1);
    color: var(--Gray-50, #FAF9FC);
}

.sc-bookmark-limit-button--later:hover,
.sc-bookmark-limit-button--later:focus-visible {
    background: var(--Gray-300, #D6D4DB);
    color: var(--Gray-700, #444147);
}

@media (max-width: 767px) {
    .sc-bookmark-limit-modal {
        align-items: flex-end;
        padding: 0;
    }

    .sc-bookmark-limit-panel {
        width: 100%;
        max-width: none;
        min-height: 250px;
        max-height: calc(100dvh - 16px);
        padding: 54px 20px calc(28px + env(safe-area-inset-bottom));
        border-radius: 16px 16px 0 0;
        overflow-y: auto;
    }

    .sc-bookmark-limit-close {
        display: flex;
    }

    .sc-bookmark-limit-title-break {
        display: block;
    }

    .sc-bookmark-limit-title-desktop-mark {
        display: none;
    }

    .sc-bookmark-limit-copy strong {
        font-size: 16px;
        line-height: 24px;
    }

    .sc-bookmark-limit-copy p {
        font-size: 14px;
        line-height: 20px;
    }

    .sc-bookmark-limit-button {
        height: 52px;
        font-size: 14px;
        line-height: 20px;
    }
}
