/* =========================================================
   PORTALRESIZER BOOKMARK POPUP
   ========================================================= */

#portalresizer-bookmark-popup {
    position: fixed;
    inset: 0;
    z-index: 999999;
}


/* =========================================================
   OVERLAY
   ========================================================= */

.pr-bookmark-overlay {
    position: fixed;
    inset: 0;

    background: rgba(15, 23, 42, 0.45);

    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);

    animation:
        prBookmarkFadeIn 0.25s ease forwards;
}


/* =========================================================
   POPUP
   ========================================================= */

.pr-bookmark-popup {
    position: fixed;

    width: calc(100% - 32px);
    max-width: 430px;

    left: 50%;
    top: 50%;

    transform:
        translate(-50%, -50%)
        scale(1);

    background: #ffffff;

    border-radius: 20px;

    padding: 32px 28px 26px;

    text-align: center;

    box-shadow:
        0 25px 60px rgba(15, 23, 42, 0.25);

    animation:
        prBookmarkPopupIn 0.3s
        cubic-bezier(0.22, 1, 0.36, 1)
        forwards;
}


/* =========================================================
   CLOSE BUTTON
   ========================================================= */

.pr-bookmark-close {
    position: absolute;

    top: 12px;
    right: 14px;

    width: 34px;
    height: 34px;

    border: none;

    background: #f8fafc;

    color: #64748b;

    border-radius: 50%;

    font-size: 24px;

    line-height: 30px;

    cursor: pointer;

    transition:
        background 0.2s ease,
        color 0.2s ease,
        transform 0.2s ease;
}


.pr-bookmark-close:hover {
    background: #f1f5f9;

    color: #0f172a;

    transform: rotate(90deg);
}


/* =========================================================
   ICON
   ========================================================= */

.pr-bookmark-icon {
    width: 64px;
    height: 64px;

    margin: 0 auto 18px;

    display: flex;

    align-items: center;
    justify-content: center;

    background: #eef2ff;

    border-radius: 18px;

    font-size: 32px;

    box-shadow:
        inset 0 0 0 1px #e0e7ff;
}


/* =========================================================
   TITLE
   ========================================================= */

.pr-bookmark-title {
    margin: 0 0 10px;

    font-family:
        Inter,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;

    font-size: 24px;

    line-height: 1.25;

    font-weight: 700;

    color: #111827;
}


/* =========================================================
   DESCRIPTION
   ========================================================= */

.pr-bookmark-description {
    margin: 0 auto 22px;

    max-width: 360px;

    font-family:
        Inter,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;

    font-size: 14px;

    line-height: 1.65;

    color: #64748b;
}


/* =========================================================
   PRIMARY BUTTON
   ========================================================= */

.pr-bookmark-primary {
    width: 100%;

    border: none;

    border-radius: 12px;

    padding: 13px 18px;

    background: #4f46e5;

    color: #ffffff;

    font-family:
        Inter,
        system-ui,
        sans-serif;

    font-size: 14px;

    font-weight: 700;

    cursor: pointer;

    transition:
        background 0.2s ease,
        transform 0.2s ease,
        box-shadow 0.2s ease;
}


.pr-bookmark-primary:hover {
    background: #4338ca;

    transform: translateY(-1px);

    box-shadow:
        0 8px 20px rgba(79, 70, 229, 0.25);
}


.pr-bookmark-primary.pr-bookmark-active {
    background: #059669;
}


/* =========================================================
   SECONDARY BUTTON
   ========================================================= */

.pr-bookmark-secondary {
    width: 100%;

    border: none;

    background: transparent;

    color: #64748b;

    padding: 11px;

    margin-top: 4px;

    font-family:
        Inter,
        system-ui,
        sans-serif;

    font-size: 13px;

    font-weight: 600;

    cursor: pointer;

    transition:
        color 0.2s ease;
}


.pr-bookmark-secondary:hover {
    color: #111827;
}


/* =========================================================
   HINT
   ========================================================= */

.pr-bookmark-hint {
    margin: 12px 0 0;

    font-family:
        Inter,
        system-ui,
        sans-serif;

    font-size: 11px;

    line-height: 1.5;

    color: #94a3b8;
}


.pr-bookmark-hint strong {
    color: #475569;
}


/* =========================================================
   ANIMATIONS
   ========================================================= */

@keyframes prBookmarkFadeIn {

    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }

}


@keyframes prBookmarkPopupIn {

    from {
        opacity: 0;

        transform:
            translate(-50%, -46%)
            scale(0.94);
    }

    to {
        opacity: 1;

        transform:
            translate(-50%, -50%)
            scale(1);
    }

}


.pr-bookmark-hide .pr-bookmark-overlay {
    animation:
        prBookmarkFadeOut 0.25s ease forwards;
}


.pr-bookmark-hide .pr-bookmark-popup {
    animation:
        prBookmarkPopupOut 0.25s ease forwards;
}


@keyframes prBookmarkFadeOut {

    from {
        opacity: 1;
    }

    to {
        opacity: 0;
    }

}


@keyframes prBookmarkPopupOut {

    from {
        opacity: 1;

        transform:
            translate(-50%, -50%)
            scale(1);
    }

    to {
        opacity: 0;

        transform:
            translate(-50%, -46%)
            scale(0.94);
    }

}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 480px) {

    .pr-bookmark-popup {

        width: calc(100% - 24px);

        padding:
            28px
            20px
            22px;

        border-radius: 18px;

    }


    .pr-bookmark-icon {

        width: 56px;
        height: 56px;

        font-size: 28px;

        margin-bottom: 15px;

    }


    .pr-bookmark-title {

        font-size: 21px;

    }


    .pr-bookmark-description {

        font-size: 13px;

        line-height: 1.6;

    }

}