
:root {
    --ampg-accent: var(--e-global-color-primary, #0795b7);
    --ampg-text: #111827;
    --ampg-muted: #4b5563;
    --ampg-bg: #ffffff;
}

html.ampg-gate-required,
html.ampg-gate-required body {
    overflow: hidden !important;
}

.ampg-gate {
    position: fixed;
    inset: 0;
    z-index: 2147483000;
    display: none;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 100dvh;
    padding: 40px 28px;
    overflow-y: auto;
    background: var(--ampg-bg);
    color: var(--ampg-text);
    opacity: 0;
    transition: opacity 180ms ease;
}

html.ampg-gate-required .ampg-gate {
    display: flex;
}

.ampg-gate.ampg-gate--visible {
    opacity: 1;
}

.ampg-gate__inner {
    width: min(1180px, 100%);
    margin: auto;
    text-align: center;
}

.ampg-gate__logo {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100px;
    margin: 0 auto 40px;
}

.ampg-logo-image {
    display: block;
    width: auto;
    max-width: 190px;
    max-height: 105px;
    object-fit: contain;
}

.ampg-logo-fallback {
    display: inline-flex;
    flex-direction: column;
    gap: 2px;
    font-family: inherit;
    line-height: 1;
    letter-spacing: .08em;
    color: #374151;
}

.ampg-logo-fallback span {
    font-size: 14px;
    font-weight: 500;
}

.ampg-logo-fallback strong {
    font-size: 28px;
    font-weight: 700;
}

.ampg-gate__title {
    margin: 0 0 30px;
    color: #050505;
    font-family: inherit;
    font-size: clamp(30px, 3vw, 42px);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -.025em;
}

.ampg-gate__message {
    position: relative;
    max-width: 1160px;
    margin: 0 auto;
    color: #101010;
    font-family: inherit;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.75;
}

.ampg-gate__message p {
    display: inline;
    margin: 0;
}

.ampg-gate__asterisk {
    margin-right: 3px;
    color: var(--ampg-accent);
    font-weight: 700;
}

.ampg-gate__actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 72px;
    margin-top: 64px;
}

.ampg-button {
    min-width: 160px;
    min-height: 48px;
    padding: 12px 24px;
    border: 1.5px solid var(--ampg-accent);
    border-radius: 10px;
    box-shadow: none;
    font-family: inherit;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: .015em;
    text-transform: uppercase;
    cursor: pointer;
    transition:
        background-color 160ms ease,
        color 160ms ease,
        transform 160ms ease,
        box-shadow 160ms ease;
}

.ampg-button:hover {
    transform: translateY(-1px);
}

.ampg-button:focus-visible {
    outline: 3px solid color-mix(in srgb, var(--ampg-accent) 30%, transparent);
    outline-offset: 3px;
}

.ampg-button--primary {
    background: var(--ampg-accent);
    color: #fff;
}

.ampg-button--primary:hover {
    filter: brightness(.94);
}

.ampg-button--secondary {
    background: #fff;
    color: var(--ampg-accent);
}

.ampg-button--secondary:hover {
    background: color-mix(in srgb, var(--ampg-accent) 6%, #fff);
}

@media (max-width: 700px) {
    .ampg-gate {
        padding: 28px 20px;
    }

    .ampg-gate__logo {
        min-height: 72px;
        margin-bottom: 28px;
    }

    .ampg-logo-image {
        max-width: 160px;
        max-height: 80px;
    }

    .ampg-gate__title {
        margin-bottom: 24px;
        font-size: clamp(28px, 9vw, 36px);
    }

    .ampg-gate__message {
        font-size: 13px;
        line-height: 1.65;
    }

    .ampg-gate__actions {
        flex-direction: column-reverse;
        gap: 14px;
        margin-top: 36px;
    }

    .ampg-button {
        width: min(320px, 100%);
    }
}

@media (prefers-reduced-motion: reduce) {
    .ampg-gate,
    .ampg-button {
        transition: none;
    }
}
