/* ==========================================================================
   Checkout Login Gate — Overlay shown when user must log in before checkout
   --------------------------------------------------------------------------
   Works together with checkout-login-modal.js
   ========================================================================== */

/* --- Gate Overlay --- */
.dokmeh-login-gate {
    position: fixed;
    inset: 0;
    z-index: 9999999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 84, 107, 0.35);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    padding: 20px;
    animation: dokmehGateFadeIn 0.3s ease;
}

@keyframes dokmehGateFadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* --- Gate Card --- */
.dokmeh-login-gate__card {
    background: #ffffff;
    border-radius: 18px;
    padding: 40px 32px;
    max-width: 420px;
    width: 100%;
    text-align: center;
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.18),
        0 4px 16px rgba(0, 0, 0, 0.08);
    animation: dokmehGatePop 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes dokmehGatePop {
    from {
        transform: translateY(20px) scale(0.95);
        opacity: 0;
    }
    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

/* --- Icon --- */
.dokmeh-login-gate__icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    border-radius: 50%;
    background: #eaf6fa;
    color: #00546b;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* --- Message --- */
.dokmeh-login-gate__message {
    font-size: 16px;
    line-height: 1.7;
    color: #333;
    margin: 0 0 24px;
    font-weight: 500;
}

/* --- Login Button --- */
.dokmeh-login-gate__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 14px 24px;
    border: none;
    border-radius: 12px;
    background: #00546b;
    color: #ffffff;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
    box-shadow: 0 4px 14px rgba(0, 84, 107, 0.35);
}

.dokmeh-login-gate__btn:hover {
    background: #003d4f;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(0, 84, 107, 0.45);
}

.dokmeh-login-gate__btn:active {
    transform: translateY(0);
}

.dokmeh-login-gate__btn:focus-visible {
    outline: 3px solid #4aa3c0;
    outline-offset: 2px;
}

.dokmeh-login-gate__btn svg {
    flex-shrink: 0;
}

/* --- Mobile --- */
@media (max-width: 600px) {
    .dokmeh-login-gate__card {
        padding: 32px 24px;
        max-width: calc(100vw - 32px);
    }

    .dokmeh-login-gate__icon {
        width: 64px;
        height: 64px;
    }

    .dokmeh-login-gate__message {
        font-size: 14px;
    }

    .dokmeh-login-gate__btn {
        font-size: 14px;
        padding: 12px 20px;
    }
}

/* --- Respect reduced motion --- */
@media (prefers-reduced-motion: reduce) {
    .dokmeh-login-gate,
    .dokmeh-login-gate__card {
        animation-duration: 0.01s;
    }
}

/* --- Dark mode support --- */
@media (prefers-color-scheme: dark) {
    .dokmeh-login-gate {
        background: rgba(0, 0, 0, 0.6);
    }

    .dokmeh-login-gate__card {
        background: #1e1e1e;
    }

    .dokmeh-login-gate__icon {
        background: rgba(0, 84, 107, 0.2);
    }

    .dokmeh-login-gate__message {
        color: #e0e0e0;
    }
}