/* ═══════════════════════════════════════════════════════
   WPPD Widerrufsformular – CSS
   ═══════════════════════════════════════════════════════ */

/* ── Footer-Button ── */
.wppd-revocation-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    background: transparent;
    color: #555;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: .82em;
    text-decoration: none;
    transition: color .15s, border-color .15s, background .15s;
    white-space: nowrap;
    font-family: Arial, sans-serif;
}
.wppd-revocation-btn:hover {
    color: #922b21;
    border-color: #922b21;
    background: #fdf3f2;
    text-decoration: none;
}
.wppd-revocation-btn svg {
    flex-shrink: 0;
    transition: stroke .15s;
}
.wppd-revocation-btn:hover svg {
    stroke: #922b21;
}

/* ── Wrapper ── */
.wppd-rev-wrap {
    max-width: 640px;
    margin: 32px 0;
    font-family: Arial, sans-serif;
    font-size: .97em;
    color: #333;
}
.wppd-rev-title {
    color: #1a5276;
    font-size: 1.5em;
    margin-bottom: 20px;
}

/* ── Hinweis-Box ── */
.wppd-rev-notice {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: #fdf8e1;
    border: 1px solid #f5c518;
    border-left: 4px solid #e67e22;
    border-radius: 6px;
    padding: 14px 16px;
    margin-bottom: 28px;
    font-size: .92em;
    line-height: 1.6;
    color: #5d4037;
}
.wppd-rev-notice svg {
    flex-shrink: 0;
    margin-top: 2px;
    color: #e67e22;
}

/* ── Steps ── */
.wppd-rev-step {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 22px 24px;
    margin-bottom: 20px;
}
.wppd-rev-step h3 {
    color: #1a5276;
    margin: 0 0 10px;
    font-size: 1.05em;
}
.wppd-rev-hint {
    color: #666;
    font-size: .9em;
    margin: 0 0 18px;
}

/* ── Formular-Zeilen ── */
.wppd-rev-row {
    margin-bottom: 16px;
}
.wppd-rev-row label {
    display: block;
    font-weight: 700;
    font-size: .9em;
    margin-bottom: 5px;
    color: #333;
}
.wppd-rev-row input,
.wppd-rev-row textarea {
    width: 100%;
    padding: 9px 12px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: .95em;
    box-sizing: border-box;
    transition: border-color .15s, box-shadow .15s;
    font-family: Arial, sans-serif;
    color: #333;
    background: #fff;
}
.wppd-rev-row input:focus,
.wppd-rev-row textarea:focus {
    outline: none;
    border-color: #1a5276;
    box-shadow: 0 0 0 2px rgba(26,82,118,.15);
}
.wppd-rev-row input.wppd-rev-invalid,
.wppd-rev-row textarea.wppd-rev-invalid {
    border-color: #c0392b;
    background: #fff5f5;
}
.wppd-rev-row textarea {
    resize: vertical;
    min-height: 120px;
}
.wppd-rev-field-hint {
    display: block;
    font-size: .8em;
    color: #888;
    margin-top: 4px;
}

/* ── Bestellliste ── */
.wppd-rev-order-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 4px;
}
.wppd-rev-order-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border: 2px solid #ddd;
    border-radius: 7px;
    cursor: pointer;
    transition: border-color .15s, background .15s;
    background: #fafafa;
}
.wppd-rev-order-card:hover {
    border-color: #1a5276;
    background: #f0f5fb;
}
.wppd-rev-order-card.selected {
    border-color: #1a5276;
    background: #eaf1f8;
}
.wppd-rev-order-card input[type="radio"] {
    width: 18px;
    height: 18px;
    min-width: 18px;
    accent-color: #1a5276;
    cursor: pointer;
}
.wppd-rev-order-card-info {
    flex: 1;
    line-height: 1.5;
}
.wppd-rev-order-card-title {
    font-weight: 700;
    color: #1a5276;
    font-size: 1em;
}
.wppd-rev-order-card-meta {
    font-size: .85em;
    color: #666;
}
.wppd-rev-order-card-amount {
    font-weight: 700;
    font-size: 1em;
    color: #1a5276;
    white-space: nowrap;
}

/* ── Ausgewählte Bestellung (Schritt 3) ── */
.wppd-rev-selected-order {
    background: #eaf1f8;
    border: 1px solid #aec6e0;
    border-radius: 6px;
    padding: 12px 16px;
    margin-bottom: 18px;
    font-size: .9em;
    line-height: 1.6;
}
.wppd-rev-selected-order strong {
    color: #1a5276;
}

/* ── Buttons ── */
.wppd-rev-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 24px;
    background: linear-gradient(135deg, #1a5276 0%, #154360 100%);
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 1em;
    font-weight: 700;
    cursor: pointer;
    transition: opacity .15s, transform .1s;
    box-shadow: 0 2px 6px rgba(26,82,118,.3);
}
.wppd-rev-btn-primary:hover:not(:disabled) {
    opacity: .88;
    transform: translateY(-1px);
}
.wppd-rev-btn-primary:disabled {
    opacity: .6;
    cursor: not-allowed;
    transform: none;
}
.wppd-rev-btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 11px 20px;
    background: #fff;
    color: #555;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 1em;
    cursor: pointer;
    transition: border-color .15s, color .15s;
}
.wppd-rev-btn-secondary:hover {
    border-color: #1a5276;
    color: #1a5276;
}
.wppd-rev-btn-row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 8px;
}

/* ── Nachrichten ── */
.wppd-rev-messages {
    padding: 11px 14px;
    border-radius: 6px;
    margin: 12px 0;
    font-size: .92em;
    display: none;
    line-height: 1.5;
}
.wppd-rev-msg-error {
    background: #fdf0f0;
    color: #922;
    border: 1px solid #f5c6cb;
}
.wppd-rev-msg-info {
    background: #eef4ff;
    color: #335;
    border: 1px solid #bee3f8;
}

/* ── Spinner ── */
.wppd-rev-spinner {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255,255,255,.4);
    border-top-color: #fff;
    border-radius: 50%;
    animation: wppd-rev-spin .6s linear infinite;
    vertical-align: middle;
}
@keyframes wppd-rev-spin { to { transform: rotate(360deg); } }

/* ── Erfolgs-Anzeige ── */
.wppd-rev-success {
    text-align: center;
    padding: 20px 10px 10px;
}
.wppd-rev-success svg {
    color: #27ae60;
    margin-bottom: 14px;
}
.wppd-rev-success h3 {
    color: #27ae60;
    margin: 0 0 12px;
    font-size: 1.15em;
}
.wppd-rev-success p {
    color: #555;
    font-size: .95em;
    line-height: 1.6;
    margin-bottom: 10px;
}
.wppd-rev-copy-note {
    font-size: .85em !important;
    color: #888 !important;
}

/* ── Responsive ── */
@media (max-width: 480px) {
    .wppd-rev-step { padding: 16px; }
    .wppd-rev-btn-row { flex-direction: column; align-items: stretch; }
    .wppd-rev-btn-primary,
    .wppd-rev-btn-secondary { justify-content: center; }
    .wppd-rev-order-card { flex-wrap: wrap; }
}
