/* ================================================================
   WC EU Returns PRO – Frontend
   Kolor marki: #353F4C
   ================================================================ */

:root {
    --wcer-color: #353F4C;
    --wcer-color-hover: #2a3240;
    --wcer-color-light: rgba(53,63,76,.08);
    --wcer-color-border: rgba(53,63,76,.2);
}

.wcer-wrap { max-width: 740px; font-size: 15px; line-height: 1.6; color: #353F4C; }

/* Test banner */
.wcer-test-banner {
    background: #ff9800; color: #000; padding: 10px 16px;
    border-radius: 5px; margin-bottom: 16px;
    display: flex; align-items: center; gap: 10px; font-weight: 600;
}

/* Lang switcher */
.wcer-lang-switcher { display: flex; gap: 6px; margin-bottom: 18px; }
.wcer-lang-btn {
    background: #f5f5f5; border: 2px solid #ddd; border-radius: 5px;
    padding: 5px 14px; cursor: pointer; font-size: 14px; font-weight: 600;
    color: #353F4C; transition: all .15s;
}
.wcer-lang-btn.active { background: #353F4C; color: #fff; border-color: #353F4C; }
.wcer-lang-btn:hover:not(.active) { border-color: #353F4C; background: var(--wcer-color-light); }

/* Seller box */
.wcer-seller-box {
    background: #f9f9fc; border: 1px solid #e5e5e5; border-radius: 6px;
    padding: 12px 16px; margin-bottom: 16px; font-size: 13px; color: #353F4C;
}
.wcer-seller-label { font-weight: 700; margin-bottom: 4px; }
.wcer-seller-box address { font-style: normal; color: #555; }

/* Legal */
.wcer-legal {
    display: flex; align-items: flex-start; gap: 10px;
    background: #f0f4f8; border-left: 4px solid #353F4C;
    padding: 12px 16px; border-radius: 0 5px 5px 0; margin-bottom: 24px;
    font-size: 13px; color: #353F4C;
}
.wcer-legal svg { flex-shrink: 0; margin-top: 1px; color: #353F4C; }

/* Step blocks */
.wcer-step-block {
    background: #fff; border: 1px solid #e0e0e0; border-radius: 8px;
    padding: 22px 26px; margin-bottom: 18px;
    box-shadow: 0 1px 4px rgba(0,0,0,.04);
}
.wcer-step-head {
    display: flex; align-items: center; gap: 12px;
    font-size: 16px; font-weight: 700; color: #353F4C; margin-bottom: 18px;
}
.wcer-badge {
    display: inline-flex; align-items: center; justify-content: center;
    width: 30px; height: 30px; background: #353F4C; color: #fff;
    border-radius: 50%; font-size: 13px; font-weight: 800; flex-shrink: 0;
}

/* Fields */
.wcer-field { margin-bottom: 16px; }
.wcer-field label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 6px; color: #353F4C; }
.wcer-field input[type="text"],
.wcer-field input[type="number"],
.wcer-field input[type="email"],
.wcer-field select,
.wcer-field textarea {
    width: 100%; padding: 9px 13px; border: 1.5px solid #d0d0d0;
    border-radius: 5px; font-size: 14px; box-sizing: border-box; color: #353F4C;
    transition: border-color .15s, box-shadow .15s;
}
.wcer-field input:focus, .wcer-field select:focus, .wcer-field textarea:focus {
    outline: none; border-color: #353F4C; box-shadow: 0 0 0 3px var(--wcer-color-light);
}
.wcer-hint { display: block; color: #888; font-size: 12px; margin-top: 4px; }
.req { color: #d63638; }

.wcer-inline { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.wcer-inline input { max-width: 160px; }

/* Order meta */
.wcer-order-meta {
    background: #f0fdf4; border-left: 4px solid #46b450; border-radius: 0 5px 5px 0;
    padding: 10px 14px; font-size: 13px; margin-top: 12px; color: #353F4C;
}
.wcer-deadline-warn  { display: block; color: #92400e; margin-top: 4px; font-size: 12px; }
.wcer-deadline-block { display: block; color: #d63638; font-weight: 600; margin-top: 4px; font-size: 13px; }

/* Products list */
.wcer-product-row {
    display: flex; align-items: center; gap: 14px;
    padding: 12px 0; border-bottom: 1px solid #f5f5f5;
}
.wcer-product-row:last-child { border-bottom: none; }
.wcer-product-row__img {
    width: 52px; height: 52px; object-fit: cover; border-radius: 5px;
    border: 1px solid #eee; flex-shrink: 0;
}
.wcer-product-row__img--placeholder {
    width: 52px; height: 52px; background: #f0f0f0; border-radius: 5px;
    border: 1px solid #eee; flex-shrink: 0;
}
.wcer-product-row__name { flex: 1; font-size: 14px; font-weight: 500; color: #353F4C; }
.wcer-product-row__price { font-size: 13px; color: #888; white-space: nowrap; }
.wcer-product-row__qty { display: flex; align-items: center; gap: 6px; font-size: 13px; color: #353F4C; }
.wcer-product-row__qty input {
    width: 58px; text-align: center; padding: 5px 8px;
    border: 1.5px solid #d0d0d0; border-radius: 4px; color: #353F4C;
}
.wcer-cb { width: 18px; height: 18px; cursor: pointer; accent-color: #353F4C; flex-shrink: 0; }

/* Consent */
.wcer-consent {
    display: flex; align-items: flex-start; gap: 10px;
    font-size: 13px; color: #353F4C; cursor: pointer; line-height: 1.5;
}
.wcer-consent input { margin-top: 2px; flex-shrink: 0; accent-color: #353F4C; }

/* Buttons */
.wcer-btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 9px 20px; border-radius: 5px; font-size: 14px; font-weight: 600;
    cursor: pointer; border: 2px solid transparent; transition: all .15s;
    white-space: nowrap;
}
/* Primary button — tło #353F4C, tekst biały */
.wcer-btn--primary {
    background: #353F4C !important; color: #fff !important;
    border-color: #353F4C !important; padding: 11px 28px; font-size: 15px;
}
.wcer-btn--primary:hover { background: #2a3240 !important; border-color: #2a3240 !important; }
.wcer-btn--primary:disabled { opacity: .55; cursor: not-allowed; }

/* Secondary button — obramowanie #353F4C, tekst #353F4C */
.wcer-btn--secondary {
    background: #fff; color: #353F4C; border-color: #353F4C;
}
.wcer-btn--secondary:hover { background: var(--wcer-color-light); }

/* Notices */
.wcer-notice { padding: 14px 18px; border-radius: 6px; margin-bottom: 20px; font-size: 14px; font-weight: 500; }
.wcer-notice--ok  { background: #ecfdf5; border-left: 4px solid #46b450; color: #166534; }
.wcer-notice--err { background: #fef2f2; border-left: 4px solid #d63638; color: #7f1d1d; }

/* Account status pills */
.wcer-status {
    display: inline-block; padding: 3px 10px; border-radius: 12px;
    font-size: 12px; font-weight: 700; letter-spacing: .3px;
}
.wcer-status--pending   { background: #fef9c3; color: #854d0e; }
.wcer-status--accepted  { background: #dcfce7; color: #166534; }
.wcer-status--rejected  { background: #fee2e2; color: #7f1d1d; }
.wcer-status--refunded  { background: #dbeafe; color: #1e40af; }
.wcer-status--completed { background: #f1f5f9; color: #353F4C; }

.wcer-gdpr { font-size: 11px; color: #bbb; margin-top: 14px; }

/* Link w zakładce Moje zwroty */
.woocommerce-account .wcer-wrap a { color: #353F4C; }

@media (max-width: 600px) {
    .wcer-step-block { padding: 16px; }
    .wcer-product-row { flex-wrap: wrap; }
    .wcer-inline { flex-direction: column; align-items: flex-start; }
    .wcer-inline input { max-width: 100%; }
}

/* ── Zakładka Moje zwroty - pełna ──────────────────────────────────────────── */

.wcer-account-wrap { max-width: 780px; }

/* Strona bez zgłoszeń */
.wcer-info-page h2 { color: #353F4C; margin-bottom: 20px; }
.wcer-info-box--empty {
    text-align: center; padding: 32px; background: #f9f9fc;
    border-radius: 8px; border: 1px dashed #d0d0d0; margin-bottom: 28px;
}

/* Sekcja praw konsumenta */
.wcer-legal-section h3 { color: #353F4C; font-size: 16px; margin-bottom: 16px; }
.wcer-legal-cards {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 14px; margin-bottom: 20px;
}
.wcer-legal-card {
    background: #fff; border: 1px solid #e8e8e8; border-radius: 8px;
    padding: 16px; transition: box-shadow .15s;
}
.wcer-legal-card:hover { box-shadow: 0 2px 10px rgba(53,63,76,.1); }
.wcer-legal-card__icon { font-size: 22px; margin-bottom: 8px; }
.wcer-legal-card h4 { color: #353F4C; font-size: 13px; font-weight: 700; margin: 0 0 6px; }
.wcer-legal-card p { font-size: 12px; color: #666; margin: 0; line-height: 1.5; }
.wcer-legal-card strong { color: #353F4C; }

/* Karta zgłoszenia */
.wcer-return-card {
    background: #fff; border: 1px solid #e0e0e0; border-radius: 10px;
    margin-bottom: 20px; overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,.05);
}
.wcer-return-card__header {
    display: flex; align-items: center; justify-content: space-between;
    flex-wrap: wrap; gap: 10px;
    padding: 16px 20px; background: #f9f9fc; border-bottom: 1px solid #eee;
}
.wcer-return-card__id { font-weight: 700; color: #353F4C; font-size: 15px; display: block; }
.wcer-return-card__date { font-size: 12px; color: #888; }
.wcer-status-badge {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 5px 12px; border-radius: 20px; font-size: 13px; font-weight: 700;
    white-space: nowrap;
}
.wcer-test-pill {
    display: inline-block; background: #f90; color: #000;
    font-size: 10px; padding: 1px 6px; border-radius: 3px; margin-left: 6px;
    font-weight: 700; vertical-align: middle;
}

/* Szczegóły */
.wcer-return-card__details {
    padding: 14px 20px; border-bottom: 1px solid #f0f0f0;
    display: flex; flex-wrap: wrap; gap: 8px 24px;
}
.wcer-detail-row { display: flex; gap: 6px; font-size: 13px; }
.wcer-detail-label { color: #888; flex-shrink: 0; }

/* Step tracker */
.wcer-step-tracker {
    display: flex; align-items: center; padding: 16px 20px;
    border-bottom: 1px solid #f0f0f0; overflow-x: auto;
}
.wcer-tracker-step { display: flex; flex-direction: column; align-items: center; min-width: 80px; }
.wcer-tracker-dot {
    width: 28px; height: 28px; border-radius: 50%;
    background: #e5e7eb; color: #9ca3af;
    display: flex; align-items: center; justify-content: center;
    font-size: 12px; font-weight: 700; flex-shrink: 0; margin-bottom: 5px;
}
.wcer-tracker-step--done .wcer-tracker-dot  { background: #353F4C; color: #fff; }
.wcer-tracker-step--active .wcer-tracker-dot { background: #f59e0b; color: #fff; animation: wcer-pulse 1.5s infinite; }
.wcer-tracker-label { font-size: 11px; color: #9ca3af; text-align: center; line-height: 1.3; }
.wcer-tracker-step--done .wcer-tracker-label  { color: #353F4C; font-weight: 600; }
.wcer-tracker-step--active .wcer-tracker-label { color: #f59e0b; font-weight: 700; }
.wcer-tracker-line {
    flex: 1; height: 2px; background: #e5e7eb; min-width: 20px; margin-bottom: 18px;
}
.wcer-tracker-line.done { background: #353F4C; }
@keyframes wcer-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(245,158,11,.4); }
    50%       { box-shadow: 0 0 0 6px rgba(245,158,11,0); }
}

/* Info alert */
.wcer-info-alert {
    margin: 0 20px 0; padding: 10px 14px; border-radius: 5px;
    font-size: 13px; font-weight: 600;
}
.wcer-info-alert--error { background: #fee2e2; color: #7f1d1d; border-left: 3px solid #ef4444; }

/* Co dalej */
.wcer-return-card__info { padding: 16px 20px; }
.wcer-return-card__info h4 { color: #353F4C; font-size: 14px; margin: 0 0 10px; font-weight: 700; }
.wcer-return-card__info ul { margin: 0; padding: 0; list-style: none; }
.wcer-return-card__info li {
    font-size: 13px; color: #444; padding: 5px 0;
    border-bottom: 1px solid #f5f5f5; line-height: 1.5;
}
.wcer-return-card__info li:last-child { border: none; }
.wcer-return-card__info strong { color: #353F4C; }

/* ── Upload zdjęć ────────────────────────────────────────────────────────── */

.wcer-account-warning {
    display: flex; align-items: flex-start; gap: 7px;
    background: #fffbeb; border-left: 3px solid #f59e0b;
    padding: 9px 13px; border-radius: 0 5px 5px 0;
    margin-top: 8px; font-size: 12px; color: #92400e;
}
.wcer-account-warning svg { flex-shrink: 0; margin-top: 1px; color: #f59e0b; }

.wcer-optional { color: #888; font-weight: 400; font-size: 13px; }

.wcer-upload-area {
    border: 2px dashed #d0d0d0; border-radius: 8px;
    padding: 20px; transition: border-color .15s, background .15s;
    cursor: pointer; min-height: 100px;
}
.wcer-upload-area:hover, .wcer-upload-area.drag-over {
    border-color: #353F4C; background: rgba(53,63,76,.03);
}
.wcer-upload-placeholder { text-align: center; color: #888; }
.wcer-upload-placeholder svg { display: block; margin: 0 auto 8px; opacity: .6; }

.wcer-photo-previews {
    display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px;
}
.wcer-photo-preview {
    position: relative; width: 90px; height: 90px;
    border-radius: 6px; overflow: hidden; border: 1px solid #e0e0e0;
    background: #f5f5f5;
}
.wcer-photo-preview img { width: 100%; height: 100%; object-fit: cover; display: block; }
.wcer-photo-preview__remove {
    position: absolute; top: 3px; right: 3px;
    width: 20px; height: 20px; border-radius: 50%;
    background: rgba(0,0,0,.6); color: #fff; border: none;
    cursor: pointer; font-size: 12px; display: flex; align-items: center; justify-content: center;
    line-height: 1;
}
.wcer-photo-preview--loading { display: flex; align-items: center; justify-content: center; }
.wcer-photo-preview--loading::after {
    content: ''; width: 24px; height: 24px; border-radius: 50%;
    border: 2px solid #353F4C; border-top-color: transparent;
    animation: wcer-spin .7s linear infinite;
}
@keyframes wcer-spin { to { transform: rotate(360deg); } }

@media (max-width: 600px) {
    .wcer-legal-cards { grid-template-columns: 1fr; }
    .wcer-return-card__header { flex-direction: column; align-items: flex-start; }
    .wcer-step-tracker { padding: 12px; }
    .wcer-tracker-step { min-width: 60px; }
    .wcer-tracker-label { font-size: 10px; }
}

/* ── Numer konta — monospace i szerszy ──────────────────────────────────── */
.wcer-account-input {
    font-family: 'Courier New', Courier, monospace !important;
    font-size: 15px !important;
    letter-spacing: 1px !important;
    max-width: 460px;
}

/* ── Sekcja "Co dalej?" ─────────────────────────────────────────────────── */
.wcer-info-after {
    background: #f0f4f8; border-left: 4px solid #353F4C;
    border-radius: 0 8px 8px 0; padding: 18px 20px; margin-top: 24px;
}
.wcer-info-after__title {
    display: flex; align-items: center; gap: 7px;
    font-size: 11px; font-weight: 700; text-transform: uppercase;
    letter-spacing: 1px; color: #353F4C; margin-bottom: 6px;
}
.wcer-info-after h4 {
    color: #353F4C; font-size: 16px; font-weight: 700; margin: 0 0 14px;
}
.wcer-info-steps { margin-bottom: 14px; }
.wcer-info-step {
    display: flex; align-items: flex-start; gap: 12px;
    padding: 8px 0; border-bottom: 1px solid rgba(53,63,76,.1);
}
.wcer-info-step:last-child { border-bottom: none; }
.wcer-info-step__num {
    display: inline-flex; align-items: center; justify-content: center;
    width: 24px; height: 24px; border-radius: 50%;
    background: #353F4C; color: #fff;
    font-size: 12px; font-weight: 700; flex-shrink: 0; margin-top: 1px;
}
.wcer-info-step p { margin: 0; font-size: 13px; color: #444; line-height: 1.5; }
.wcer-info-legal-notes {
    background: #fff; border-radius: 6px; padding: 12px 14px;
    border: 1px solid rgba(53,63,76,.15);
}
.wcer-info-legal-notes p {
    margin: 0 0 6px; font-size: 12px; color: #555; line-height: 1.5;
}
.wcer-info-legal-notes p:last-child { margin: 0; }

/* ── Oświadczenie ────────────────────────────────────────────────────────── */
.wcer-consent-box {
    background: #f9f9fc; border: 1px solid #e0e0e0; border-radius: 6px;
    padding: 16px; margin-bottom: 4px;
}
.wcer-consent-title {
    color: #353F4C; font-size: 14px; font-weight: 700; margin: 0 0 10px;
}

/* ── Info body HTML ────────────────────────────────────────────────────── */
.wcer-info-body p { margin: 0 0 10px; font-size: 13px; color: #444; line-height: 1.6; }
.wcer-info-body p:last-child { margin: 0; }
.wcer-info-body strong { color: #353F4C; }

/* ════════════════════════════════════════════════════════════════
   MOJE ZWROTY — Karty zgłoszeń
   ════════════════════════════════════════════════════════════════ */

.wcer-account-wrap { max-width: 760px; }
.wcer-page-title   { color: #353F4C; font-size: 22px; font-weight: 700; margin: 0 0 24px; }

/* Brak zgłoszeń */
.wcer-empty-box {
    text-align: center; padding: 32px 20px;
    background: #f9f9fc; border-radius: 10px;
    border: 2px dashed #e0e0e0; margin-bottom: 28px;
}
.wcer-empty-icon { font-size: 42px; margin-bottom: 10px; }
.wcer-empty-box p { color: #888; margin: 0; font-size: 15px; }

/* Prawa konsumenta */
.wcer-rights-title { color: #353F4C; font-size: 16px; font-weight: 700; margin: 0 0 14px; }
.wcer-rights-grid  { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px,1fr)); gap: 12px; margin-bottom: 24px; }
.wcer-right-card   { background: #fff; border: 1px solid #e8e8e8; border-radius: 8px; padding: 14px 16px; }
.wcer-right-card__icon { font-size: 20px; margin-bottom: 6px; }
.wcer-right-card h4 { color: #353F4C; font-size: 13px; font-weight: 700; margin: 0 0 5px; }
.wcer-right-card p  { font-size: 12px; color: #666; margin: 0; line-height: 1.5; }
.wcer-right-card strong { color: #353F4C; }

.wcer-cta-wrap { text-align: center; margin-top: 20px; }
.wcer-cta-btn  {
    display: inline-block; background: #353F4C; color: #fff !important;
    padding: 13px 30px; border-radius: 6px; text-decoration: none;
    font-weight: 700; font-size: 15px; transition: background .15s;
}
.wcer-cta-btn:hover { background: #2a3240; }

.wcer-new-btn {
    display: inline-block; margin-top: 16px;
    background: #353F4C; color: #fff !important;
    padding: 10px 22px; border-radius: 6px; text-decoration: none;
    font-weight: 600; font-size: 14px; transition: background .15s;
}
.wcer-new-btn:hover { background: #2a3240; }

/* ── Karta zgłoszenia ─────────────────────────────────────────── */
.wcer-card {
    background: #fff;
    border: 1px solid #e4e7ec;
    border-radius: 12px;
    margin-bottom: 20px;
    overflow: hidden;
    box-shadow: 0 1px 6px rgba(0,0,0,.06);
    transition: box-shadow .2s;
}
.wcer-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,.1); }

/* Nagłówek karty */
.wcer-card__header {
    display: flex; align-items: center; justify-content: space-between;
    flex-wrap: wrap; gap: 10px;
    padding: 16px 20px;
    background: linear-gradient(135deg, #f8f9fb 0%, #f1f3f6 100%);
    border-bottom: 1px solid #e4e7ec;
}
.wcer-card__meta    { display: flex; flex-direction: column; gap: 2px; }
.wcer-card__id      { font-weight: 700; color: #353F4C; font-size: 15px; }
.wcer-card__date    { font-size: 12px; color: #9ca3af; }
.wcer-card__status  {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 6px 14px; border-radius: 20px;
    font-size: 13px; font-weight: 700; white-space: nowrap;
}
.wcer-test-pill {
    display: inline-block; background: #f59e0b; color: #fff;
    font-size: 10px; padding: 2px 7px; border-radius: 10px;
    font-weight: 700; vertical-align: middle; margin-left: 4px;
}

/* Szczegóły */
.wcer-card__details {
    display: flex; flex-wrap: wrap; gap: 0;
    border-bottom: 1px solid #f0f0f0;
}
.wcer-card__detail {
    display: flex; flex-direction: column; gap: 2px;
    padding: 12px 20px; flex: 1; min-width: 140px;
    border-right: 1px solid #f0f0f0;
}
.wcer-card__detail:last-child { border-right: none; }
.wcer-card__detail--note {
    flex-basis: 100%; border-right: none;
    border-top: 1px solid #f0f0f0;
    background: #fffbf0;
}
.wcer-card__detail-label {
    font-size: 11px; font-weight: 600; color: #9ca3af;
    text-transform: uppercase; letter-spacing: .5px;
}
.wcer-card__detail > span:last-child { font-size: 13px; color: #353F4C; font-weight: 500; }

/* Tracker */
.wcer-tracker {
    display: flex; align-items: flex-start;
    padding: 20px; overflow-x: auto; gap: 0;
    border-bottom: 1px solid #f0f0f0;
}
.wcer-tracker__item {
    display: flex; flex-direction: column; align-items: center;
    min-width: 80px; gap: 6px;
}
.wcer-tracker__dot {
    width: 32px; height: 32px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 13px; font-weight: 700; flex-shrink: 0;
    position: relative;
    background: #f1f5f9; color: #94a3b8;
    border: 2px solid #e2e8f0;
    transition: all .2s;
}
.wcer-tracker__dot--done {
    background: #353F4C; color: #fff;
    border-color: #353F4C;
}
.wcer-tracker__dot--active {
    background: #fff; color: #f59e0b;
    border-color: #f59e0b; border-width: 2px;
}
.wcer-tracker__dot--rejected {
    background: #fee2e2; color: #ef4444;
    border-color: #fca5a5;
}
.wcer-tracker__pulse {
    width: 10px; height: 10px; border-radius: 50%;
    background: #f59e0b;
    animation: wcer-pulse-dot 1.4s ease-in-out infinite;
    display: block;
}
@keyframes wcer-pulse-dot {
    0%, 100% { transform: scale(1); opacity: 1; }
    50%       { transform: scale(1.3); opacity: .7; }
}
.wcer-tracker__label {
    font-size: 11px; color: #94a3b8; text-align: center;
    line-height: 1.3; max-width: 80px;
}
.wcer-tracker__label--done     { color: #353F4C; font-weight: 600; }
.wcer-tracker__label--active   { color: #f59e0b; font-weight: 700; }
.wcer-tracker__label--rejected { color: #ef4444; font-weight: 600; }

.wcer-tracker__line {
    flex: 1; height: 2px; margin-top: 15px;
    background: #e2e8f0; min-width: 16px;
    transition: background .3s;
}
.wcer-tracker__line--done { background: #353F4C; }

/* Co dalej? */
.wcer-card__next {
    padding: 16px 20px;
    background: #fafbfc;
}
.wcer-card__next-title {
    font-size: 12px; font-weight: 700; color: #353F4C;
    text-transform: uppercase; letter-spacing: .6px;
    margin-bottom: 10px;
}
.wcer-card__next-body p    { font-size: 13px; color: #444; margin: 0 0 8px; line-height: 1.6; }
.wcer-card__next-body p:last-child { margin: 0; }
.wcer-card__next-body strong { color: #353F4C; }
.wcer-card__next-body ul   { margin: 0 0 8px 18px; padding: 0; }
.wcer-card__next-body li   { font-size: 13px; color: #444; margin-bottom: 4px; line-height: 1.5; }

@media (max-width: 600px) {
    .wcer-card__header  { flex-direction: column; align-items: flex-start; }
    .wcer-card__details { flex-direction: column; }
    .wcer-card__detail  { border-right: none; border-bottom: 1px solid #f0f0f0; min-width: 100%; }
    .wcer-tracker__item { min-width: 60px; }
    .wcer-tracker__label { font-size: 10px; max-width: 60px; }
    .wcer-rights-grid   { grid-template-columns: 1fr; }
}

/* ── Anulowanie zwrotu ──────────────────────────────────────────────────── */
.wcer-card__cancel {
    padding: 12px 20px;
    border-top: 1px solid #fee2e2;
    background: #fff5f5;
    display: flex; align-items: center; gap: 10px;
}
.wcer-cancel-btn {
    background: none; border: 1.5px solid #fca5a5; color: #dc2626;
    padding: 6px 14px; border-radius: 5px; font-size: 13px; font-weight: 600;
    cursor: pointer; transition: all .15s;
}
.wcer-cancel-btn:hover   { background: #fee2e2; border-color: #dc2626; }
.wcer-cancel-btn:disabled { opacity: .5; cursor: not-allowed; }

/* Status anulowany */
.wcer-status--cancelled_by_customer,
.wcer-status--cancelled { background: #fee2e2 !important; color: #7f1d1d !important; }

/* Tracker - odrzucony i anulowany */
.wcer-tracker__dot--rejected { background: #fee2e2; color: #dc2626; border-color: #fca5a5; }

/* ── Tabela danych w karcie ─────────────────────────────────────────────── */
.wcer-card__table-wrap {
    padding: 0 20px;
    border-bottom: 1px solid #f0f0f0;
}
.wcer-card__table {
    width: 100%; border-collapse: collapse;
    font-size: 13px; margin: 12px 0;
}
.wcer-card__table th {
    text-align: left; color: #9ca3af; font-weight: 600;
    font-size: 11px; text-transform: uppercase; letter-spacing: .4px;
    padding: 7px 12px 7px 0; white-space: nowrap; width: 1%;
    vertical-align: top;
}
.wcer-card__table td {
    color: #353F4C; padding: 7px 20px 7px 0;
    border-bottom: 1px solid #f8f8f8; vertical-align: top;
}
.wcer-card__table tr:last-child td { border-bottom: none; }
.wcer-card__table-note th,
.wcer-card__table-note td {
    background: #fffbf0;
    border-top: 1px solid #fef3c7 !important;
}

/* ── Footer karty z przyciskiem ─────────────────────────────────────────── */
.wcer-card__footer {
    padding: 14px 20px;
    background: #fafafa;
    border-top: 1px solid #f0f0f0;
    display: flex; align-items: center; gap: 12px;
}
.wcer-cancel-btn {
    background: #fff; border: 1.5px solid #dc2626; color: #dc2626;
    padding: 8px 18px; border-radius: 6px; font-size: 13px; font-weight: 600;
    cursor: pointer; transition: all .15s; white-space: nowrap;
}
.wcer-cancel-btn:hover   { background: #dc2626; color: #fff; }
.wcer-cancel-btn:disabled { opacity: .5; cursor: not-allowed; }
.wcer-cancel-msg { font-size: 13px; }

@media (max-width:600px) {
    .wcer-card__table { display: block; overflow-x: auto; }
    .wcer-card__table tr { display: flex; flex-wrap: wrap; gap: 0; }
    .wcer-card__table th, .wcer-card__table td { display: block; width: 50%; padding: 5px 8px; }
}

/* ── Prosty upload zdjęć ────────────────────────────────────────────────── */
.wcer-upload-simple { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.wcer-file-label {
    display: inline-flex; align-items: center; gap: 7px;
    background: #353F4C; color: #fff !important;
    padding: 9px 18px; border-radius: 6px; cursor: pointer;
    font-size: 14px; font-weight: 600; transition: background .15s;
    border: none; user-select: none;
}
.wcer-file-label:hover { background: #2a3240; }
.wcer-file-label svg  { flex-shrink: 0; }
