/* ============================================================
   Revoco — Widerrufsbutton (BeeVisible_Revoco)
   ============================================================ */

/* Honeypot: für Menschen unsichtbar, für Bots ausfüllbar. */
.revoco-hp {
    position: absolute !important;
    left: -9999px !important;
    top: auto !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}

/* ---------- Trigger-Button (Widget / Auto) ---------- */
.revoco-trigger {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
    line-height: 1.3;
    cursor: pointer;
    border: none;
}
.revoco-trigger:hover { opacity: .92; text-decoration: none; }

.revoco-variant-floating {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 9998;
    box-shadow: 0 4px 14px rgba(0, 0, 0, .25);
}
.revoco-variant-footer {
    display: block;
    width: max-content;
    max-width: 90%;
    margin: 16px auto;
    background: transparent;
    color: inherit;
    text-decoration: underline;
    font-weight: 500;
    padding: 8px 12px;
}

/* ---------- Modal ---------- */
.revoco-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .5);
    z-index: 9999;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 24px 12px;
    overflow-y: auto;
}
.revoco-modal {
    position: relative;
    background: #fff;
    width: 100%;
    max-width: 680px;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, .3);
    margin: auto;
}
.revoco-modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 38px;
    height: 38px;
    border: 1px solid #d9d9d9;
    border-radius: 8px;
    background: #f3f3f3;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    color: #333;
    z-index: 2;
}
.revoco-modal-body { padding: 8px; }

/* ---------- Formular ---------- */
.revoco-form-wrapper { padding: 24px 28px 28px; }
.revoco-form-header { text-align: center; margin-bottom: 22px; }
.revoco-form-title { margin: 0 0 6px; font-size: 26px; }
.revoco-form-subtitle { margin: 0; color: #777; font-size: 15px; }
.revoco-form-intro { margin-bottom: 20px; font-size: 14px; color: #555; }

.revoco-field { margin-bottom: 18px; }
.revoco-field label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
    font-size: 15px;
}
.revoco-field input,
.revoco-field textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 12px 14px;
    border: 1px solid #b9b9b9;
    border-radius: 8px;
    font-size: 15px;
    font-family: inherit;
}
.revoco-field input:focus,
.revoco-field textarea:focus { outline: none; border-color: #4f7a5b; box-shadow: 0 0 0 2px rgba(79, 122, 91, .18); }

.revoco-req {
    display: inline-block;
    margin-left: 4px;
    padding: 2px 9px;
    background: #ececec;
    color: #555;
    border-radius: 11px;
    font-size: 12px;
    font-weight: 500;
    vertical-align: middle;
}

/* "Mind. eine Angabe" – Bestellnr. ODER betreffende Ware (Modus „either"). */
.revoco-req-either {
    background: #fdf2d6;
    color: #8a6d1a;
}

.revoco-error { display: none; color: #c0392b; font-size: 13px; margin-top: 5px; }
.revoco-field.has-error input,
.revoco-field.has-error textarea { border-color: #c0392b; }
.revoco-field.has-error .revoco-error { display: block; }

.revoco-messages {
    margin-bottom: 18px;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    background: #fdecea;
    border: 1px solid #f5c6c2;
    color: #a83228;
}

.revoco-privacy { margin: 14px 0 20px; font-size: 12.5px; color: #777; }

.revoco-submit {
    width: 100%;
    padding: 15px 20px;
    border: none;
    border-radius: 28px;
    font-size: 17px;
    font-weight: 700;
    cursor: pointer;
}
.revoco-submit:hover { opacity: .93; }
.revoco-submit[disabled] { opacity: .6; cursor: default; }

/* ---------- Success ---------- */
.revoco-success { text-align: center; padding: 28px 24px 32px; max-width: 560px; margin: 0 auto; }
.revoco-success-icon {
    width: 78px;
    height: 78px;
    margin: 0 auto 14px;
    border: 3px solid #3a8a4f;
    border-radius: 50%;
    color: #3a8a4f;
    font-size: 40px;
    line-height: 74px;
}
.revoco-success-title { color: #2f7d43; margin: 0 0 10px; }
.revoco-success-text { color: #555; margin: 0 0 22px; }
.revoco-success-id-box {
    border: 1px solid #9ed3ad;
    border-radius: 10px;
    padding: 18px;
    background: #f3fbf5;
}
.revoco-success-id-label { display: block; font-weight: 700; color: #333; margin-bottom: 6px; }
.revoco-success-id {
    display: block;
    font-size: 34px;
    font-weight: 800;
    letter-spacing: 3px;
    color: #2f7d43;
    margin-bottom: 8px;
}
.revoco-success-id-hint { display: block; font-size: 13px; color: #777; }

@media (max-width: 480px) {
    .revoco-form-wrapper { padding: 18px 16px 22px; }
    .revoco-form-title { font-size: 22px; }
    .revoco-success-id { font-size: 28px; }
}
