/******************************************
*
* Pluginname: AS Captcha
* Version:    1.8
* Datum:      15.10.2026
* Autor:      Alfred Steckel
* Dateiname:  as_captcha_style.css.php
*
******************************************/
/* Frontend Captcha styles. Backend views are styled by the active admin theme. */

.as-captcha-widget { max-width: 420px; border: 1px solid currentColor; border-radius: 7px; padding: 15px; margin: 12px 0; color: CanvasText; background-color: Canvas; }
.as-captcha-widget label { display: flex; flex-direction: column; gap: 9px; }
.as-captcha-widget input { padding: 8px; border: 1px solid currentColor; border-radius: 5px; }
.as-captcha-prompt { font-weight: bold; }
.as-captcha-text-code { display: inline-block; width: max-content; padding: 8px 18px; letter-spacing: 5px; font: bold 24px monospace; border: 1px dashed currentColor; }
.as-captcha-image { display: block; max-width: 100%; height: auto; }
/* Contact and custom forms show the check as a normal form field. */
:is(.as-formular-layout, .as-contact-form) .as-captcha-widget {
    max-width: 100%;
    border: 0;
    border-radius: 0;
    padding: 0;
    margin: 8px 0;
    color: inherit;
    background: transparent;
}
:is(.as-formular-layout, .as-contact-form) [data-as-captcha-recaptcha] > .as-captcha-prompt,
:is(.as-formular-layout, .as-contact-form) [data-as-captcha-google-error]:empty {
    display: none;
}
.as-captcha-modal[hidden] { display: none; }
.as-captcha-modal { position: fixed; inset: 0; z-index: 100000; display: flex; align-items: center; justify-content: center; padding: 18px; background-color: rgb(0 0 0 / 65%); }
.as-captcha-modal-window { position: relative; width: min(440px, 100%); padding: 22px; border: 1px solid currentColor; border-radius: 9px; color: CanvasText; background-color: Canvas; box-shadow: 0 18px 55px rgb(0 0 0 / 35%); }
.as-captcha-modal-window h2 { margin: 0 35px 12px 0; }
.as-captcha-modal-close { position: absolute; top: 8px; right: 10px; border: 0; background: transparent; font-size: 28px; cursor: pointer; }
.as-captcha-modal-prompt { font-weight: bold; line-height: 1.45; }
.as-captcha-modal-display { margin: 12px 0; }
.as-captcha-modal-label { display: flex; flex-direction: column; gap: 6px; font-weight: bold; }
.as-captcha-modal-answer { padding: 10px; border: 1px solid currentColor; border-radius: 5px; color: FieldText; background-color: Field; font-size: 16px; }
.as-captcha-modal-error { min-height: 1.3em; font-weight: bold; }
.as-captcha-modal-actions { display: flex; justify-content: flex-end; gap: 9px; }
.as-captcha-modal-actions button { border: 1px solid ButtonBorder; border-radius: 5px; padding: 9px 13px; color: ButtonText; background-color: ButtonFace; cursor: pointer; font-weight: bold; }
.as-captcha-modal-cancel { }
.as-captcha-modal-check { }
.as-captcha-modal-check:disabled { opacity: .55; cursor: wait; }

/* Backend: Abstand zwischen Captcha-Eingabebereich und Aktionsbutton. */
.adm_content-area form:has(.as-captcha-widget) > .adm_button {
    margin-top: 12px;
}
/* Backend: Farben kommen aus dem aktiven Admin-Theme. */
.adm_content-area .as-captcha-widget {
    color: inherit;
    background: transparent;
    border-color: currentColor;
}

.adm_content-area .as-captcha-widget input[type="text"] {
    color: inherit;
    background: inherit;
}

.adm_content-area .as-captcha-text-code {
    color: inherit;
    background: transparent;
    border-color: currentColor;
}
