.tsv-checkout-login-gate {
    position: fixed;
    inset: 0;
    z-index: 100002;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

.tsv-checkout-login-gate[hidden] {
    display: none !important;
}

html.tsv-checkout-login-gate-open {
    overflow: hidden;
}

.tsv-checkout-login-gate__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(19, 15, 33, 0.68);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.tsv-checkout-login-gate__dialog {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 480px;
    background: #fff;
    border-radius: 24px;
    box-shadow: 0 20px 70px rgba(24, 18, 43, 0.34);
    border: 1px solid rgba(88, 62, 153, 0.12);
    padding: 28px 24px 24px;
    text-align: center;
}

.tsv-checkout-login-gate__close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 38px;
    height: 38px;
    border: none;
    border-radius: 12px;
    background: rgba(64, 49, 115, 0.08);
    color: #2f2945;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
}

.tsv-checkout-login-gate__title {
    margin: 0 0 12px;
    font-size: clamp(22px, 2.6vw, 28px);
    line-height: 1.25;
    color: #27243b;
}

.tsv-checkout-login-gate__text {
    margin: 0 0 22px;
    color: #5f5b74;
    font-size: 15px;
    line-height: 1.55;
}

.tsv-checkout-login-gate__actions {
    display: grid;
    gap: 10px;
}

.tsv-checkout-login-gate__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 20px;
    border-radius: 999px;
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.tsv-checkout-login-gate__btn--primary {
    background: linear-gradient(135deg, #cc95bb 0%, #b983cf 50%, #9b6ad0 100%);
    color: #fff;
    box-shadow: 0 8px 18px rgba(169, 115, 188, 0.3);
}

.tsv-checkout-login-gate__btn--secondary {
    background: #f4f0fa;
    color: #4a3568;
    border: 1px solid rgba(130, 95, 173, 0.22);
}

.tsv-checkout-login-gate__btn:hover {
    transform: translateY(-1px);
}

@media (min-width: 520px) {
    .tsv-checkout-login-gate__actions {
        grid-template-columns: 1fr 1fr;
    }
}
