html.gk-modal-open,
body.gk-modal-open {
    overflow: hidden;
}

.gk-modal {
    direction: rtl;
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: none;
    font-family: inherit;
}

.gk-modal.is-active {
    display: block;
}

.gk-modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.28);
    backdrop-filter: blur(2px);
}

.gk-modal__dialog {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    width: min(400px, calc(100vw - 24px));
    margin: 48px auto 0;
    border-radius: 12px;
    box-shadow: 0 16px 50px rgba(0, 0, 0, 0.22);
    padding: 22px 20px 26px;
    text-align: center;
    box-sizing: border-box;
}

.gk-modal__close {
    position: absolute;
    top: 10px;
    left: 12px;
    border: 0;
    background: transparent;
    color: #7a7a7a;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    padding: 0;
    width: 28px;
    height: 28px;
}

.gk-modal__close:hover {
    color: #333;
}

.gk-modal__title {
    margin: 10px 12px 18px;
    color: #383838;
    font-size: 20px;
    line-height: 1.8;
    font-weight: 500;
}

.gk-modal__desc {
    margin: 0 0 14px;
    color: #666;
    font-size: 16px;
    line-height: 1.9;
}

.gk-modal__link {
    display: inline-block;
    color: #1677ff;
    font-size: 16px;
    line-height: 1.8;
    text-decoration: none;
    word-break: break-word;
}

.gk-modal__link:hover {
    text-decoration: underline;
}

@media (max-width: 480px) {
    .gk-modal__dialog {
        margin-top: 24px;
        padding: 20px 16px 22px;
    }

    .gk-modal__title {
        font-size: 18px;
        margin: 10px 8px 14px;
    }

    .gk-modal__desc,
    .gk-modal__link {
        font-size: 15px;
    }
}
