/* rma-zwrot.css — shared styles for RMA + return pages (roslinyakwariowe.pl, 2026) */

:root {
    --rz-primary: #16a34a;
    --rz-primary-hover: #15803d;
    --rz-primary-light: #f0fdf4;
    --rz-primary-border: #bbf7d0;
    --rz-danger: #dc2626;
    --rz-danger-hover: #b91c1c;
    --rz-danger-light: #fef2f2;
    --rz-info: #2563eb;
    --rz-info-light: #eff6ff;
    --rz-info-border: #bfdbfe;
    --rz-text: #0f172a;
    --rz-text-secondary: #475569;
    --rz-text-muted: #94a3b8;
    --rz-bg: #f8fafc;
    --rz-bg-card: #ffffff;
    --rz-bg-input: #f1f5f9;
    --rz-border: #e2e8f0;
    --rz-border-focus: #16a34a;
    --rz-shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --rz-shadow: 0 1px 3px rgba(0,0,0,0.1), 0 1px 2px rgba(0,0,0,0.06);
    --rz-shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.1);
    --rz-shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.1);
    --rz-radius: 12px;
    --rz-radius-sm: 8px;
    --rz-radius-lg: 16px;
    --rz-transition: 0.2s ease;
    --rz-font: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* --- Container --- */
.rma-container,
.zwrot-container {
    margin: 20px auto;
    padding: 24px;
    font-family: var(--rz-font);
}

/* --- Page titles --- */
.rz-page-title {
    font-size: 28px;
    font-weight: 600;
    color: var(--rz-text);
    margin-bottom: 8px;
    line-height: 1.3;
}
.rz-page-subtitle {
    font-size: 15px;
    color: var(--rz-text-secondary);
    margin-bottom: 32px;
    line-height: 1.6;
}

/* --- Main CTA button --- */
.rma-main-button {
    display: block;
    width: 100%;
    max-width: 420px;
    margin: 0 auto 40px;
    padding: 18px 40px;
    background: linear-gradient(135deg, var(--rz-danger) 0%, var(--rz-danger-hover) 100%);
    color: #fff;
    border: none;
    border-radius: var(--rz-radius);
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--rz-transition);
    text-align: center;
    box-shadow: var(--rz-shadow-md);
    font-family: var(--rz-font);
}
.rma-main-button:hover { transform: translateY(-1px); box-shadow: var(--rz-shadow-lg); }
.rma-main-button:active { transform: translateY(0); }

/* --- Options grid (RMA) --- */
.rma-options-container {
    display: none;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}
.rma-options-container.active { display: grid; }

.rma-option-header {
    text-align: center;
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 24px;
    color: var(--rz-text);
}

/* --- Cards --- */
.rma-option-card,
.rz-card {
    background: var(--rz-bg-card);
    border-radius: var(--rz-radius);
    padding: 28px;
    box-shadow: var(--rz-shadow);
    display: flex;
    flex-direction: column;
    border: 1px solid var(--rz-border);
    transition: all var(--rz-transition);
}
.rma-option-card:hover { box-shadow: var(--rz-shadow-md); border-color: var(--rz-primary-border); }

.rma-option-card h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--rz-text);
    text-align: center;
}
.rma-option-card ul {
    padding: 0 0 0 20px;
    margin: 0 0 24px 0;
    flex-grow: 1;
}
.rma-option-card li {
    padding: 6px 0;
    color: var(--rz-text-secondary);
    font-size: 14px;
    line-height: 1.6;
}

/* --- Buttons --- */
/* Link <a> stylizowany jak przycisk (np. "Zwroc towar" na rma.php) */
a.rma-button {
    display: block;
    text-decoration: none;
}
.rma-button,
.rz-btn {
    padding: 14px 28px;
    border-radius: var(--rz-radius-sm);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--rz-transition);
    border: none;
    text-align: center;
    font-family: var(--rz-font);
}
.rma-button-green, .rz-btn-primary {
    background: var(--rz-primary);
    color: #fff;
}
.rma-button-green:hover, .rz-btn-primary:hover {
    background: var(--rz-primary-hover);
    box-shadow: var(--rz-shadow-sm);
}
.rma-button-white, .rz-btn-outline {
    background: var(--rz-bg-card);
    color: var(--rz-text);
    border: 2px solid var(--rz-border);
}
.rma-button-white:hover, .rz-btn-outline:hover {
    background: var(--rz-bg);
    border-color: var(--rz-text-secondary);
}
.rma-button-red, .rz-btn-danger {
    background: var(--rz-danger);
    color: #fff;
    padding: 14px 40px;
    border: none;
    border-radius: var(--rz-radius-sm);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--rz-transition);
    font-family: var(--rz-font);
}
.rma-button-red:hover, .rz-btn-danger:hover { background: var(--rz-danger-hover); }

.rma-back-button,
.rz-btn-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 20px;
    padding: 10px 18px;
    background: transparent;
    color: var(--rz-text-secondary);
    border: 1px solid var(--rz-border);
    border-radius: var(--rz-radius-sm);
    cursor: pointer;
    font-size: 14px;
    font-family: var(--rz-font);
    transition: all var(--rz-transition);
}
.rma-back-button:hover, .rz-btn-back:hover {
    background: var(--rz-bg);
    color: var(--rz-text);
    border-color: var(--rz-text-secondary);
}

/* --- Form containers --- */
.rma-form-container,
.zwrot-step {
    display: none;
    max-width: 900px;
    margin: 0 auto;
    animation: rz-fadeIn 0.3s ease;
}
.rma-form-container.active,
.zwrot-step.active {
    display: block;
}
@keyframes rz-fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* --- Form headers --- */
.rma-form-header,
.rz-form-header {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--rz-text);
}
.rma-form-subheader {
    font-size: 15px;
    font-weight: 400;
    margin-bottom: 24px;
    color: var(--rz-text-secondary);
}

/* --- Form cards --- */
.rma-form-card,
.rz-form-card {
    background: var(--rz-bg-card);
    border-radius: var(--rz-radius);
    padding: 24px 28px;
    box-shadow: var(--rz-shadow);
    border: 1px solid var(--rz-border);
}

/* --- Radio groups --- */
.rma-radio-group,
.rz-radio-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.rma-radio-option,
.rz-radio-option {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    padding: 16px 20px;
    background: var(--rz-bg);
    border: 1px solid var(--rz-border);
    border-radius: var(--rz-radius-sm);
    transition: all var(--rz-transition);
}
.rma-radio-option:hover,
.rz-radio-option:hover {
    border-color: var(--rz-primary-border);
    background: var(--rz-primary-light);
}

/* Custom radio */
.rma-radio-option input[type="radio"],
.rz-radio-option input[type="radio"] {
    margin-right: 12px;
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    cursor: pointer;
    border: 2px solid var(--rz-border);
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    border-radius: 50%;
    background: var(--rz-bg-card);
    position: relative;
    transition: all var(--rz-transition);
}
.rma-radio-option input[type="radio"]:checked,
.rz-radio-option input[type="radio"]:checked {
    border-color: var(--rz-primary);
    background: var(--rz-primary);
}
.rma-radio-option input[type="radio"]:checked::after,
.rz-radio-option input[type="radio"]:checked::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #fff;
}
.rma-radio-label,
.rz-radio-label { flex-grow: 1; }
.rma-radio-label-title,
.rz-radio-label-title {
    font-weight: 600;
    font-size: 14px;
    /* 20px = wysokosc kolka radio, zeby tekst i radio byly w jednej linii */
    line-height: 20px;
    color: var(--rz-text);
    margin-bottom: 4px;
    display: block;
}
/* Opcje bez opisu: bez dolnego marginesu tytulu */
.rma-radio-label-title:only-child,
.rz-radio-label-title:only-child { margin-bottom: 0; }
.rma-radio-label-desc,
.rz-radio-label-desc {
    font-size: 13px;
    color: var(--rz-text-secondary);
    line-height: 1.5;
}

/* --- Custom checkboxes --- */
.rma-container input[type="checkbox"],
.zwrot-container input[type="checkbox"] {
    width: 22px;
    height: 22px;
    cursor: pointer;
    border: 2px solid var(--rz-border);
    border-radius: 4px;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background: var(--rz-bg-card);
    position: relative;
    flex-shrink: 0;
    outline: none;
    box-shadow: none;
    vertical-align: middle;
    transition: all var(--rz-transition);
}
.rma-container input[type="checkbox"]:focus,
.zwrot-container input[type="checkbox"]:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(22,163,74,0.15);
}
.rma-container input[type="checkbox"]:checked,
.zwrot-container input[type="checkbox"]:checked {
    background: var(--rz-primary) !important;
    border-color: var(--rz-primary) !important;
}
.rma-container input[type="checkbox"]:checked::after,
.zwrot-container input[type="checkbox"]:checked::after {
    content: '\2713';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-size: 13px;
    font-weight: bold;
    line-height: 1;
}

/* Override for product-item checkboxes */
.rma-product-item input[type="checkbox"],
.rz-product-item input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-right: 12px;
}

/* --- Inputs --- */
.rma-input,
.rz-input {
    width: 100%;
    padding: 12px 16px;
    background: var(--rz-bg-input);
    border: 1px solid var(--rz-border);
    border-radius: var(--rz-radius-sm);
    font-size: 14px;
    font-family: var(--rz-font);
    margin-bottom: 16px;
    box-sizing: border-box;
    transition: all var(--rz-transition);
    color: var(--rz-text);
}
.rma-input:focus,
.rz-input:focus {
    outline: none;
    border-color: var(--rz-border-focus);
    box-shadow: 0 0 0 3px rgba(22,163,74,0.1);
    background: var(--rz-bg-card);
}
.rma-input::placeholder,
.rz-input::placeholder {
    color: var(--rz-text-muted);
}
.rma-input[readonly].flatpickr-input {
    background: var(--rz-bg-card);
    cursor: pointer;
    box-sizing: border-box;
}

/* --- Textarea --- */
.rma-textarea,
.rz-textarea {
    width: 100%;
    padding: 12px 16px;
    background: var(--rz-bg-input);
    border: 1px solid var(--rz-border);
    border-radius: var(--rz-radius-sm);
    font-size: 14px;
    font-family: var(--rz-font);
    min-height: 140px;
    resize: vertical;
    box-sizing: border-box;
    transition: all var(--rz-transition);
    color: var(--rz-text);
}
.rma-textarea:focus,
.rz-textarea:focus {
    outline: none;
    border-color: var(--rz-border-focus);
    box-shadow: 0 0 0 3px rgba(22,163,74,0.1);
    background: var(--rz-bg-card);
}

/* --- Character counter --- */
.rma-char-counter {
    text-align: right;
    color: var(--rz-text-muted);
    font-size: 13px;
    margin-top: 4px;
}

/* --- Product list --- */
.rma-product-list,
.rz-product-list { margin: 16px 0; }

.rma-product-item,
.rz-product-item {
    display: flex;
    align-items: center;
    padding: 14px;
    background: var(--rz-bg);
    border: 1px solid var(--rz-border);
    border-radius: var(--rz-radius-sm);
    margin-bottom: 12px;
    cursor: pointer;
    transition: all var(--rz-transition);
}
.rma-product-item:hover,
.rz-product-item:hover { border-color: var(--rz-primary-border); }
.rma-product-item.selected,
.rz-product-item.selected {
    background: var(--rz-primary-light);
    border-color: var(--rz-primary);
}

.rma-product-image,
.rz-product-image {
    width: 80px;
    height: 80px;
    object-fit: cover;
    margin-right: 14px;
    border-radius: 6px;
    flex-shrink: 0;
    border: 1px solid var(--rz-border);
}
.rma-product-info,
.rz-product-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex-grow: 1;
}
.rma-product-name,
.rz-product-name {
    font-size: 14px;
    color: var(--rz-text);
    font-weight: 600;
    line-height: 1.3;
    word-wrap: break-word;
    overflow-wrap: break-word;
}
.rma-product-qty,
.rz-product-qty {
    margin-top: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--rz-text-secondary);
    font-size: 13px;
}
.rz-product-price {
    font-size: 14px;
    font-weight: 600;
    color: var(--rz-text);
    margin-top: 4px;
}

.rma-qty-input,
.rz-qty-input {
    width: 72px;
    height: 40px;
    padding: 8px 10px;
    background: var(--rz-bg-card);
    border: 1px solid var(--rz-border);
    border-radius: var(--rz-radius-sm);
    font-size: 15px;
    transition: all var(--rz-transition);
    text-align: center;
    font-family: var(--rz-font);
}
.rma-qty-input:focus,
.rz-qty-input:focus {
    outline: none;
    border-color: var(--rz-border-focus);
}

/* --- Stepper ilosci (- / ilosc / +) --- */
.rma-product-item { flex-wrap: wrap; }
.rma-product-item label {
    flex: 1 1 auto;
    display: flex;
    align-items: center;
}
.rma-product-item .rma-product-image {
    width: 56px;
    height: 56px;
}
.rma-product-item .rma-product-qty {
    flex-basis: 100%;
    flex-shrink: 0;
    margin-top: 12px;
    margin-left: 0;
}
.rma-qty-label {
    white-space: nowrap;
}
.rma-qty-max {
    color: var(--rz-text-muted);
    white-space: nowrap;
}
.rma-qty-stepper {
    display: inline-flex;
    align-items: stretch;
    height: 40px;
    border: 1px solid var(--rz-border);
    border-radius: var(--rz-radius-sm);
    background: var(--rz-bg-card);
    overflow: hidden;
    flex-shrink: 0;
    transition: border-color var(--rz-transition), box-shadow var(--rz-transition);
}
.rma-qty-stepper:focus-within {
    border-color: var(--rz-border-focus);
    box-shadow: 0 0 0 3px rgba(22,163,74,0.1);
}
.rma-qty-btn {
    width: 36px;
    border: none;
    background: var(--rz-bg);
    color: var(--rz-text-secondary);
    font-size: 18px;
    font-weight: 600;
    font-family: var(--rz-font);
    line-height: 1;
    cursor: pointer;
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    -webkit-user-select: none;
    user-select: none;
    transition: background var(--rz-transition), color var(--rz-transition);
}
.rma-qty-btn:hover {
    background: var(--rz-primary-light);
    color: var(--rz-primary);
}
.rma-qty-btn:active {
    background: var(--rz-primary-border);
}
.rma-qty-stepper .rma-qty-input {
    width: 52px;
    height: auto;
    border: none;
    border-left: 1px solid var(--rz-border);
    border-right: 1px solid var(--rz-border);
    border-radius: 0;
    margin: 0;
    padding: 0 4px;
    text-align: center;
    font-size: 15px;
    background: var(--rz-bg-card);
    color: var(--rz-text);
    -moz-appearance: textfield;
    appearance: textfield;
}
.rma-qty-stepper .rma-qty-input:focus {
    outline: none;
    border-color: var(--rz-border);
    box-shadow: none;
    background: var(--rz-bg-card);
}
.rma-qty-stepper input::-webkit-outer-spin-button,
.rma-qty-stepper input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.rma-manual-product-item {
    margin-bottom: 15px;
}
.rma-manual-product-item .rma-manual-product-name {
    margin-bottom: 8px;
}
.rma-manual-qty-row {
    margin-top: 0;
}

/* --- Upload zone --- */
.rma-upload-zone {
    border: 2px dashed var(--rz-border);
    border-radius: var(--rz-radius);
    padding: 32px;
    text-align: center;
    cursor: pointer;
    transition: all var(--rz-transition);
    margin: 16px 0;
    background: var(--rz-bg);
}
.rma-upload-zone:hover,
.rma-upload-zone.dragover {
    border-color: var(--rz-primary);
    background: var(--rz-primary-light);
}
.rma-upload-icon {
    color: var(--rz-text-muted);
    margin-bottom: 12px;
    display: flex;
    justify-content: center;
}
.rma-upload-icon svg { color: var(--rz-text-muted); }

/* --- File items --- */
.rma-file-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    background: var(--rz-bg);
    padding: 14px;
    border: 1px solid var(--rz-border);
    border-radius: var(--rz-radius-sm);
    margin-bottom: 12px;
}
.rma-file-thumbnail { width: 40px; height: 40px; object-fit: cover; border-radius: 4px; }
.rma-file-info { flex-grow: 1; }
.rma-file-name { font-size: 14px; color: var(--rz-text); margin-bottom: 3px; }
.rma-file-size { font-size: 12px; color: var(--rz-text-muted); }
.rma-file-delete {
    background: var(--rz-danger);
    color: #fff;
    border: none;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    white-space: nowrap;
    flex-shrink: 0;
    transition: all var(--rz-transition);
}
.rma-file-delete:hover { background: var(--rz-danger-hover); }

/* --- Toggle --- */
.rma-toggle-container {
    display: flex;
    align-items: center;
    margin: 16px 0;
    cursor: pointer;
}
.rma-toggle {
    position: relative;
    width: 48px;
    height: 26px;
    background: var(--rz-border);
    border-radius: 13px;
    margin-right: 12px;
    transition: background var(--rz-transition);
    flex-shrink: 0;
}
.rma-toggle.active { background: var(--rz-primary); }
.rma-toggle-slider {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 22px;
    height: 22px;
    background: #fff;
    border-radius: 50%;
    transition: transform var(--rz-transition);
    box-shadow: var(--rz-shadow-sm);
}
.rma-toggle.active .rma-toggle-slider { transform: translateX(22px); }

/* --- Info / error / success / warning boxes --- */
.rma-error-box, .rz-error-box {
    border: 1px solid var(--rz-danger);
    background: var(--rz-danger-light);
    color: var(--rz-danger);
    padding: 14px 16px;
    border-radius: var(--rz-radius-sm);
    margin: 16px 0;
    font-size: 14px;
    line-height: 1.5;
}
.rma-info-box, .rz-info-box {
    line-height: 1.6;
    border: 1px solid var(--rz-info-border);
    background: var(--rz-info-light);
    padding: 16px 20px;
    border-radius: var(--rz-radius-sm);
    margin: 16px 0;
    font-size: 14px;
    color: var(--rz-text);
}
.rma-info-box a, .rz-info-box a {
    color: var(--rz-info);
    font-weight: 600;
    text-decoration: none;
}
.rma-info-box a:hover, .rz-info-box a:hover { text-decoration: underline; }

.rz-success-box {
    border: 1px solid var(--rz-primary-border);
    background: var(--rz-primary-light);
    padding: 20px 24px;
    border-radius: var(--rz-radius-sm);
    margin: 16px 0;
    font-size: 14px;
    color: var(--rz-text);
    line-height: 1.6;
}
.rz-warning-box {
    border: 1px solid #fbbf24;
    background: #fffbeb;
    padding: 16px 20px;
    border-radius: var(--rz-radius-sm);
    margin: 16px 0;
    font-size: 14px;
    color: var(--rz-text);
    line-height: 1.6;
}

/* --- Customer data --- */
.rma-customer-data,
.rz-customer-data {
    background: var(--rz-bg);
    padding: 20px;
    border-radius: var(--rz-radius-sm);
    margin: 16px 0;
    border: 1px solid var(--rz-border);
}

/* --- Links --- */
.rma-link, .rz-link {
    color: var(--rz-info);
    cursor: pointer;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
}
.rma-link:hover, .rz-link:hover { text-decoration: underline; }

/* --- Section --- */
.rma-section, .rz-section { margin-bottom: 24px; }
.rma-section-title, .rz-section-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--rz-text);
}
.rma-section-subtitle, .rz-section-subtitle {
    font-size: 14px;
    color: var(--rz-text-secondary);
    margin-bottom: 16px;
    line-height: 1.5;
}

/* --- Side panel --- */
.rma-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.4);
    z-index: 9999;
    display: none;
    backdrop-filter: blur(2px);
}
.rma-overlay.active { display: block; }
.rma-side-panel {
    position: fixed;
    top: 0;
    right: -600px;
    width: 560px;
    height: 100%;
    background: var(--rz-bg-card);
    box-shadow: var(--rz-shadow-lg);
    transition: right 0.3s ease;
    z-index: 10000;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 40px;
    display: none;
}
.rma-side-panel.active { display: block; right: 0; }
.rma-close-panel {
    position: absolute;
    top: 16px;
    right: 16px;
    background: var(--rz-bg);
    border: 1px solid var(--rz-border);
    font-size: 24px;
    cursor: pointer;
    color: var(--rz-text-secondary);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--rz-transition);
}
.rma-close-panel:hover { background: var(--rz-bg-input); color: var(--rz-text); }
.rma-side-panel p { word-wrap: break-word; overflow-wrap: break-word; }

/* --- Date input --- */
.rma-date-input-wrapper { position: relative; }
.flatpickr-calendar { margin-top: 4px; }

/* --- Hidden utility --- */
.hidden { display: none !important; }

/* --- Manual products (RMA) --- */
.rma-manual-product-qty {
    max-width: 80px;
}

/* ===================================================================
   ZWROT-specific
   =================================================================== */

.zwrot-cta-section {
    text-align: center;
    padding: 40px 24px;
    background: linear-gradient(135deg, var(--rz-primary-light) 0%, #ecfdf5 100%);
    border-radius: var(--rz-radius-lg);
    border: 1px solid var(--rz-primary-border);
    margin-bottom: 32px;
}
.zwrot-cta-title {
    font-size: 24px;
    font-weight: 600;
    color: var(--rz-text);
    margin-bottom: 12px;
}
.zwrot-cta-subtitle {
    font-size: 15px;
    color: var(--rz-text-secondary);
    margin-bottom: 24px;
    line-height: 1.6;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}
.zwrot-cta-button {
    display: inline-block;
    padding: 16px 48px;
    background: var(--rz-primary);
    color: #fff;
    border: none;
    border-radius: var(--rz-radius-sm);
    font-size: 17px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--rz-transition);
    font-family: var(--rz-font);
    box-shadow: var(--rz-shadow);
}
.zwrot-cta-button:hover {
    background: var(--rz-primary-hover);
    box-shadow: var(--rz-shadow-md);
    transform: translateY(-1px);
}

/* Step indicator */
.rz-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 32px;
}
.rz-step {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--rz-text-muted);
    font-weight: 500;
}
.rz-step.active  { color: var(--rz-primary); }
.rz-step.done    { color: var(--rz-primary); }
.rz-step-num {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 600;
    background: var(--rz-bg-input);
    border: 2px solid var(--rz-border);
    flex-shrink: 0;
}
.rz-step.active .rz-step-num,
.rz-step.done .rz-step-num {
    background: var(--rz-primary);
    border-color: var(--rz-primary);
    color: #fff;
}
.rz-step-line {
    width: 40px;
    height: 2px;
    background: var(--rz-border);
    margin: 0 8px;
    flex-shrink: 0;
}
.rz-step-line.done { background: var(--rz-primary); }

/* Order cards */
.rz-order-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: var(--rz-bg);
    border: 1px solid var(--rz-border);
    border-radius: var(--rz-radius-sm);
    margin-bottom: 12px;
    cursor: pointer;
    transition: all var(--rz-transition);
}
.rz-order-card:hover { border-color: var(--rz-primary-border); background: var(--rz-primary-light); }
.rz-order-card.selected {
    border-color: var(--rz-primary);
    background: var(--rz-primary-light);
    box-shadow: 0 0 0 2px rgba(22,163,74,0.15);
}
.rz-order-id { font-weight: 600; font-size: 15px; color: var(--rz-text); }
.rz-order-date { font-size: 13px; color: var(--rz-text-secondary); margin-top: 2px; }
.rz-order-remaining {
    font-size: 12px;
    color: var(--rz-primary);
    font-weight: 500;
    background: var(--rz-primary-light);
    padding: 4px 10px;
    border-radius: 20px;
    border: 1px solid var(--rz-primary-border);
    white-space: nowrap;
}

/* Return summary */
.rz-summary {
    background: var(--rz-bg);
    border: 1px solid var(--rz-border);
    border-radius: var(--rz-radius-sm);
    padding: 20px;
    margin: 20px 0;
}
.rz-summary-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 14px;
    color: var(--rz-text-secondary);
}
.rz-summary-row.total {
    border-top: 1px solid var(--rz-border);
    margin-top: 8px;
    padding-top: 12px;
    font-weight: 600;
    color: var(--rz-text);
    font-size: 16px;
}

/* Confirmation screen */
.rz-confirmation {
    text-align: center;
    padding: 48px 24px;
}
.rz-confirmation-icon {
    width: 64px;
    height: 64px;
    background: var(--rz-primary-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}
.rz-confirmation-icon svg { width: 32px; height: 32px; color: var(--rz-primary); }
.rz-confirmation h2 { font-size: 22px; font-weight: 600; margin-bottom: 12px; color: var(--rz-text); }
.rz-confirmation p {
    font-size: 15px;
    color: var(--rz-text-secondary);
    line-height: 1.6;
    max-width: 500px;
    margin: 0 auto;
}

/* Legal notice */
.rz-legal-notice {
    font-size: 12px;
    color: var(--rz-text-muted);
    line-height: 1.6;
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid var(--rz-border);
}

/* Tab nav for logged-in / guest */
.rz-tab-nav {
    display: flex;
    gap: 0;
    margin-bottom: 24px;
    border-bottom: 2px solid var(--rz-border);
}
.rz-tab-btn {
    flex: 1;
    padding: 14px 20px;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    font-size: 14px;
    font-weight: 600;
    color: var(--rz-text-muted);
    cursor: pointer;
    transition: all var(--rz-transition);
    font-family: var(--rz-font);
    text-align: center;
}
.rz-tab-btn:hover { color: var(--rz-text-secondary); }
.rz-tab-btn.active {
    color: var(--rz-primary);
    border-bottom-color: var(--rz-primary);
}
.rz-tab-content { display: none; }
.rz-tab-content.active { display: block; }

/* Spinner */
.rz-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid var(--rz-border);
    border-top-color: var(--rz-primary);
    border-radius: 50%;
    animation: rz-spin 0.6s linear infinite;
    vertical-align: middle;
    margin-right: 8px;
}
@keyframes rz-spin { to { transform: rotate(360deg); } }

/* ===================================================================
   Mobile responsive
   =================================================================== */
@media (max-width: 1599px) {
    .rma-options-container { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 768px) {
    .rma-container, .zwrot-container { padding: 16px; }
    .rma-options-container { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .rma-option-card { padding: 20px; }
    .rma-option-card h3 { font-size: 16px; }
    .rma-button, .rz-btn { width: 100%; }
    .rma-main-button { max-width: 100%; }
    .rma-form-header, .rz-form-header { font-size: 20px; }
    .rma-form-card, .rz-form-card { padding: 20px; }
    .rma-section-title, .rz-section-title { font-size: 16px; }
    .rma-radio-option, .rz-radio-option { padding: 14px; }
    .rma-textarea, .rz-textarea { min-height: 100px; font-size: 16px; }
    .rma-input, .rz-input { font-size: 16px; }

    .rma-product-item, .rz-product-item {
        flex-direction: column;
        align-items: stretch;
        position: relative;
        padding: 16px;
    }
    .rma-product-item input[type="checkbox"],
    .rz-product-item input[type="checkbox"] {
        position: absolute;
        top: 16px;
        left: 16px;
        margin: 0;
        z-index: 10;
    }
    .rma-product-item label, .rz-product-item label {
        flex-direction: column;
        align-items: center;
        width: 100%;
    }
    .rma-product-image, .rz-product-image {
        width: 72px;
        height: 72px;
        margin: 0 0 12px 0 !important;
    }
    .rma-product-name, .rz-product-name { font-size: 13px; text-align: center; }
    .rma-product-item .rma-product-qty {
        margin-left: 0;
        margin-top: 12px;
        flex-wrap: wrap;
        justify-content: center;
    }
    .rma-manual-qty-row {
        flex-wrap: wrap;
    }
    /* 16px zapobiega auto-zoomowi na iOS przy focusie */
    .rma-qty-stepper .rma-qty-input {
        font-size: 16px;
    }

    .rma-upload-zone { padding: 20px; }

    .rma-side-panel { width: 100%; right: -100%; padding: 56px 20px 20px; }
    .rma-side-panel h2 { margin-top: 8px; padding-right: 40px; }
    .rma-side-panel img { max-width: 100%; height: auto; }
    .rma-side-panel p { font-size: 14px; }
    .rma-close-panel { top: 12px; right: 12px; }
    .rma-file-item { flex-wrap: wrap; }
    .rma-file-name { font-size: 12px; word-break: break-word; }
    .rma-file-delete { font-size: 12px; }

    .zwrot-cta-section { padding: 28px 16px; }
    .zwrot-cta-title { font-size: 20px; }
    .zwrot-cta-button { width: 100%; padding: 14px 24px; }
    .rz-steps { flex-wrap: wrap; gap: 4px; }
    .rz-step { font-size: 12px; }
    .rz-step-line { width: 24px; }
    .rz-order-card { flex-direction: column; align-items: flex-start; gap: 8px; }
    .rz-page-title { font-size: 22px; }
    .rz-confirmation { padding: 32px 16px; }
}

@media (max-width: 480px) {
    .rma-options-container { grid-template-columns: 1fr; }
    .rma-option-header { font-size: 18px; }
}
