/* EU Withdrawal & Returns Manager – Frontend form styles */

.eurm-form {
    max-width: 680px;
    margin: 0 auto;
    padding: 1.5rem 0;
    font-size: 1rem;
    line-height: 1.6;
}

.eurm-form h2 {
    margin-bottom: 0.5rem;
}

/* ── Fields ─────────────────────────────────────────────────────────── */
.eurm-field {
    margin-bottom: 1.25rem;
}

.eurm-field label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.35rem;
}

.eurm-field input[type="text"],
.eurm-field input[type="email"],
.eurm-field input[type="number"],
.eurm-field select,
.eurm-field textarea {
    width: 100%;
    padding: 0.55rem 0.75rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
    box-sizing: border-box;
}

.eurm-field input:focus,
.eurm-field select:focus,
.eurm-field textarea:focus {
    outline: none;
    border-color: #2271b1;
    box-shadow: 0 0 0 2px rgba(34,113,177,.2);
}

/* ── Buttons ─────────────────────────────────────────────────────────── */
.eurm-btn {
    display: inline-block;
    padding: 0.65rem 1.4rem;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s ease;
    text-decoration: none;
}

.eurm-btn--primary {
    background: #2271b1;
    color: #fff;
}
.eurm-btn--primary:hover { background: #135e96; }

.eurm-btn--secondary {
    background: #f0f0f0;
    color: #333;
}
.eurm-btn--secondary:hover { background: #ddd; }

.eurm-btn--danger {
    background: #c0392b;
    color: #fff;
}
.eurm-btn--danger:hover { background: #962d22; }

.eurm-btn[disabled] {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ── Notices ─────────────────────────────────────────────────────────── */
.eurm-notice {
    padding: 0.9rem 1.1rem;
    border-left: 4px solid;
    border-radius: 3px;
    margin-bottom: 1.25rem;
}

.eurm-notice--error   { border-color: #c0392b; background: #fdf0ee; color: #6e1f1a; }
.eurm-notice--info    { border-color: #2271b1; background: #eef5fb; color: #1a3a5c; }
.eurm-notice--warning { border-color: #e67e22; background: #fef6ec; color: #7d4400; }
.eurm-notice ul,
.eurm-notice ol { margin: 0.5rem 0 0 1.2rem; }

/* ── Option cards ────────────────────────────────────────────────────── */
.eurm-option-card {
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 1.25rem 1.5rem;
    margin-bottom: 1.5rem;
}

.eurm-option-card h3 {
    margin-top: 0;
}

/* ── Items list ──────────────────────────────────────────────────────── */
.eurm-item-row {
    border-bottom: 1px solid #eee;
    padding: 0.65rem 0;
}

.eurm-item-check {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    cursor: pointer;
}

.eurm-item-check img {
    border-radius: 3px;
    object-fit: cover;
}

.eurm-item-name { flex: 1; font-weight: 500; }
.eurm-item-qty  { color: #666; }

.eurm-item-details {
    margin-top: 0.65rem;
    padding-left: 1.5rem;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.eurm-item-details label {
    font-size: 0.9rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.eurm-qty-input { width: 70px !important; }

/* ── Summary table (step 3) ──────────────────────────────────────────── */
.eurm-summary-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1.25rem;
}

.eurm-summary-table th,
.eurm-summary-table td {
    border-bottom: 1px solid #eee;
    padding: 0.5rem 0.75rem;
    text-align: left;
}

.eurm-summary-table th { background: #f9f9f9; font-weight: 600; }

/* ── Success screen ──────────────────────────────────────────────────── */
.eurm-success { text-align: center; }

.eurm-success-icon {
    font-size: 3.5rem;
    color: #27ae60;
    line-height: 1;
    margin-bottom: 0.75rem;
}

.eurm-success ol { text-align: left; display: inline-block; }

/* ── Order meta ──────────────────────────────────────────────────────── */
.eurm-order-meta { color: #666; font-size: 0.9rem; margin-bottom: 1rem; }

/* ── Back link ───────────────────────────────────────────────────────── */
.eurm-back { margin-top: 1.5rem; }
.eurm-back a { color: #666; text-decoration: none; }
.eurm-back a:hover { text-decoration: underline; }

/* ── Footer link ─────────────────────────────────────────────────────── */
.eurm-footer-link { opacity: 0.75; }
.eurm-footer-link a { color: inherit; }
