.altcha-container {
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 10px;
    padding: 12px 16px;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.04);
    position: relative;
}

.altcha-status {
    font-size: 0.95rem;
    color: #1f1f1f;
    flex: 1 1 auto;
    min-height: 1.25rem;
}

.altcha-progress {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.altcha-spinner {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 3px solid rgba(28, 88, 176, 0.25);
    border-top-color: #1c58b0;
    animation: altcha-spin 0.9s linear infinite;
    display: inline-block;
}

.altcha-container[data-altcha-ready="1"] .altcha-spinner {
    border-color: rgba(6, 153, 0, 0.2);
    border-top-color: rgba(6, 153, 0, 0.6);
    animation: none;
}

.altcha-container[data-altcha-ready="1"] .altcha-progress::after {
    content: '\2713';
    color: #069900;
    font-size: 1.2rem;
    font-weight: bold;
}

.altcha-container[data-altcha-ready="1"] .altcha-spinner {
    display: none;
}

.altcha-container[data-altcha-error="1"] {
    border-color: rgba(220, 53, 69, 0.35);
    background: rgba(248, 215, 218, 0.25);
}

.altcha-container[data-altcha-error="1"] .altcha-status {
    color: #b02a37;
}

.altcha-retry {
    margin-left: auto;
    padding: 6px 14px;
    font-size: 0.85rem;
    border-radius: 20px;
    border: 1px solid rgba(28, 88, 176, 0.35);
    background: rgba(28, 88, 176, 0.08);
    color: #1c58b0;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.altcha-retry:hover,
.altcha-retry:focus {
    background: rgba(28, 88, 176, 0.15);
    color: #0f3c78;
}

.altcha-retry:focus {
    outline: 2px solid rgba(28, 88, 176, 0.45);
    outline-offset: 2px;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

@keyframes altcha-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
