/* ── WooCommerce Widerrufsformular v1.1 – Styles ── */

/* ══ Footer-Bar ══ */
#wcw-footer-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #1e293b;
    padding: 10px 20px;
    z-index: 9990;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 -2px 8px rgba(0,0,0,.25);
}

/* ══ Trigger-Button – gemeinsam für Footer & Shortcode ══ */
.wcw-trigger-btn {
    background: #2563eb;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 10px 22px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: background .2s, box-shadow .2s;
    text-decoration: none;
    line-height: 1;
}
.wcw-trigger-btn:hover {
    background: #1d4ed8;
    box-shadow: 0 3px 10px rgba(37,99,235,.35);
}

/* Inline-Button (Shortcode) */
.wcw-inline-btn {
    margin: 6px 0;
}
.wcw-btn--outline {
    background: transparent;
    border: 2px solid #2563eb;
    color: #2563eb;
}
.wcw-btn--outline:hover {
    background: #2563eb;
    color: #fff;
}

.wcw-icon { font-size: 16px; }

/* ══ Overlay ══ */
#wcw-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.55);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    backdrop-filter: blur(3px);
}
#wcw-overlay[hidden] { display: none; }

/* ══ Modal ══ */
#wcw-modal {
    background: #fff;
    border-radius: 12px;
    width: 100%;
    max-width: 520px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 36px 40px 32px;
    position: relative;
    box-shadow: 0 20px 60px rgba(0,0,0,.3);
    animation: wcwFadeIn .2s ease;
}
@keyframes wcwFadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to   { opacity: 1; transform: translateY(0); }
}

#wcw-close {
    position: absolute;
    top: 14px;
    right: 16px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #64748b;
    line-height: 1;
    padding: 4px 8px;
    border-radius: 4px;
    transition: background .15s;
}
#wcw-close:hover { background: #f1f5f9; }

#wcw-title {
    margin: 0 0 6px;
    font-size: 22px;
    color: #0f172a;
}
.wcw-subtitle {
    color: #475569;
    font-size: 14px;
    margin: 0 0 24px;
    line-height: 1.5;
}

/* ══ Formularfelder ══ */
.wcw-field { margin-bottom: 16px; flex: 1; }
.wcw-field label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 5px;
}
.wcw-req { color: #ef4444; }

.wcw-field input {
    width: 100%;
    box-sizing: border-box;
    border: 1.5px solid #cbd5e1;
    border-radius: 7px;
    padding: 10px 13px;
    font-size: 15px;
    color: #0f172a;
    transition: border-color .15s, box-shadow .15s;
    outline: none;
    background: #f8fafc;
}
.wcw-field input:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37,99,235,.15);
    background: #fff;
}
.wcw-field input.wcw-valid   { border-color: #22c55e; }
.wcw-field input.wcw-invalid { border-color: #ef4444; }

.wcw-hint {
    display: block;
    font-size: 12px;
    margin-top: 4px;
    min-height: 16px;
}
.wcw-hint.ok  { color: #16a34a; }
.wcw-hint.err { color: #dc2626; }

.wcw-row { display: flex; gap: 14px; }

.wcw-privacy {
    font-size: 12px;
    color: #94a3b8;
    margin: 4px 0 18px;
    line-height: 1.5;
}

/* ══ Fehlermeldung ══ */
.wcw-msg { padding: 12px 16px; border-radius: 7px; font-size: 14px; margin-bottom: 16px; }
.wcw-msg--error { background: #fef2f2; border: 1px solid #fecaca; color: #b91c1c; }
.wcw-msg[hidden] { display: none; }

/* ══ Absenden-Button ══ */
#wcw-submit {
    width: 100%;
    background: #2563eb;
    color: #fff;
    border: none;
    border-radius: 7px;
    padding: 13px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: background .2s;
}
#wcw-submit:hover    { background: #1d4ed8; }
#wcw-submit:disabled { background: #93c5fd; cursor: not-allowed; }

/* ══ Erfolg ══ */
#wcw-success            { text-align: center; padding: 20px 0 10px; }
#wcw-success[hidden]    { display: none; }
.wcw-success-icon       { font-size: 54px; color: #16a34a; margin-bottom: 12px; }
#wcw-success-msg        { font-size: 16px; color: #1e3a1e; line-height: 1.6; }

/* ══ Responsive ══ */
@media (max-width: 480px) {
    #wcw-modal      { padding: 28px 20px 24px; }
    .wcw-row        { flex-direction: column; gap: 0; }
    #wcw-footer-bar { padding: 8px 12px; }
    .wcw-trigger-btn { font-size: 14px; padding: 9px 16px; }
}
