.wahc-box {
    --wahc-text: #222222;
    --wahc-bg: #ffffff;
    --wahc-border: #d7dce1;
    --wahc-button: #2271b1;
    --wahc-button-text: #ffffff;
    --wahc-check: #20a464;

    box-sizing: border-box;
    display: block;
    width: calc(100% - 32px);
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
    min-height: 92px;
    padding: 18px 20px;
    border: 1px solid var(--wahc-border);
    border-radius: 12px;
    background: var(--wahc-bg);
    color: var(--wahc-text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    box-shadow: 0 4px 18px rgba(0, 0, 0, .06);
}

.wahc-loading,
.wahc-verified,
.wahc-checkline {
    display: flex;
    align-items: center;
}

.wahc-loading[hidden],
.wahc-verified[hidden] {
    display: none !important;
}

.wahc-loading {
    min-height: 54px;
    gap: 14px;
    justify-content: center;
    text-align: center;
}

.wahc-loading-text {
    font-size: 16px;
    font-weight: 600;
}

.wahc-spinner {
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
    border: 3px solid rgba(127, 127, 127, .25);
    border-top-color: var(--wahc-button);
    border-radius: 50%;
    animation: wahc-spin .8s linear infinite;
}

.wahc-verified {
    min-height: 54px;
    gap: 16px;
    justify-content: center;
    animation: wahc-in .22s ease-out both;
}

.wahc-verified[hidden] {
    display: none !important;
}

.wahc-checkline {
    gap: 12px;
    min-width: 0;
    justify-content: center;
}

.wahc-checkmark {
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 7px;
    background: var(--wahc-check);
    color: #fff;
    font-size: 20px;
    font-weight: 800;
    line-height: 1;
    animation: wahc-pop .25s ease-out both;
}

.wahc-message {
    font-size: 16px;
    font-weight: 600;
    overflow-wrap: anywhere;
}

.wahc-confirm {
    appearance: none;
    border: 0;
    border-radius: 8px;
    padding: 11px 18px;
    background: var(--wahc-button);
    color: var(--wahc-button-text);
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    transition: transform .15s ease, opacity .15s ease;
}

.wahc-confirm:hover {
    transform: translateY(-1px);
}

.wahc-confirm:active {
    transform: translateY(0);
}

.wahc-confirm:disabled {
    opacity: .5;
    cursor: not-allowed;
    transform: none;
}

@keyframes wahc-spin {
    to { transform: rotate(360deg); }
}

@keyframes wahc-pop {
    0% { transform: scale(.5); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

@keyframes wahc-in {
    from { opacity: 0; transform: translateY(3px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 520px) {
    .wahc-box {
        width: calc(100% - 24px);
    }

    .wahc-verified {
        align-items: center;
        flex-direction: column;
        text-align: center;
    }

    .wahc-checkline {
        width: 100%;
    }

    .wahc-confirm {
        width: 100%;
        max-width: 280px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .wahc-spinner,
    .wahc-checkmark,
    .wahc-verified {
        animation-duration: .001ms !important;
        animation-iteration-count: 1 !important;
    }
}
