/* EU Widerrufs-Button Plugin – Elementor-kompatibles Styling */

/* ---- Container ---- */
.eu-widerruf {
    max-width: 620px;
    margin: 0 auto;
}

.eu-widerruf h2 {
    font-size: 1.5em;
    margin-bottom: 0.5em;
}

/* ---- Felder ---- */
.eu-widerruf__field {
    margin-bottom: 18px;
}

.eu-widerruf__field label {
    display: block;
    font-weight: 600;
    margin-bottom: 5px;
    font-size: 0.95em;
}

.eu-widerruf__field input[type="text"],
.eu-widerruf__field input[type="email"],
.eu-widerruf__field textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 10px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 15px;
    font-family: inherit;
    background: #fff;
    transition: border-color 0.2s;
}

.eu-widerruf__field input:focus,
.eu-widerruf__field textarea:focus {
    outline: none;
    border-color: #888;
}

.eu-widerruf__field textarea {
    resize: vertical;
}

/* ---- Pflicht / Optional Labels ---- */
.eu-widerruf__field .req { color: #c0392b; }
.eu-widerruf__field .opt { color: #999; font-weight: 400; font-size: 0.85em; }

/* ---- Primärer Button (Schritt 1 & 2) ---- */
.eu-widerruf .eu-widerruf__btn {
    display: inline-block !important;
    background: transparent !important;
    color: #000 !important;
    border: 2px solid #000 !important;
    border-radius: 999px !important;
    padding: 12px 24px !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    width: 100% !important;
    text-align: center !important;
    margin-top: 8px !important;
    font-family: inherit !important;
    transition: background 0.2s, color 0.2s !important;
    box-shadow: none !important;
}

.eu-widerruf .eu-widerruf__btn:hover,
.eu-widerruf .eu-widerruf__btn:focus {
    background: #000 !important;
    color: #fff !important;
    border-color: #000 !important;
    outline: none !important;
}

/* ---- Bestätigungs-Button (Schritt 2) ---- */
.eu-widerruf .eu-widerruf__btn--confirm {
    flex: 1 !important;
    width: auto !important;
}

/* ---- Zurück-Link ---- */
.eu-widerruf__btn-back {
    color: #666;
    text-decoration: none;
    font-size: 14px;
    white-space: nowrap;
}

.eu-widerruf__btn-back:hover {
    color: #333;
}

/* ---- Buttons-Zeile (Schritt 2) ---- */
.eu-widerruf__buttons {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 8px;
}

/* ---- Fehlermeldungen ---- */
.eu-widerruf__errors {
    background: #fdf2f2;
    border-left: 4px solid #e74c3c;
    padding: 10px 14px;
    border-radius: 0 4px 4px 0;
    color: #c0392b;
    margin-bottom: 20px;
}

.eu-widerruf__errors p {
    margin: 4px 0;
    font-size: 0.9em;
}

/* ---- Zusammenfassung (Schritt 2) ---- */
.eu-widerruf__summary {
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    padding: 14px 18px;
    margin-bottom: 16px;
}

.eu-widerruf__summary table {
    width: 100%;
    border-collapse: collapse;
}

.eu-widerruf__summary th,
.eu-widerruf__summary td {
    padding: 7px 6px;
    text-align: left;
    border-bottom: 1px solid #eee;
    font-size: 0.93em;
}

.eu-widerruf__summary tr:last-child th,
.eu-widerruf__summary tr:last-child td {
    border-bottom: none;
}

.eu-widerruf__summary th {
    width: 38%;
    color: #666;
    font-weight: 600;
}

/* ---- Hinweistext ---- */
.eu-widerruf__hinweis {
    font-style: italic;
    color: #555;
    font-size: 0.88em;
    margin-bottom: 12px;
}

/* ---- Rechtlicher Hinweis ---- */
.eu-widerruf__legal {
    font-size: 0.78em;
    color: #aaa;
    margin-top: 14px;
}

/* ---- Erfolgsseite ---- */
.eu-widerruf--success {
    text-align: center;
    padding: 20px 0;
}

.eu-widerruf__icon {
    font-size: 64px;
    color: #27ae60;
    line-height: 1;
    margin-bottom: 12px;
}

.eu-widerruf--success h2 {
    color: #1e8449;
}
