/* EU Withdrawal Right – frontend styles */

.euwr-wrap { max-width: 860px; margin: 0 auto; }

.euwr-wrap h2 { font-size: 1.4em; margin-bottom: 1rem; }
.euwr-wrap h3 { font-size: 1.1em; margin: 1.5rem 0 0.5rem; }

/* Info boxes */
.euwr-policy-box,
.euwr-instructions-box {
    padding: 14px 18px;
    border-radius: 0 4px 4px 0;
    margin-bottom: 16px;
    font-size: 0.9em;
    line-height: 1.6;
}
.euwr-policy-box { background: #f0f6ff; border-left: 4px solid #2271b1; }
.euwr-instructions-box { background: #fffbe6; border-left: 4px solid #f0b429; }
.euwr-policy-box strong,
.euwr-instructions-box strong { display: block; margin-bottom: 4px; }

.euwr-empty { color: #666; font-style: italic; }
.euwr-error { color: #c00; padding: 12px 16px; background: #fff0f0; border-left: 4px solid #c00; border-radius: 0 4px 4px 0; }
.euwr-alert { padding: 14px 18px; border-radius: 6px; margin-bottom: 20px; }
.euwr-alert--info { background: #e8f4f8; border-left: 4px solid #2271b1; color: #1a4f6e; }

/* Tabele */
.euwr-table, .euwr-items-table {
    width: 100%; border-collapse: collapse; margin: 10px 0 24px; font-size: 0.93em;
}
.euwr-table th, .euwr-table td,
.euwr-items-table th, .euwr-items-table td {
    padding: 9px 11px; border: 1px solid #e2e4e7; text-align: left; vertical-align: middle;
}
.euwr-table thead th, .euwr-items-table thead th { background: #f5f5f5; font-weight: 600; }
.euwr-table tbody tr:nth-child(even) { background: #fafafa; }

/* Przyciski */
.euwr-btn-withdraw {
    background: #2271b1 !important; color: #fff !important;
    border-color: #135e96 !important; font-size: 0.85em !important;
    padding: 5px 12px !important; border-radius: 4px !important;
}
.euwr-btn-withdraw:hover { background: #135e96 !important; }

.euwr-btn-cancel {
    background: #fff !important; color: #c00 !important;
    border-color: #c00 !important; font-size: 0.82em !important;
    padding: 4px 10px !important;
}
.euwr-btn-submit {
    background: #2271b1 !important; border-color: #135e96 !important;
    color: #fff !important; padding: 10px 24px !important; font-size: 1em !important;
}
.euwr-btn-submit:hover { background: #135e96 !important; }

/* Odznaki statusów */
.euwr-badge { display: inline-block; padding: 3px 9px; border-radius: 10px; font-size: 0.8em; font-weight: 600; }
.euwr-badge--pending   { background: #fff3cd; color: #856404; }
.euwr-badge--approved  { background: #d1e7dd; color: #0a3622; }
.euwr-badge--refunded  { background: #cfe2ff; color: #084298; }
.euwr-badge--rejected  { background: #f8d7da; color: #58151c; }
.euwr-badge--cancelled { background: #e9ecef; color: #495057; }

/* Notatka admina (ikona info) */
.euwr-admin-note { cursor: help; font-size: 1.1em; margin-left: 6px; color: #2271b1; }

/* Formularz */
.euwr-order-summary {
    background: #f9f9f9; border: 1px solid #e2e4e7; border-radius: 6px;
    padding: 14px 18px; margin-bottom: 20px;
    display: flex; gap: 28px; flex-wrap: wrap;
}
.euwr-order-summary p { margin: 0; font-size: 0.93em; }

.euwr-section { margin-bottom: 24px; }

.euwr-withdrawal-form { background: #fff; border: 1px solid #e2e4e7; border-radius: 6px; padding: 24px; }

.euwr-field { margin-bottom: 14px !important; }
.euwr-field label { display: block; font-weight: 600; margin-bottom: 5px; font-size: 0.93em; }
.euwr-field textarea, .euwr-field input[type="text"], .euwr-field input[type="url"] {
    width: 100%; padding: 9px 11px; border: 1px solid #ccc; border-radius: 4px;
    font-size: 0.93em; box-sizing: border-box; resize: vertical;
}
.euwr-field textarea:focus, .euwr-field input:focus {
    border-color: #2271b1; outline: none; box-shadow: 0 0 0 2px rgba(34,113,177,.15);
}
.euwr-required { color: #c00; }

/* Ilość produktu */
.euwr-qty-input { width: 70px; padding: 5px 8px; border: 1px solid #ccc; border-radius: 4px; text-align: center; }

/* Radio typ zwrotu */
.euwr-radio-group { display: flex; gap: 24px; flex-wrap: wrap; margin-bottom: 14px; }
.euwr-radio-label { display: flex; align-items: center; gap: 8px; font-size: 0.93em; cursor: pointer; }

#euwr-bank-fields { background: #f9f9f9; border: 1px solid #e2e4e7; border-radius: 4px; padding: 14px 16px; margin-top: 8px; }
#euwr-bank-fields .euwr-field:last-child { margin-bottom: 0 !important; }

/* Checkbox */
.euwr-checkbox label { display: flex; align-items: flex-start; gap: 10px; font-weight: normal; cursor: pointer; font-size: 0.93em; }
.euwr-checkbox input[type="checkbox"] { margin-top: 2px; flex-shrink: 0; width: 15px; height: 15px; }
.euwr-policy-accept { background: #f0f6ff; padding: 12px 14px; border-radius: 4px; border: 1px solid #c2d9f0; }

.euwr-actions { display: flex; gap: 12px; align-items: center; margin-top: 20px !important; flex-wrap: wrap; }

/* Admin – details/summary dla notatki */
.euwr-note-details summary { cursor: pointer; font-size: 12px; color: #2271b1; margin-top: 4px; }

@media (max-width: 640px) {
    .euwr-order-summary { flex-direction: column; gap: 8px; }
    .euwr-radio-group { flex-direction: column; gap: 10px; }
    .euwr-table th:nth-child(3), .euwr-table td:nth-child(3) { display: none; }
}

/* Informacja o wykluczonych produktach */
.euwr-excluded-notice {
    background: #fff8e1;
    border-left: 4px solid #f9a825;
    border-radius: 0 4px 4px 0;
    padding: 10px 14px;
    font-size: 13px;
    color: #555;
    margin-bottom: 16px;
}

/* Gość – intro */
.euwr-guest-intro {
    color: #555;
    font-size: 14px;
    margin-bottom: 20px;
}
.euwr-guest-lookup {
    max-width: 420px;
}
