.location-gate {
    position: fixed;
    inset: 0;
    z-index: 20000;
    display: grid;
    place-items: center;
    padding: 24px;
    background: rgba(18, 31, 27, 0.82);
}
.location-gate {
    --location-ink: #20362e;
    --location-muted: #687970;
    --location-green: #287c55;
    --location-line: #dce7e0;
    position: fixed;
    inset: 0;
    z-index: 20000;
    display: grid;
    place-items: center;
    padding: 20px;
    background: rgba(13, 25, 21, 0.74);
    -webkit-backdrop-filter: blur(7px);
    backdrop-filter: blur(7px);
}

.location-gate[hidden] {
    display: none;
}

.location-gate__dialog {
    position: relative;
    width: min(100%, 456px);
    padding: 34px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-top: 4px solid var(--location-green);
    border-radius: 8px;
    background: #fff;
    color: var(--location-ink);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.3);
    animation: location-dialog-enter 240ms ease-out both;
}

.location-gate__header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 22px;
}

.location-gate__icon {
    display: grid;
    flex: 0 0 54px;
    width: 54px;
    height: 54px;
    place-items: center;
    border: 1px solid #d4e7da;
    border-radius: 8px;
    background-color: #edf6f0;
    background-image: linear-gradient(135deg, transparent 48%, rgba(40, 124, 85, 0.06) 49%, rgba(40, 124, 85, 0.06) 51%, transparent 52%);
    color: var(--location-green);
    font-size: 25px;
}

.location-gate__eyebrow {
    margin: 0 0 5px;
    color: var(--location-muted);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}

.location-gate__dialog h2 {
    margin: 0;
    color: var(--location-ink);
    font-size: 23px;
    font-weight: 600;
    line-height: 1.25;
}

.location-gate__description {
    margin: 0 0 24px;
    color: #52645a;
    font-size: 14px;
    line-height: 1.6;
}

.location-gate__button {
    display: flex;
    width: 100%;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: 1px solid #236d4a;
    border-radius: 4px;
    background: #287c55;
    box-shadow: 0 3px 0 #1e6243;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    transition: background-color 140ms ease, box-shadow 140ms ease, transform 140ms ease;
}

.location-gate__button:hover,
.location-gate__button:focus {
    border-color: #1e6243;
    background: #216d4a;
    color: #fff;
}

.location-gate__button:active {
    transform: translateY(2px);
    box-shadow: 0 1px 0 #1e6243;
}

.location-gate__button:focus-visible {
    outline: 3px solid #9bceae;
    outline-offset: 3px;
}

.location-gate__button:disabled {
    cursor: wait;
    opacity: 0.72;
}

.location-gate__status {
    min-height: 40px;
    margin: 18px 0 0 !important;
    padding: 10px 12px;
    border-left: 3px solid #9ab2a3;
    border-radius: 0 4px 4px 0;
    background: #f3f6f4;
    color: var(--location-muted);
    font-size: 12px;
    line-height: 1.5;
}

@keyframes location-dialog-enter {
    from {
        opacity: 0;
        transform: translateY(8px) scale(0.99);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@media (max-width: 480px) {
    .location-gate {
        padding: 16px;
    }

    .location-gate__dialog {
        padding: 26px 22px;
    }

    .location-gate__header {
        gap: 13px;
    }

    .location-gate__dialog h2 {
        font-size: 21px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .location-gate__dialog,
    .location-gate__button {
        animation: none;
        transition: none;
    }
}

.location-gate[hidden] {
    display: none;
}

.location-gate__dialog {
    width: min(100%, 440px);
    padding: 28px;
    border-top: 4px solid #4ea84d;
    background: #fff;
    color: #26352e;
    box-shadow: 0 18px 54px rgba(0, 0, 0, 0.28);
}

.location-gate__dialog h2 {
    margin: 0 0 12px;
    font-size: 22px;
}

.location-gate__dialog p {
    margin: 0 0 5px;
}

.location-gate__status {
    min-height: 20px;
    margin: 14px 0 0 !important;
    color: #6b756f;
}