.hk-hcaptcha-gateway {
    position: fixed;
    z-index: 9999999;
    inset: 0;
    display: grid;
    overflow: hidden auto;
    padding: 16px;
    place-items: center;
}

.hk-hcaptcha-gateway[hidden] {
    display: none;
}

.hk-hcaptcha-gateway__backdrop {
    position: fixed;
    inset: 0;
    background: rgba(38, 47, 57, 0.68);
    backdrop-filter: blur(4px);
}

.hk-hcaptcha-gateway__surface {
    position: relative;
    z-index: 1;
    width: min(92vw, 570px);
    max-width: none;
    max-height: calc(100vh - 32px);
    padding: 0;
    overflow: hidden auto;
    color: #3c414e;
    background: #fff;
    border: 0;
    border-radius: 5px;
    box-shadow: 0 30px 80px rgba(32, 40, 49, 0.3);
}

.hk-hcaptcha-gateway:not([hidden]) .hk-hcaptcha-gateway__surface {
    animation: hk-hcaptcha-gateway-enter 180ms ease-out both;
}

.hk-hcaptcha-gateway__accent {
    height: 6px;
    background: linear-gradient(90deg, #e30613 0 25%, #4c5662 25% 100%);
}

.hk-hcaptcha-gateway__panel {
    position: relative;
    padding: 38px 42px 40px;
}

.hk-hcaptcha-gateway__close {
    position: absolute;
    top: 18px;
    right: 18px;
    display: grid;
    width: 40px;
    height: 40px;
    padding: 0;
    place-items: center;
    color: #4c5662;
    font: 400 30px/1 "Open Sans", sans-serif;
    background: #edf0f3;
    border: 0;
    border-radius: 50%;
    cursor: pointer;
    transition: color 150ms ease, background-color 150ms ease, transform 150ms ease;
}

.hk-hcaptcha-gateway__close:hover,
.hk-hcaptcha-gateway__close:focus-visible {
    color: #fff;
    background: #e30613;
    transform: rotate(4deg);
}

.hk-hcaptcha-gateway__eyebrow {
    margin: 0 52px 8px 0;
    color: #e30613;
    font: 700 12px/1.4 "Open Sans", sans-serif;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.hk-hcaptcha-gateway__title {
    margin: 0 52px 14px 0;
    color: #4c5662;
    font: 600 clamp(28px, 5vw, 38px)/1.12 "Poppins", sans-serif;
}

.hk-hcaptcha-gateway__description {
    max-width: 45ch;
    margin: 0 0 28px;
    color: #666;
    font: 400 16px/1.6 "Open Sans", sans-serif;
}

.hk-hcaptcha-gateway__captcha {
    min-height: 78px;
}

.hk-hcaptcha-gateway__captcha .h-captcha {
    margin: 0;
}

.hk-hcaptcha-gateway__status {
    position: relative;
    min-height: 24px;
    margin: 18px 0 24px;
    padding-left: 18px;
    color: #666;
    font: 600 14px/1.55 "Open Sans", sans-serif;
}

.hk-hcaptcha-gateway__status::before {
    position: absolute;
    top: 0.55em;
    left: 0;
    width: 7px;
    height: 7px;
    background: #9d9d9c;
    border-radius: 50%;
    content: "";
}

.hk-hcaptcha-gateway__status.is-loading::before {
    background: #4c5662;
    animation: hk-hcaptcha-gateway-pulse 800ms ease-in-out infinite alternate;
}

.hk-hcaptcha-gateway__status.is-success {
    color: #28724f;
}

.hk-hcaptcha-gateway__status.is-success::before {
    background: #28724f;
}

.hk-hcaptcha-gateway__status.is-error {
    color: #b10e18;
}

.hk-hcaptcha-gateway__status.is-error::before {
    background: #e30613;
}

.hk-hcaptcha-gateway__actions {
    display: flex;
    flex-wrap: wrap-reverse;
    gap: 12px;
    justify-content: flex-end;
}

.hk-hcaptcha-gateway__button {
    min-height: 48px;
    padding: 12px 20px;
    font: 600 15px/1.3 "Open Sans", sans-serif;
    border: 1px solid transparent;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 150ms ease, border-color 150ms ease, color 150ms ease, transform 150ms ease;
}

.hk-hcaptcha-gateway__button:focus-visible,
.hk-hcaptcha-gateway__close:focus-visible {
    outline: 3px solid rgba(227, 6, 19, 0.25);
    outline-offset: 3px;
}

.hk-hcaptcha-gateway__button--primary {
    color: #fff;
    background: #e30613;
}

.hk-hcaptcha-gateway__button--primary:hover:not(:disabled) {
    background: #b9040f;
    transform: translateY(-1px);
}

.hk-hcaptcha-gateway__button--primary:disabled {
    color: #747b83;
    background: #dfe3e6;
    cursor: not-allowed;
}

.hk-hcaptcha-gateway__button--secondary {
    color: #4c5662;
    background: #fff;
    border-color: #cbd1d6;
}

.hk-hcaptcha-gateway__button--secondary:hover {
    background: #edf0f3;
    border-color: #9d9d9c;
}

body.hk-hcaptcha-gateway-open {
    overflow: hidden;
}

@keyframes hk-hcaptcha-gateway-enter {
    from {
        opacity: 0;
        transform: translateY(12px) scale(0.985);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes hk-hcaptcha-gateway-pulse {
    to {
        opacity: 0.35;
        transform: scale(0.75);
    }
}

@media (max-width: 480px) {
    .hk-hcaptcha-gateway__panel {
        padding: 32px 22px 26px;
    }

    .hk-hcaptcha-gateway__captcha {
        margin-left: min(0px, calc((100% - 302px) / 2));
        transform: scale(min(1, calc((100vw - 68px) / 302)));
        transform-origin: left top;
    }

    .hk-hcaptcha-gateway__actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .hk-hcaptcha-gateway__button {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hk-hcaptcha-gateway:not([hidden]) .hk-hcaptcha-gateway__surface,
    .hk-hcaptcha-gateway__status.is-loading::before {
        animation: none;
    }

    .hk-hcaptcha-gateway__button,
    .hk-hcaptcha-gateway__close {
        transition: none;
    }
}
