/*
 * Returns (RMA) page: status lookup, 5-step wizard, success screen, request history.
 * Loaded only on page-templates/Return Requests.php (inc/returns/frontend.php).
 * Works inside the theme look: grey page, white surfaces, black pill buttons, orange accent,
 * bert sans headings, Roboto Mono body. The theme kills outline/box-shadow on `body *` with
 * !important, so focus rings here use !important on purpose.
 */

.egw-rma {
    --rma-ink: var(--color-black, #000);
    --rma-ink-2: #4a4a4a;
    --rma-placeholder: #767676;
    --rma-surface: var(--color-white, #fff);
    --rma-surface-soft: rgba(255, 255, 255, 0.55);
    --rma-line: rgba(0, 0, 0, 0.12);
    --rma-field-line: rgba(0, 0, 0, 0.3);
    --rma-field-line-hover: rgba(0, 0, 0, 0.55);
    --rma-accent: var(--color-orange, #ff4d00);
    --rma-error: #b3121b;
    --rma-error-bg: #fbe9ea;
    --rma-radius: 1rem;
    --rma-radius-sm: 0.75rem;
    --rma-pill: 3rem;
    --rma-ease: cubic-bezier(0.16, 1, 0.3, 1);

    /* Same width as the black menu bar above; js/returns.js sets --rma-col-width from it. */
    max-width: var(--rma-col-width, 49rem);
    margin: 0 auto;
    color: var(--rma-ink);
    font-family: var(--font-b, 'Roboto Mono', monospace);
    font-size: 1rem;
    line-height: 1.5;
}

.egw-rma *,
.egw-rma *::before,
.egw-rma *::after {
    box-sizing: border-box;
}

.egw-rma [hidden] {
    display: none !important;
}

.egw-rma p,
.egw-rma ol,
.egw-rma ul,
.egw-rma dl,
.egw-rma dd,
.egw-rma figure {
    margin: 0;
}

.egw-rma ol,
.egw-rma ul {
    padding: 0;
    list-style: none;
}

.egw-rma fieldset {
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
}

.egw-rma legend {
    float: none;
    width: 100%;
    padding: 0;
}

.egw-rma svg.egw-rma-icon {
    flex: none;
    width: 1.25rem;
    height: 1.25rem;
}

.egw-rma a {
    color: inherit;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 0.22em;
}

.egw-rma a:hover {
    text-decoration-color: var(--rma-accent);
    text-decoration-thickness: 2px;
}

/* Focus: visible on every control (the theme removes outlines globally). */
.egw-rma :focus-visible {
    outline: 2px solid var(--rma-ink) !important;
    outline-offset: 2px !important;
}

.egw-rma .egw-rma-step-title:focus,
.egw-rma .egw-rma-step-title:focus-visible {
    outline: none !important;
}

/* Screen-reader only, and focusable inputs that are visually replaced. */
.egw-rma .egw-rma-sr,
.egw-rma .egw-rma-sr-input,
.egw-rma .egw-rma-tile-input,
.egw-rma .egw-rma-switch-input,
.egw-rma .egw-rma-item-input {
    position: absolute !important;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
    opacity: 0;
}

.egw-rma .egw-rma-sr {
    opacity: 1;
}

.egw-rma-hp {
    position: absolute;
    left: -10000px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* ---------- Page head ---------- */

.egw-rma-head {
    margin-bottom: 1.75rem;
}

.egw-rma .egw-rma-title {
    font-family: var(--font-h, inherit);
    font-size: clamp(2rem, 1.6rem + 2.4vw, 3.5rem);
    line-height: 1.06;
    letter-spacing: -0.01em;
    text-wrap: balance;
}

.egw-rma-lead {
    max-width: 40rem;
    margin-top: 0.875rem !important;
    color: var(--rma-ink-2);
    font-size: 0.9375rem;
    line-height: 1.6;
}

.egw-rma-notices:empty {
    display: none;
}

.egw-rma-notices {
    margin-bottom: 1.25rem;
}

/* ---------- Status lookup disclosure ---------- */

.egw-rma-status {
    border-top: 1px solid var(--rma-line);
    border-bottom: 1px solid var(--rma-line);
}

.egw-rma-status-summary,
.egw-rma-history-summary {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    min-height: 3rem;
    cursor: pointer;
    list-style: none;
    user-select: none;
}

.egw-rma-status-summary::-webkit-details-marker,
.egw-rma-history-summary::-webkit-details-marker,
.egw-rma-card-more > summary::-webkit-details-marker {
    display: none;
}

.egw-rma-status-summary {
    font-size: 0.875rem;
    font-weight: 500;
}

.egw-rma-status-summary span {
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 0.22em;
}

.egw-rma-status-summary:hover span {
    text-decoration-color: var(--rma-accent);
    text-decoration-thickness: 2px;
}

.egw-rma-status-summary .egw-rma-icon--chevron,
.egw-rma-history-summary .egw-rma-icon--chevron {
    margin-left: auto;
    transition: transform 0.2s var(--rma-ease);
}

.egw-rma-status[open] .egw-rma-icon--chevron,
.egw-rma-history[open] > .egw-rma-history-summary .egw-rma-icon--chevron {
    transform: rotate(180deg);
}

.egw-rma-status-body {
    padding: 0.25rem 0 1.5rem;
}

.egw-rma-status-body > .egw-rma-hint {
    margin-bottom: 1rem;
}

.egw-rma-status-form {
    display: grid;
    gap: 0;
}

.egw-rma-status-form .egw-rma-btn {
    justify-self: start;
}

.egw-rma-status-result {
    margin-top: 1.25rem;
}

.egw-rma-status-body > .egw-rma-alert {
    margin: 1.25rem 0 0;
}

/* ---------- Progress ---------- */

.egw-rma-wizard {
    margin-top: 2.25rem;
}

.egw-rma-progress-count {
    color: var(--rma-ink-2);
    font-size: 0.8125rem;
}

.egw-rma-progress-sep {
    margin: 0 0.25rem;
}

.egw-rma-progress-now {
    color: var(--rma-ink);
    font-weight: 500;
}

.egw-rma-progress-list {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0.375rem;
    margin-top: 0.25rem !important;
}

.egw-rma-progress-btn {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    min-height: 2.75rem;
    padding: 0;
    border: 0;
    background: none;
    color: var(--rma-ink-2);
    font: inherit;
    font-size: 0.75rem;
    line-height: 1.3;
    text-align: left;
    cursor: pointer;
}

.egw-rma-progress-btn:disabled {
    cursor: default;
}

.egw-rma-progress-bar {
    display: block;
    width: 100%;
    height: 4px;
    border-radius: 2px;
    background: rgba(0, 0, 0, 0.14);
    transition: background-color 0.3s var(--rma-ease);
}

.egw-rma-progress-item.is-done .egw-rma-progress-bar {
    background: var(--rma-ink);
}

.egw-rma-progress-item.is-current .egw-rma-progress-bar {
    background: var(--rma-accent);
}

.egw-rma-progress-item.is-current .egw-rma-progress-btn {
    color: var(--rma-ink);
}

.egw-rma-progress-btn:not(:disabled):hover .egw-rma-progress-name {
    text-decoration: underline;
    text-underline-offset: 0.22em;
}

.egw-rma-progress-name {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
}

/* ---------- Steps ---------- */

.egw-rma-step {
    padding-top: 1.75rem;
}

.egw-rma .egw-rma-step-title {
    margin-bottom: 1.5rem;
    font-family: var(--font-h, inherit);
    font-size: 1.75rem;
    line-height: 1.15;
    text-wrap: balance;
}

.egw-rma .egw-rma-subtitle {
    margin: 2rem 0 1rem;
    font-family: var(--font-h, inherit);
    font-size: 1.25rem;
    line-height: 1.25;
}

.egw-rma-step > .egw-rma-subtitle:first-of-type,
.egw-rma-reveal > .egw-rma-subtitle:first-child {
    margin-top: 0;
}

.egw-rma-pane + .egw-rma-pane {
    margin-top: 0;
}

/* ---------- Fields ---------- */

.egw-rma-field {
    margin-bottom: 1.25rem;
}

.egw-rma .egw-rma-label,
.egw-rma .egw-rma-legend {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--rma-ink);
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1.4;
}

.egw-rma .egw-rma-legend {
    font-size: 0.9375rem;
    margin-bottom: 0.75rem;
}

.egw-rma-optional {
    color: var(--rma-ink-2);
    font-weight: 400;
}

/* Instruction above the fields of a step or pane. */
.egw-rma-guide {
    max-width: 42rem;
    margin: 0 0 1.25rem !important;
    color: var(--rma-ink);
    font-size: 0.9375rem;
    line-height: 1.55;
}

.egw-rma .egw-rma-step-title + .egw-rma-alert[hidden] + .egw-rma-guide {
    margin-top: -0.75rem !important;
}

.egw-rma .egw-rma-hint {
    margin: -0.25rem 0 0.625rem;
    color: var(--rma-ink-2);
    font-size: 0.8125rem;
    line-height: 1.5;
}

.egw-rma .egw-rma-input {
    display: block;
    width: 100%;
    min-width: 0;
    min-height: 3.25rem;
    margin: 0;
    padding: 0.75rem 1rem;
    border: 1.5px solid var(--rma-field-line);
    border-radius: var(--rma-radius-sm);
    background: var(--rma-surface);
    color: var(--rma-ink);
    font: inherit;
    font-size: 1rem;
    line-height: 1.4;
    caret-color: var(--rma-accent);
    transition: border-color 0.15s ease, background-color 0.15s ease;
    -webkit-appearance: none;
    appearance: none;
}

.egw-rma .egw-rma-input:hover {
    border-color: var(--rma-field-line-hover);
}

.egw-rma .egw-rma-input:focus {
    border-color: var(--rma-ink);
}

.egw-rma .egw-rma-input::placeholder {
    color: var(--rma-placeholder);
    opacity: 1;
}

.egw-rma textarea.egw-rma-input {
    min-height: 8.5rem;
    resize: vertical;
}

.egw-rma input[type="date"].egw-rma-input {
    min-height: 3.25rem;
}

.egw-rma input[type="date"].egw-rma-input::-webkit-date-and-time-value {
    text-align: left;
}

.egw-rma input[type="date"].egw-rma-input::-webkit-calendar-picker-indicator {
    cursor: pointer;
}

.egw-rma .egw-rma-input[aria-invalid="true"] {
    border-color: var(--rma-error);
    background: #fffafa;
}

.egw-rma .egw-rma-error {
    margin-top: 0.4rem;
    color: var(--rma-error);
    font-size: 0.8125rem;
    font-weight: 500;
    line-height: 1.45;
}

.egw-rma-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    column-gap: 1rem;
}

.egw-rma-row--postcode {
    grid-template-columns: 7.5rem minmax(0, 1fr);
}

.egw-rma-alert {
    margin-bottom: 1.25rem;
    padding: 0.875rem 1rem;
    border: 1px solid rgba(179, 18, 27, 0.25);
    border-radius: var(--rma-radius-sm);
    background: var(--rma-error-bg);
    color: var(--rma-error);
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1.5;
}

.egw-rma-note {
    margin-bottom: 1.25rem !important;
    padding: 0.875rem 1rem;
    border: 1px solid var(--rma-line);
    border-radius: var(--rma-radius-sm);
    background: var(--rma-surface-soft);
    font-size: 0.875rem;
    line-height: 1.5;
}

/* ---------- Buttons and links ---------- */

.egw-rma .egw-rma-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 3rem;
    padding: 0.7rem 1.75rem;
    border-radius: var(--rma-pill);
    font-family: var(--font-b, inherit);
    font-size: 0.9375rem;
    font-weight: 500;
    line-height: 1.2;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease, opacity 0.2s ease;
}

.egw-rma a.btn-main {
    color: var(--color-white, #fff);
}

.egw-rma a.btn-main:hover {
    color: var(--rma-ink);
}

.egw-rma .egw-rma-btn--ghost {
    border: 1.5px solid var(--rma-ink);
    background: transparent;
    color: var(--rma-ink);
}

.egw-rma .egw-rma-btn--ghost:hover {
    background: var(--rma-ink);
    color: var(--color-white, #fff);
}

.egw-rma .egw-rma-btn:disabled,
.egw-rma .egw-rma-btn[aria-disabled="true"] {
    opacity: 0.55;
    cursor: not-allowed;
}

.egw-rma .egw-rma-btn.is-busy {
    cursor: progress;
}

.egw-rma .egw-rma-btn.is-busy .egw-rma-icon {
    display: none;
}

.egw-rma .egw-rma-btn.is-busy::after {
    content: "";
    width: 1rem;
    height: 1rem;
    border: 2px solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: egw-rma-spin 0.7s linear infinite;
}

.egw-rma .egw-rma-link {
    display: inline-flex;
    align-items: center;
    min-height: 2.75rem;
    padding: 0;
    border: 0;
    background: none;
    color: var(--rma-ink);
    font: inherit;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 0.22em;
    cursor: pointer;
}

.egw-rma .egw-rma-link:hover {
    text-decoration-color: var(--rma-accent);
    text-decoration-thickness: 2px;
}

.egw-rma-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--rma-line);
}

.egw-rma .egw-rma-actions .egw-rma-next {
    flex: 1 1 auto;
    margin-left: auto;
}

.egw-rma .egw-rma-actions .egw-rma-btn {
    padding-left: 1rem;
    padding-right: 1rem;
    white-space: nowrap;
}

.egw-rma .egw-rma-actions .egw-rma-back {
    padding-right: 1.25rem;
}

/* ---------- Source switch and segmented choice ---------- */

.egw-rma-switch {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.25rem;
    margin-bottom: 1.75rem !important;
    padding: 0.25rem !important;
    border-radius: var(--rma-radius);
    background: var(--rma-surface);
}

.egw-rma-switch-option {
    display: flex;
    margin: 0;
    cursor: pointer;
}

.egw-rma-switch-body {
    display: flex;
    flex: 1;
    align-items: center;
    gap: 0.625rem;
    min-height: 3.25rem;
    padding: 0.625rem 0.875rem;
    border-radius: var(--rma-radius-sm);
    color: var(--rma-ink-2);
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1.3;
    transition: background-color 0.2s var(--rma-ease), color 0.2s var(--rma-ease);
}

.egw-rma-switch-option:hover .egw-rma-switch-body {
    color: var(--rma-ink);
    background: rgba(0, 0, 0, 0.04);
}

.egw-rma-switch-input:checked + .egw-rma-switch-body {
    background: var(--rma-ink);
    color: var(--color-white, #fff);
}

.egw-rma .egw-rma-switch-input:focus-visible + .egw-rma-switch-body,
.egw-rma .egw-rma-tile-input:focus-visible + .egw-rma-tile-body {
    outline: 2px solid var(--rma-ink) !important;
    outline-offset: 2px !important;
}

/* "Όχι ακόμα" on step 1 */
.egw-rma-not-received p {
    margin: 0 0 0.5rem !important;
}

.egw-rma-not-received p:last-child {
    margin-bottom: 0 !important;
}

.egw-rma-not-received a {
    color: inherit;
    font-weight: 600;
    text-decoration: underline;
}

/* ---------- Tiles (radio cards) ---------- */

.egw-rma-group {
    margin-bottom: 1.75rem !important;
}

.egw-rma-tiles {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0.5rem;
}

.egw-rma-tile {
    display: flex;
    margin: 0;
    cursor: pointer;
}

.egw-rma-tile-body {
    position: relative;
    display: flex;
    flex: 1;
    align-items: center;
    gap: 0.875rem;
    min-height: 3.5rem;
    padding: 0.75rem 1rem;
    border: 1.5px solid transparent;
    border-radius: var(--rma-radius);
    background: var(--rma-surface);
    transition: border-color 0.15s ease;
}

.egw-rma-tile:hover .egw-rma-tile-body {
    border-color: var(--rma-field-line-hover);
}

.egw-rma-tile-input:checked + .egw-rma-tile-body {
    border-color: var(--rma-ink);
}

.egw-rma-tile-text {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 0.2rem;
    min-width: 0;
}

.egw-rma-tile-label {
    font-size: 0.9375rem;
    font-weight: 500;
    line-height: 1.35;
}

.egw-rma-tile-desc {
    color: var(--rma-ink-2);
    font-size: 0.8125rem;
    line-height: 1.45;
}

.egw-rma-tile-icon {
    display: grid;
    flex: none;
    place-items: center;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 50%;
    background: var(--color-grey, #efefef);
}

.egw-rma-tile-icon .egw-rma-icon {
    width: 1.5rem;
    height: 1.5rem;
}

.egw-rma-tile-mark,
.egw-rma-check {
    position: relative;
    flex: none;
    width: 1.375rem;
    height: 1.375rem;
    border: 1.5px solid var(--rma-field-line);
    border-radius: 50%;
    background: var(--rma-surface);
    transition: background-color 0.15s ease, border-color 0.15s ease;
}

.egw-rma-tile-mark::after,
.egw-rma-check::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 45%;
    width: 0.375rem;
    height: 0.6875rem;
    border-right: 2px solid #fff;
    border-bottom: 2px solid #fff;
    opacity: 0;
    transform: translate(-50%, -50%) rotate(45deg) scale(0.6);
    transition: opacity 0.15s ease, transform 0.2s var(--rma-ease);
}

.egw-rma-tile-input:checked + .egw-rma-tile-body .egw-rma-tile-mark,
.egw-rma-item-input:checked ~ .egw-rma-check {
    border-color: var(--rma-accent);
    background: var(--rma-accent);
}

.egw-rma-tile-input:checked + .egw-rma-tile-body .egw-rma-tile-mark::after,
.egw-rma-item-input:checked ~ .egw-rma-check::after {
    opacity: 1;
    transform: translate(-50%, -50%) rotate(45deg) scale(1);
}

/* Segmented: three options, selected one filled. */
.egw-rma-group--segmented .egw-rma-tiles {
    gap: 0.25rem;
    padding: 0.25rem;
    border-radius: var(--rma-radius);
    background: var(--rma-surface);
}

.egw-rma-group--segmented .egw-rma-tile-body {
    justify-content: center;
    min-height: 3.25rem;
    padding: 0.625rem 0.75rem;
    border: 0;
    border-radius: var(--rma-radius-sm);
    background: transparent;
    color: var(--rma-ink-2);
    text-align: center;
    transition: background-color 0.2s var(--rma-ease), color 0.2s var(--rma-ease);
}

.egw-rma-group--segmented .egw-rma-tile-text {
    flex: 0 1 auto;
}

.egw-rma-group--segmented .egw-rma-tile-label {
    font-size: 0.875rem;
}

.egw-rma-group--segmented .egw-rma-tile-mark {
    display: none;
}

.egw-rma-group--segmented .egw-rma-tile:hover .egw-rma-tile-body {
    background: rgba(0, 0, 0, 0.04);
    color: var(--rma-ink);
}

.egw-rma-group--segmented .egw-rma-tile-input:checked + .egw-rma-tile-body {
    background: var(--rma-ink);
    color: var(--color-white, #fff);
}

/* Return method cards. */
.egw-rma-group--cards .egw-rma-tile-body {
    align-items: flex-start;
    padding: 1rem;
}

.egw-rma-group--cards .egw-rma-tile-text {
    padding-top: 0.15rem;
}

.egw-rma-group--cards .egw-rma-tile-mark {
    margin-top: 0.1rem;
}

/* Invalid groups. */
.egw-rma-group[aria-invalid="true"] .egw-rma-tile-body,
.egw-rma-group.is-invalid .egw-rma-tile-body {
    border-color: rgba(179, 18, 27, 0.45);
}

.egw-rma-group--segmented.is-invalid .egw-rma-tiles {
    outline: 1.5px solid rgba(179, 18, 27, 0.45) !important;
    outline-offset: 0 !important;
}

/* ---------- Orders (step 1) ---------- */

.egw-rma-orders {
    display: grid;
    gap: 0.5rem;
}

.egw-rma-order-line {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 0.75rem;
}

.egw-rma-order-total {
    flex: none;
    font-size: 0.875rem;
    font-weight: 500;
    font-variant-numeric: tabular-nums;
}

.egw-rma-order-thumbs {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    margin-top: 0.5rem;
}

.egw-rma-order-thumbs img,
.egw-rma-thumb-more {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.5rem;
    background: #f4f4f4;
    object-fit: contain;
}

.egw-rma-thumb-more {
    display: grid;
    place-items: center;
    color: var(--rma-ink-2);
    font-size: 0.75rem;
    font-weight: 500;
}

.egw-rma-lookup {
    margin-top: 0.25rem;
}

.egw-rma-lookup.is-secondary {
    margin-top: 1rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--rma-line);
}

/* Under the order list the footer "Συνέχεια" is the primary action; the lookup button steps back. */
.egw-rma .egw-rma-lookup.is-secondary .egw-rma-btn {
    background: transparent;
    color: var(--rma-ink);
}

.egw-rma .egw-rma-lookup.is-secondary .egw-rma-btn:hover {
    background: var(--rma-ink);
    color: var(--color-white, #fff);
}

.egw-rma .egw-rma-lookup-intro {
    margin-bottom: 1rem;
    font-size: 0.875rem;
    line-height: 1.5;
}

.egw-rma-lookup > .egw-rma-hint {
    margin-top: -0.5rem;
    margin-bottom: 1.25rem;
}

.egw-rma-lookup-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem 1.5rem;
}

.egw-rma-login {
    font-size: 0.875rem;
}

/* ---------- Items (step 2) ---------- */

.egw-rma .egw-rma-order-ref {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0 0.75rem;
    margin: -0.75rem 0 1.25rem;
    color: var(--rma-ink-2);
    font-size: 0.875rem;
}

.egw-rma-items {
    display: grid;
    gap: 0.5rem;
}

.egw-rma-item {
    border: 1.5px solid transparent;
    border-radius: var(--rma-radius);
    background: var(--rma-surface);
    transition: border-color 0.15s ease;
}

.egw-rma-item:hover {
    border-color: var(--rma-field-line-hover);
}

.egw-rma-item.is-selected {
    border-color: var(--rma-ink);
}

.egw-rma-item-main {
    position: relative;
    display: grid;
    grid-template-columns: auto 3.5rem minmax(0, 1fr);
    align-items: center;
    gap: 0.875rem;
    margin: 0;
    padding: 0.875rem 1rem;
    cursor: pointer;
}

.egw-rma .egw-rma-item-input:focus-visible ~ .egw-rma-check {
    outline: 2px solid var(--rma-ink) !important;
    outline-offset: 3px !important;
}

.egw-rma-check {
    border-radius: 0.375rem;
}

.egw-rma-item-media {
    display: grid;
    place-items: center;
    width: 3.5rem;
    height: 3.5rem;
    overflow: hidden;
    border-radius: 0.625rem;
    background: #f4f4f4;
    color: var(--rma-ink-2);
}

.egw-rma-item-media img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.egw-rma-item-name {
    display: block;
    font-size: 0.9375rem;
    font-weight: 500;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.egw-rma-item-meta {
    display: block;
    margin-top: 0.2rem;
    color: var(--rma-ink-2);
    font-size: 0.8125rem;
    line-height: 1.45;
}

.egw-rma-item-qty {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.5rem 1rem 0.75rem;
    border-top: 1px solid var(--rma-line);
}

.egw-rma .egw-rma-item-qty label {
    font-size: 0.875rem;
    font-weight: 500;
}

.egw-rma-stepper {
    display: inline-flex;
    align-items: center;
    border: 1.5px solid var(--rma-field-line);
    border-radius: var(--rma-pill);
    background: var(--rma-surface);
}

.egw-rma-stepper button {
    display: grid;
    place-items: center;
    width: 2.75rem;
    height: 2.75rem;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: none;
    color: var(--rma-ink);
    cursor: pointer;
}

.egw-rma-stepper button:hover:not(:disabled) {
    background: rgba(0, 0, 0, 0.05);
}

.egw-rma-stepper button:disabled {
    color: rgba(0, 0, 0, 0.25);
    cursor: not-allowed;
}

.egw-rma .egw-rma-stepper input {
    width: 2.5rem;
    height: 2.75rem;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--rma-ink);
    font: inherit;
    font-size: 1rem;
    font-weight: 500;
    font-variant-numeric: tabular-nums;
    text-align: center;
    -moz-appearance: textfield;
    appearance: textfield;
}

.egw-rma-stepper input::-webkit-outer-spin-button,
.egw-rma-stepper input::-webkit-inner-spin-button {
    margin: 0;
    -webkit-appearance: none;
}

.egw-rma-qty-fixed {
    color: var(--rma-ink-2);
    font-size: 0.8125rem;
}

/* ---------- Photos (step 3) ---------- */

.egw-rma-photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(6rem, 1fr));
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.egw-rma-photo-grid:empty {
    display: none;
}

.egw-rma-photo {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: var(--rma-radius-sm);
    background: var(--rma-surface);
}

.egw-rma-photo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.egw-rma-photo-remove {
    position: absolute;
    top: 0.375rem;
    right: 0.375rem;
    display: grid;
    place-items: center;
    width: 2rem;
    height: 2rem;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.72);
    color: #fff;
    cursor: pointer;
    transition: background-color 0.15s ease;
}

.egw-rma-photo-remove::before {
    content: "";
    position: absolute;
    inset: -0.375rem;
}

.egw-rma-photo-remove:hover {
    background: #000;
}

.egw-rma-photo-remove .egw-rma-icon {
    width: 1rem;
    height: 1rem;
}

.egw-rma-drop {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    min-height: 4rem;
    margin: 0;
    padding: 0.875rem 1.125rem;
    border: 1.5px dashed rgba(0, 0, 0, 0.35);
    border-radius: var(--rma-radius);
    background: var(--rma-surface-soft);
    cursor: pointer;
    transition: border-color 0.15s ease, background-color 0.15s ease;
}

.egw-rma-drop:hover,
.egw-rma-drop.is-dragging {
    border-color: var(--rma-ink);
    background: var(--rma-surface);
}

.egw-rma .egw-rma-drop:focus-within {
    outline: 2px solid var(--rma-ink) !important;
    outline-offset: 2px !important;
}

.egw-rma-drop .egw-rma-icon {
    width: 1.5rem;
    height: 1.5rem;
}

.egw-rma-drop-text {
    display: flex;
    flex-direction: column;
}

.egw-rma-drop-title {
    font-size: 0.9375rem;
    font-weight: 500;
}

.egw-rma-drop-sub {
    color: var(--rma-ink-2);
    font-size: 0.8125rem;
}

@media (hover: none) {
    .egw-rma-drop-sub {
        display: none;
    }
}

/* ---------- Return method reveals (step 4) ---------- */

.egw-rma-reveal {
    margin-top: -0.25rem;
}

.egw-rma-reveal > .egw-rma-group {
    margin-bottom: 0 !important;
}

.egw-rma-address {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    margin: 0 0 1rem;
    padding: 1rem 1.125rem;
    border-radius: var(--rma-radius);
    background: var(--rma-surface);
    font-size: 0.9375rem;
    font-style: normal;
    line-height: 1.5;
}

.egw-rma-address strong {
    font-weight: 500;
}

.egw-rma-howto {
    counter-reset: rma-howto;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin: 0 0 1rem !important;
    padding: 1rem 1.125rem !important;
    border-radius: var(--rma-radius);
    background: var(--rma-surface);
    list-style: none !important;
    font-size: 0.9375rem;
    line-height: 1.5;
}

.egw-rma-howto li {
    counter-increment: rma-howto;
    display: grid;
    grid-template-columns: 1.75rem 1fr;
    gap: 0.625rem;
    align-items: start;
    margin: 0 !important;
}

.egw-rma-howto li::before {
    content: counter(rma-howto);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 50%;
    background: var(--rma-ink);
    color: var(--rma-surface);
    font-size: 0.8125rem;
    font-weight: 500;
}

/* ---------- Summary (step 5) ---------- */

.egw-rma-summary {
    padding: 0 1.125rem !important;
    border-radius: var(--rma-radius);
    background: var(--rma-surface);
}

.egw-rma-summary-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    column-gap: 1rem;
    padding: 0.875rem 0;
    border-bottom: 1px solid var(--rma-line);
}

.egw-rma-summary-row:last-child {
    border-bottom: 0;
}

.egw-rma .egw-rma-summary-row dt {
    grid-column: 1;
    grid-row: 1;
    color: var(--rma-ink-2);
    font-size: 0.8125rem;
    font-weight: 400;
    line-height: 1.4;
}

.egw-rma .egw-rma-summary-row dd {
    grid-column: 1 / -1;
    grid-row: 2;
    margin-top: 0.2rem;
    font-size: 0.9375rem;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.egw-rma-summary-row dd span {
    display: block;
}

.egw-rma-summary-row dd .egw-rma-summary-sub {
    color: var(--rma-ink-2);
    font-size: 0.8125rem;
}

.egw-rma .egw-rma-summary-row .egw-rma-link {
    grid-column: 2;
    grid-row: 1 / span 2;
    align-self: start;
    min-height: 2.75rem;
    margin-top: -0.75rem;
    font-size: 0.8125rem;
}

.egw-rma .egw-rma-submit-note {
    margin: 1rem 0 0;
}

/* ---------- Success ---------- */

.egw-rma-done {
    padding-top: 2.5rem;
    text-align: center;
}

.egw-rma-done-icon {
    display: inline-grid;
    place-items: center;
    width: 4rem;
    height: 4rem;
    margin-bottom: 1.25rem;
    border-radius: 50%;
    background: var(--rma-ink);
    color: #fff;
}

.egw-rma-done-icon .egw-rma-icon {
    width: 2rem;
    height: 2rem;
    stroke-width: 2;
}

.egw-rma-done-code {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    margin-bottom: 1rem;
}

.egw-rma-done-code-label {
    color: var(--rma-ink-2);
    font-size: 0.8125rem;
}

.egw-rma-done-code strong {
    font-family: var(--font-h, inherit);
    font-size: 2.5rem;
    font-weight: 400;
    line-height: 1.1;
    letter-spacing: 0.01em;
    font-variant-numeric: tabular-nums;
}

.egw-rma .egw-rma-done-message {
    max-width: 34rem;
    margin: 0 auto 1.75rem;
    color: var(--rma-ink-2);
    font-size: 0.9375rem;
    line-height: 1.6;
}

.egw-rma-done-slip {
    margin: 0 auto 1.75rem;
    padding: 1.25rem;
    border: 2px solid var(--rma-ink);
    border-radius: var(--rma-radius);
}

.egw-rma .egw-rma-done-slip-text {
    margin: 0 0 1rem !important;
    font-size: 0.9375rem;
    line-height: 1.5;
}

.egw-rma-done-slip .egw-rma-btn {
    margin-bottom: 0;
}

.egw-rma-card-slip {
    margin: 0.75rem 0 1rem;
    padding: 0.875rem 1rem;
    border: 1.5px solid var(--rma-ink);
    border-radius: var(--rma-radius-sm);
}

.egw-rma-card-slip p {
    margin: 0 0 0.75rem !important;
    font-size: 0.875rem;
    line-height: 1.5;
}

.egw-rma-card-slip .egw-rma-btn {
    margin-bottom: 0;
}

.egw-rma-done-next {
    margin: 0 auto 1.75rem;
    padding: 1.25rem 1.25rem 1.5rem;
    border-radius: var(--rma-radius);
    background: var(--rma-surface);
    text-align: left;
}

.egw-rma-done-next .egw-rma-subtitle {
    margin-top: 0;
}

.egw-rma-done-list {
    display: grid;
    gap: 0.875rem;
    counter-reset: egw-rma-next;
}

.egw-rma-done-list li {
    display: grid;
    grid-template-columns: 1.75rem minmax(0, 1fr);
    gap: 0.75rem;
    font-size: 0.9375rem;
    line-height: 1.5;
    counter-increment: egw-rma-next;
}

.egw-rma-done-list li::before {
    content: counter(egw-rma-next);
    display: grid;
    place-items: center;
    width: 1.75rem;
    height: 1.75rem;
    border: 1.5px solid var(--rma-ink);
    border-radius: 50%;
    font-size: 0.8125rem;
    font-weight: 500;
}

.egw-rma-done-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.75rem 1.75rem;
}

/* ---------- History and request cards ---------- */

.egw-rma-history {
    margin-top: 3.5rem;
    border-top: 1px solid var(--rma-line);
}

.egw-rma-history-summary {
    min-height: 3.75rem;
}

.egw-rma-history-summary .font-h {
    font-size: 1.375rem;
    line-height: 1.2;
}

.egw-rma-count {
    display: inline-grid;
    place-items: center;
    min-width: 1.75rem;
    height: 1.75rem;
    padding: 0 0.5rem;
    border-radius: var(--rma-pill);
    background: var(--rma-surface);
    font-size: 0.8125rem;
    font-weight: 500;
}

.egw-rma-history-list {
    display: grid;
    gap: 0.5rem;
    padding-bottom: 1.5rem;
}

.egw-rma-card {
    padding: 1rem 1.125rem;
    border-radius: var(--rma-radius);
    background: var(--rma-surface);
}

.egw-rma-card-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem 1rem;
}

.egw-rma .egw-rma-card-title {
    font-family: var(--font-b, inherit);
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.3;
    font-variant-numeric: tabular-nums;
}

.egw-rma .egw-rma-card-meta {
    margin-top: 0.25rem;
    color: var(--rma-ink-2);
    font-size: 0.8125rem;
    line-height: 1.5;
}

.egw-rma-card-items {
    margin-top: 0.75rem !important;
    padding-top: 0.625rem !important;
    border-top: 1px solid var(--rma-line);
}

.egw-rma-card-items li {
    padding: 0.2rem 0;
    font-size: 0.875rem;
    line-height: 1.45;
}

.egw-rma-qty-tag {
    color: var(--rma-ink-2);
}

.egw-rma-badge {
    display: inline-flex;
    align-items: center;
    min-height: 1.625rem;
    padding: 0.2rem 0.625rem;
    border-radius: var(--rma-pill);
    background: #f1f1f1;
    color: var(--rma-ink);
    font-size: 0.75rem;
    font-weight: 500;
    line-height: 1.2;
    white-space: nowrap;
}

.egw-rma-badge--new {
    background: #fff1e0;
    color: #8a3b00;
}

.egw-rma-badge--reviewing,
.egw-rma-badge--pickup_scheduled,
.egw-rma-badge--received {
    background: #e8f0fb;
    color: #1b4f8f;
}

.egw-rma-badge--approved,
.egw-rma-badge--completed,
.egw-rma-badge--refunded {
    background: #e6f4ea;
    color: #1d6b35;
}

.egw-rma-badge--awaiting_customer {
    background: #fff4d6;
    color: #7a5200;
}

.egw-rma-badge--rejected,
.egw-rma-badge--cancelled {
    background: var(--rma-error-bg);
    color: #9b1119;
}

.egw-rma-card-more > summary {
    display: inline-flex;
    align-items: center;
    min-height: 2.75rem;
    margin-top: 0.25rem;
    font-size: 0.8125rem;
    font-weight: 500;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 0.22em;
    cursor: pointer;
    list-style: none;
}

.egw-rma-card-timeline {
    margin-top: 1rem;
    padding-top: 0.875rem;
    border-top: 1px solid var(--rma-line);
}

.egw-rma .egw-rma-card-subtitle {
    margin-bottom: 0.75rem;
    font-family: var(--font-b, inherit);
    font-size: 0.8125rem;
    font-weight: 500;
}

.egw-rma-timeline {
    margin-top: 0.25rem !important;
}

.egw-rma-timeline-item {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    padding: 0 0 1rem 1.5rem;
}

.egw-rma-timeline-item::before {
    content: "";
    position: absolute;
    left: 0.125rem;
    top: 0.4rem;
    width: 0.5625rem;
    height: 0.5625rem;
    border-radius: 50%;
    background: var(--rma-ink);
}

.egw-rma-timeline-item::after {
    content: "";
    position: absolute;
    left: 0.375rem;
    top: 1.15rem;
    bottom: 0.15rem;
    width: 1px;
    background: rgba(0, 0, 0, 0.2);
}

.egw-rma-timeline-item:last-child {
    padding-bottom: 0;
}

.egw-rma-timeline-item:last-child::before {
    background: var(--rma-accent);
}

.egw-rma-timeline-item:last-child::after {
    display: none;
}

.egw-rma-timeline-date {
    color: var(--rma-ink-2);
    font-size: 0.75rem;
    font-variant-numeric: tabular-nums;
}

.egw-rma-timeline-title {
    font-size: 0.875rem;
    font-weight: 500;
}

.egw-rma-timeline-note {
    color: var(--rma-ink-2);
    font-size: 0.875rem;
    line-height: 1.5;
}

/* ---------- Motion ---------- */

@keyframes egw-rma-in {
    from {
        opacity: 0;
        transform: translateY(0.5rem);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

@keyframes egw-rma-pop {
    from {
        transform: scale(0.6);
    }
    to {
        transform: scale(1);
    }
}

@keyframes egw-rma-draw {
    from {
        stroke-dashoffset: 24;
    }
    to {
        stroke-dashoffset: 0;
    }
}

@keyframes egw-rma-spin {
    to {
        transform: rotate(360deg);
    }
}

.egw-rma .is-entering {
    animation: egw-rma-in 0.32s var(--rma-ease) both;
}

.egw-rma-done.is-entering .egw-rma-done-icon {
    animation: egw-rma-pop 0.45s var(--rma-ease) both;
}

.egw-rma-done.is-entering .egw-rma-done-icon path {
    stroke-dasharray: 24;
    animation: egw-rma-draw 0.45s 0.15s var(--rma-ease) both;
}

@media (prefers-reduced-motion: reduce) {
    .egw-rma *,
    .egw-rma *::before,
    .egw-rma *::after {
        animation: none !important;
        transition: none !important;
    }
}

/* ---------- Larger screens ---------- */

@media (min-width: 576px) {
    .egw-rma-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .egw-rma-row--postcode {
        grid-template-columns: 9rem minmax(0, 1fr);
    }

    .egw-rma-group--compact .egw-rma-tiles {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .egw-rma-group--segmented .egw-rma-tiles {
        grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
    }

    .egw-rma .egw-rma-actions .egw-rma-next {
        flex: 0 0 auto;
        min-width: 11rem;
        padding-left: 1.75rem;
        padding-right: 1.75rem;
    }

    .egw-rma .egw-rma-actions .egw-rma-back {
        padding-left: 1.25rem;
        padding-right: 1.5rem;
    }

    .egw-rma-status-form {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
        align-items: start;
        column-gap: 0.75rem;
    }

    .egw-rma-status-form .egw-rma-btn {
        margin-top: 1.8125rem;
        min-height: 3.25rem;
    }

    .egw-rma-done-next {
        padding: 1.5rem 1.75rem 1.75rem;
    }
}

@media (min-width: 768px) {
    .egw-rma .egw-rma-step-title {
        font-size: 2rem;
    }

    .egw-rma-progress-name {
        position: static;
        width: auto;
        height: auto;
        overflow: visible;
        clip: auto;
        clip-path: none;
        white-space: normal;
    }

    .egw-rma-progress-list {
        margin-top: 0.5rem !important;
    }

    .egw-rma-progress-btn {
        justify-content: flex-start;
        padding-top: 0.25rem;
    }

    .egw-rma-group--cards .egw-rma-tiles {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .egw-rma-group--cards .egw-rma-tile-body {
        flex-direction: column;
        gap: 0.75rem;
        padding: 1.125rem;
    }

    .egw-rma-group--cards .egw-rma-tile-mark {
        position: absolute;
        top: 1rem;
        right: 1rem;
        margin: 0;
    }

    .egw-rma-group--cards .egw-rma-tile-text {
        padding-top: 0;
    }

    .egw-rma-summary-row {
        grid-template-columns: 11rem minmax(0, 1fr) auto;
        align-items: start;
    }

    .egw-rma .egw-rma-summary-row dt {
        grid-column: 1;
        grid-row: 1;
        padding-top: 0.1rem;
    }

    .egw-rma .egw-rma-summary-row dd {
        grid-column: 2;
        grid-row: 1;
        margin-top: 0;
    }

    .egw-rma .egw-rma-summary-row .egw-rma-link {
        grid-column: 3;
        grid-row: 1;
        margin-top: -0.6rem;
    }
}

/* Wide screens: store choices in three columns. */
@media (min-width: 1200px) {
    .egw-rma-group--compact .egw-rma-tiles {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

/* ---------- Refunds: replacement out of stock (step 3), refund account (step 5) ---------- */

.egw-rma .egw-rma-stock-note {
    margin: -1.25rem 0 1.75rem;
}

.egw-rma-tile.is-disabled {
    cursor: not-allowed;
}

.egw-rma-tile-input:disabled + .egw-rma-tile-body {
    opacity: 0.4;
}

.egw-rma-group--segmented .egw-rma-tile.is-disabled:hover .egw-rma-tile-body {
    background: transparent;
    color: var(--rma-ink-2);
}

.egw-rma-tile.is-disabled .egw-rma-tile-label {
    text-decoration: line-through;
    text-decoration-thickness: 1px;
}

.egw-rma-refund {
    margin-top: 0.5rem;
}

.egw-rma .egw-rma-refund-note {
    margin-bottom: 0.5rem !important;
}

.egw-rma .egw-rma-field--iban .egw-rma-input {
    letter-spacing: 0.04em;
    font-variant-numeric: tabular-nums;
    text-transform: uppercase;
}

.egw-rma .egw-rma-field--iban .egw-rma-input::placeholder {
    text-transform: none;
}

.egw-rma select.egw-rma-input {
    padding-right: 2.75rem;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23222' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 12px 8px;
    cursor: pointer;
}

.egw-rma .egw-rma-field[hidden] {
    display: none;
}

/* ---------- Offline step 2: catalogue search (combobox) ---------- */

.egw-rma-product {
    position: relative;
}

.egw-rma-combo {
    position: relative;
}

.egw-rma-combo-icon {
    position: absolute;
    top: 0;
    left: 1rem;
    display: flex;
    align-items: center;
    height: 3.25rem;
    color: var(--rma-ink-2);
    pointer-events: none;
}

.egw-rma .egw-rma-combo-input {
    padding-left: 2.875rem;
    padding-right: 2.75rem;
}

.egw-rma .egw-rma-combo-input::-ms-clear {
    display: none;
}

.egw-rma-combo-spinner {
    position: absolute;
    top: 1.125rem;
    right: 1rem;
    width: 1rem;
    height: 1rem;
    border: 2px solid var(--rma-ink-2);
    border-right-color: transparent;
    border-radius: 50%;
    animation: egw-rma-spin 0.7s linear infinite;
}

.egw-rma .egw-rma-combo-list {
    position: absolute;
    z-index: 30;
    top: calc(100% + 0.375rem);
    right: 0;
    left: 0;
    max-height: min(26rem, 60vh);
    margin: 0;
    padding: 0.375rem;
    overflow-y: auto;
    overscroll-behavior: contain;
    border: 1.5px solid var(--rma-ink);
    border-radius: var(--rma-radius-sm);
    background: var(--rma-surface);
    box-shadow: 0 0.875rem 2rem -0.75rem rgba(0, 0, 0, 0.3) !important;
    animation: egw-rma-in 0.18s var(--rma-ease) both;
}

.egw-rma-combo-option {
    display: grid;
    grid-template-columns: 2.75rem minmax(0, 1fr);
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0.625rem;
    border-radius: 0.625rem;
    cursor: pointer;
    transition: background-color 0.12s ease, color 0.12s ease;
}

.egw-rma-combo-option + .egw-rma-combo-option {
    margin-top: 0.125rem;
}

.egw-rma-combo-option .egw-rma-item-media {
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 0.5rem;
}

.egw-rma-combo-option:hover {
    background: #f4f4f4;
}

.egw-rma-combo-option.is-active {
    background: var(--rma-ink);
    color: var(--color-white, #fff);
}

.egw-rma-combo-option.is-active .egw-rma-item-media {
    background: var(--color-white, #fff);
}

.egw-rma-combo-name {
    display: -webkit-box;
    overflow: hidden;
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1.35;
    overflow-wrap: anywhere;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.egw-rma-combo-sku {
    display: block;
    margin-top: 0.125rem;
    color: var(--rma-ink-2);
    font-size: 0.75rem;
    line-height: 1.4;
    font-variant-numeric: tabular-nums;
}

.egw-rma-combo-option.is-active .egw-rma-combo-sku {
    color: rgba(255, 255, 255, 0.78);
}

.egw-rma .egw-rma-product-alt {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    column-gap: 0.625rem;
    margin-top: 0.125rem;
}

.egw-rma-product-none {
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1.45;
}

.egw-rma-product-card {
    display: grid;
    grid-template-columns: 3.5rem minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.875rem;
    padding: 0.875rem 1rem;
    border: 1.5px solid var(--rma-ink);
    border-radius: var(--rma-radius);
    background: var(--rma-surface);
}

.egw-rma-product-card-text {
    min-width: 0;
}

.egw-rma .egw-rma-product-card .egw-rma-link {
    padding: 0 0.125rem;
}

.egw-rma-product-card:focus {
    outline: none !important;
}

.egw-rma .egw-rma-product-card:focus-visible {
    outline: 2px solid var(--rma-ink) !important;
    outline-offset: 3px !important;
}

.egw-rma .egw-rma-product-card[data-focus-quiet]:focus-visible {
    outline: none !important;
}

/* Status form: one field + button; Cloudflare Turnstile shows only when it needs a click. */
@media (min-width: 576px) {
    .egw-rma-status-form {
        grid-template-columns: minmax(0, 1fr) auto;
    }
}

.egw-rma-turnstile:empty {
    display: none;
}

.egw-rma-turnstile {
    margin: 0.75rem 0;
}

.egw-rma-status-form .egw-rma-turnstile {
    grid-column: 1 / -1;
    margin: 0;
}
