/* ==========================================================================
   Order flow UI (Orders page + Order returns page)
   Every class starts with "of-" so nothing here touches other pages.
   ========================================================================== */

:root {
    --of-brand: #168276;
    --of-brand-dark: #0f6258;
    --of-brand-soft: #e8f5f3;
    --of-ink: #1a2e35;
    --of-muted: #64748b;
    --of-line: #e2e8f0;
    --of-surface: #ffffff;
    --of-panel: #f8fafb;
    --of-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 8px 24px rgba(15, 23, 42, 0.06);
}

[data-theme-mode="dark"] {
    --of-brand: #2bb3a3;
    --of-brand-dark: #1f9285;
    --of-brand-soft: rgba(43, 179, 163, 0.16);
    --of-ink: #e6ebf2;
    --of-muted: #9aa7b8;
    --of-line: rgba(255, 255, 255, 0.10);
    --of-surface: #1b2430;
    --of-panel: #222c3a;
    --of-shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 24px rgba(0, 0, 0, 0.35);
}

/* Sizes below assume border-box, whatever the rest of the page uses. */
.of-drawer,
.of-drawer *,
.of-dialog,
.of-dialog *,
.of-toolbar *,
.of-table-card * {
    box-sizing: border-box;
}

/* ── Page head ── */
.of-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin: 4px 0 16px;
}

.of-head__title {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: var(--of-ink);
}

.of-head__sub {
    margin: 2px 0 0;
    font-size: 12px;
    color: var(--of-muted);
}

.of-head__actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ── Buttons ── */
.of-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 7px 12px;
    border: 1px solid var(--of-line);
    border-radius: 9px;
    background: var(--of-surface);
    color: var(--of-ink);
    font-size: 13px;
    font-weight: 600;
    line-height: 1.2;
    white-space: nowrap;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s, color 0.15s, box-shadow 0.15s;
}

.of-btn:hover {
    border-color: var(--of-brand);
    color: var(--of-brand);
}

.of-btn:focus-visible {
    outline: 2px solid var(--of-brand);
    outline-offset: 2px;
}

.of-btn:disabled,
.of-btn[disabled] {
    opacity: 0.55;
    cursor: not-allowed;
}

.of-btn--primary {
    background: var(--of-brand);
    border-color: var(--of-brand);
    color: #fff;
}

.of-btn--primary:hover {
    background: var(--of-brand-dark);
    border-color: var(--of-brand-dark);
    color: #fff;
}

.of-btn--danger {
    border-color: #f1b5b5;
    color: #c0392b;
}

.of-btn--danger:hover {
    background: #c0392b;
    border-color: #c0392b;
    color: #fff;
}

.of-btn--danger-solid {
    background: #c0392b;
    border-color: #c0392b;
    color: #fff;
}

.of-btn--danger-solid:hover {
    background: #a53125;
    border-color: #a53125;
    color: #fff;
}

.of-btn--sm {
    padding: 5px 9px;
    font-size: 12px;
    border-radius: 8px;
}

.of-btn--icon {
    width: 30px;
    height: 30px;
    padding: 0;
}

/* ── Status tabs ── */
.of-tabs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 4px;
    margin-bottom: 14px;
    scrollbar-width: thin;
}

.of-tab {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border: 1px solid var(--of-line);
    border-radius: 999px;
    background: var(--of-surface);
    color: var(--of-muted);
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.15s;
}

.of-tab:hover {
    border-color: var(--of-brand);
    color: var(--of-brand);
}

.of-tab__count {
    min-width: 20px;
    padding: 1px 7px;
    border-radius: 999px;
    background: var(--of-panel);
    color: var(--of-muted);
    font-size: 11px;
    text-align: center;
}

.of-tab--active {
    background: var(--of-brand);
    border-color: var(--of-brand);
    color: #fff;
}

.of-tab--active:hover {
    color: #fff;
}

.of-tab--active .of-tab__count {
    background: rgba(255, 255, 255, 0.22);
    color: #fff;
}

/* ── Toolbar ── */
.of-toolbar {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}

.of-search {
    position: relative;
    flex: 1 1 320px;
    max-width: 520px;
}

.of-search i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--of-muted);
    pointer-events: none;
}

.of-search input {
    width: 100%;
    padding: 8px 10px 8px 32px;
    border: 1px solid var(--of-line);
    border-radius: 10px;
    background: var(--of-surface);
    color: var(--of-ink);
    font-size: 12px;
}

.of-search input:focus,
.of-select:focus,
.of-input:focus {
    outline: none;
    border-color: var(--of-brand);
    box-shadow: 0 0 0 3px var(--of-brand-soft);
}

.of-select,
.of-input {
    padding: 8px 10px;
    border: 1px solid var(--of-line);
    border-radius: 10px;
    background: var(--of-surface);
    color: var(--of-ink);
    font-size: 12px;
}

.of-input {
    width: 100%;
}

.of-toolbar__count {
    margin-left: auto;
    font-size: 12px;
    color: var(--of-muted);
}

/* ── List table ── */
.of-table-card {
    border: 1px solid var(--of-line);
    border-radius: 14px;
    background: var(--of-surface);
    box-shadow: var(--of-shadow);
    overflow: hidden;
}

.of-table-scroll {
    overflow-x: auto;
}

.of-table {
    width: 100%;
    min-width: 980px;
    border-collapse: collapse;
    font-size: 12px;
    color: var(--of-ink);
}

.of-table thead th {
    padding: 9px 12px;
    background: var(--of-panel);
    border-bottom: 1px solid var(--of-line);
    color: var(--of-muted);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-align: left;
    white-space: nowrap;
}

.of-table tbody td {
    padding: 9px 12px;
    border-bottom: 1px solid var(--of-line);
    vertical-align: middle;
    font-size: 12px;
}

.of-table tbody tr:last-child td {
    border-bottom: none;
}

.of-table tbody tr.of-row {
    cursor: pointer;
    transition: background 0.12s;
}

.of-table tbody tr.of-row:hover {
    background: var(--of-panel);
}

.of-table .of-num {
    text-align: right;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

.of-cell-main {
    font-weight: 700;
    color: var(--of-ink);
    white-space: nowrap;
}

.of-cell-sub {
    display: block;
    margin-top: 2px;
    font-size: 11px;
    color: var(--of-muted);
}

.of-ellipsis {
    display: block;
    max-width: 240px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.of-row-actions {
    display: flex;
    justify-content: flex-end;
    gap: 6px;
}

.of-empty {
    padding: 36px 16px;
    text-align: center;
    color: var(--of-muted);
}

.of-empty i {
    display: block;
    margin-bottom: 8px;
    font-size: 26px;
    opacity: 0.6;
}

.of-pager {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 9px 12px;
    border-top: 1px solid var(--of-line);
    background: var(--of-panel);
    font-size: 12px;
    color: var(--of-muted);
}

.of-pager__buttons {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ── Plain tables ──
   index.html styles every <table> on the site as a fixed 450px block with a scrolling
   body and equal-width columns. The tables on these pages are ordinary tables instead:
   columns fit their content and the page (or the drawer) scrolls. */
.of-table,
.of-items {
    display: table;
    min-height: 0;
    max-height: none;
    margin-bottom: 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    overflow: visible;
    background-color: transparent;
    border-collapse: collapse;
}

.of-items {
    color: inherit;
}

.of-table thead,
.of-items thead {
    display: table-header-group;
    position: static;
    width: auto;
    table-layout: auto;
    background-color: transparent;
}

.of-table tbody,
.of-items tbody {
    display: table-row-group;
    width: auto;
    max-height: none;
    overflow: visible;
}

.of-table thead tr,
.of-table tbody tr,
.of-items thead tr,
.of-items tbody tr {
    display: table-row;
    width: auto;
    table-layout: auto;
}

.of-table thead tr th,
.of-items thead tr th {
    border-radius: 0;
}

.of-table tbody tr td,
.of-items tbody tr td {
    border-radius: 0;
}

/* The site centres and italicises any body cell that has a colspan. */
.of-table tbody td[colspan],
.of-items tbody td[colspan] {
    padding: 0;
    text-align: left;
    font-style: normal;
    color: inherit;
}

.of-items thead th {
    background-color: transparent;
    color: var(--of-muted);
}

.of-table tbody tr:hover {
    background-color: var(--of-panel);
}

.of-items tbody tr:hover {
    background-color: transparent;
}

.of-table tbody td strong,
.of-items tbody td strong {
    color: inherit;
}

/* ── Badges ── */
.of-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 9px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.3;
    white-space: nowrap;
    background: #eef2f6;
    color: #475569;
}

.of-badge::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
}

.of-tone-amber  { background: #fff4d6; color: #92590a; }
.of-tone-blue   { background: #e0edff; color: #1d4fa3; }
.of-tone-indigo { background: #e8e6ff; color: #4338a8; }
.of-tone-violet { background: #f1e4ff; color: #6d2aa8; }
.of-tone-green  { background: #dff5e7; color: #17713c; }
.of-tone-red    { background: #fde4e1; color: #a8281c; }
.of-tone-orange { background: #ffe9d6; color: #9a4a0c; }
.of-tone-gray   { background: #eef2f6; color: #475569; }

[data-theme-mode="dark"] .of-tone-amber  { background: rgba(245, 181, 46, 0.18); color: #f3c761; }
[data-theme-mode="dark"] .of-tone-blue   { background: rgba(80, 140, 240, 0.20); color: #93baf7; }
[data-theme-mode="dark"] .of-tone-indigo { background: rgba(120, 110, 240, 0.22); color: #b3acf8; }
[data-theme-mode="dark"] .of-tone-violet { background: rgba(170, 100, 240, 0.22); color: #d0a8f5; }
[data-theme-mode="dark"] .of-tone-green  { background: rgba(50, 180, 100, 0.20); color: #7fd9a2; }
[data-theme-mode="dark"] .of-tone-red    { background: rgba(230, 80, 70, 0.20); color: #f39a92; }
[data-theme-mode="dark"] .of-tone-orange { background: rgba(240, 140, 50, 0.20); color: #f5b27a; }
[data-theme-mode="dark"] .of-tone-gray   { background: rgba(255, 255, 255, 0.10); color: #c3ccd8; }

/* ── Drawer (slides in from the right, 80% of the screen) ── */
.of-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1040;
    background: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(2px);
    animation: of-fade 0.2s ease;
}

.of-drawer {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 1050;
    display: flex;
    flex-direction: column;
    width: 80vw;
    height: 100vh;
    height: 100dvh;
    background: var(--of-panel);
    color: var(--of-ink);
    box-shadow: -12px 0 40px rgba(15, 23, 42, 0.22);
    animation: of-slide-in 0.3s cubic-bezier(0.22, 1, 0.36, 1);
    font-size: 12px;
}

@keyframes of-slide-in {
    from { transform: translateX(100%); }
    to   { transform: translateX(0); }
}

@keyframes of-fade {
    from { opacity: 0; }
    to   { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
    .of-drawer,
    .of-backdrop {
        animation: none;
    }
}

.of-drawer__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    padding: 14px 20px;
    background: var(--of-surface);
    border-bottom: 1px solid var(--of-line);
    flex-shrink: 0;
}

.of-drawer__eyebrow {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--of-muted);
}

.of-drawer__title {
    margin: 2px 0 6px;
    font-size: 18px;
    font-weight: 800;
    color: var(--of-ink);
    word-break: break-all;
}

.of-drawer__meta {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    font-size: 12px;
    color: var(--of-muted);
}

.of-drawer__actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.of-drawer__body {
    flex: 1;
    overflow-y: auto;
    padding: 16px 20px 24px;
}

.of-drawer__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 12px 20px;
    background: var(--of-surface);
    border-top: 1px solid var(--of-line);
    flex-shrink: 0;
}

/* ── Cards inside the drawer ── */
.of-card {
    padding: 14px 16px;
    border: 1px solid var(--of-line);
    border-radius: 14px;
    background: var(--of-surface);
    box-shadow: var(--of-shadow);
    margin-bottom: 16px;
}

.of-card__title {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 10px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--of-muted);
}

.of-card__title i {
    color: var(--of-brand);
    font-size: 13px;
}

.of-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.of-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.of-grid-3 > .of-card,
.of-grid-2 > .of-card {
    margin-bottom: 0;
}

.of-grid-3,
.of-grid-2 {
    margin-bottom: 16px;
}

.of-strong {
    font-weight: 700;
    color: var(--of-ink);
}

.of-muted {
    color: var(--of-muted);
}

.of-kv {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 4px 0;
    font-size: 12px;
}

.of-kv span:first-child {
    color: var(--of-muted);
}

.of-kv span:last-child {
    font-weight: 600;
    text-align: right;
}

.of-kv--total {
    margin-top: 8px;
    padding-top: 12px;
    border-top: 2px solid var(--of-line);
    font-size: 13px;
}

.of-kv--total span:last-child {
    font-size: 15px;
    font-weight: 800;
    color: var(--of-brand);
}

/* ── Progress steps ── */
.of-steps {
    display: flex;
    align-items: flex-start;
    margin: 4px 0 6px;
    padding: 0;
    list-style: none;
}

.of-step {
    position: relative;
    flex: 1;
    text-align: center;
    font-size: 11px;
    font-weight: 600;
    color: var(--of-muted);
}

.of-step::before {
    content: "";
    position: absolute;
    top: 13px;
    left: -50%;
    width: 100%;
    height: 3px;
    background: var(--of-line);
}

.of-step:first-child::before {
    display: none;
}

.of-step__dot {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    margin: 0 auto 6px;
    border: 2px solid var(--of-line);
    border-radius: 50%;
    background: var(--of-surface);
    color: var(--of-muted);
    font-size: 11px;
    font-weight: 800;
}

.of-step--done::before,
.of-step--current::before {
    background: var(--of-brand);
}

.of-step--done .of-step__dot {
    background: var(--of-brand);
    border-color: var(--of-brand);
    color: #fff;
}

.of-step--done {
    color: var(--of-ink);
}

.of-step--current .of-step__dot {
    border-color: var(--of-brand);
    color: var(--of-brand);
    box-shadow: 0 0 0 5px var(--of-brand-soft);
}

.of-step--current {
    color: var(--of-brand);
    font-weight: 800;
}

/* ── Next-action bar under the steps ── */
.of-action {
    display: flex;
    align-items: flex-end;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px dashed var(--of-line);
}

.of-action__field {
    flex: 1 1 260px;
}

.of-label {
    display: block;
    margin-bottom: 5px;
    font-size: 12px;
    font-weight: 600;
    color: var(--of-muted);
}

.of-hint {
    margin-top: 10px;
    font-size: 12px;
    color: var(--of-muted);
}

/* ── Notes / banners ── */
.of-note {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 12px;
    font-size: 12px;
    margin-bottom: 16px;
    background: var(--of-brand-soft);
    color: var(--of-ink);
}

.of-note i {
    font-size: 14px;
    margin-top: 1px;
}

.of-note--error   { background: #fde4e1; color: #8f2318; }
.of-note--success { background: #dff5e7; color: #17603a; }
.of-note--warn    { background: #fff4d6; color: #7a4b08; }

[data-theme-mode="dark"] .of-note--error   { background: rgba(230, 80, 70, 0.18); color: #f5a9a2; }
[data-theme-mode="dark"] .of-note--success { background: rgba(50, 180, 100, 0.18); color: #8fe0ae; }
[data-theme-mode="dark"] .of-note--warn    { background: rgba(245, 181, 46, 0.16); color: #f3cf7c; }

/* ── Items table inside the drawer ── */
.of-items {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
}

.of-items th {
    padding: 7px 10px;
    border-bottom: 1px solid var(--of-line);
    color: var(--of-muted);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-align: left;
    white-space: nowrap;
}

.of-items td {
    padding: 9px 10px;
    border-bottom: 1px solid var(--of-line);
    vertical-align: middle;
    font-size: 12px;
}

.of-items tr:last-child td {
    border-bottom: none;
}

.of-items .of-num {
    text-align: right;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

.of-product {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 220px;
}

.of-thumb {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid var(--of-line);
    border-radius: 10px;
    background: var(--of-panel);
    color: var(--of-muted);
    object-fit: cover;
    overflow: hidden;
}

.of-qty-input {
    width: 76px;
    padding: 5px 8px;
    border: 1px solid var(--of-line);
    border-radius: 8px;
    background: var(--of-surface);
    color: var(--of-ink);
    text-align: right;
    font-size: 12px;
}

.of-totals {
    max-width: 340px;
    margin-left: auto;
    margin-top: 12px;
}

/* ── Timeline ── */
.of-timeline {
    margin: 0;
    padding: 0;
    list-style: none;
}

.of-timeline li {
    position: relative;
    padding: 0 0 18px 26px;
}

.of-timeline li::before {
    content: "";
    position: absolute;
    left: 5px;
    top: 16px;
    bottom: 0;
    width: 2px;
    background: var(--of-line);
}

.of-timeline li:last-child {
    padding-bottom: 0;
}

.of-timeline li:last-child::before {
    display: none;
}

.of-timeline__dot {
    position: absolute;
    left: 0;
    top: 4px;
    width: 12px;
    height: 12px;
    border: 2px solid var(--of-brand);
    border-radius: 50%;
    background: var(--of-surface);
}

.of-timeline li:first-child .of-timeline__dot {
    background: var(--of-brand);
}

.of-timeline__head {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    font-size: 12px;
    font-weight: 700;
}

.of-timeline__time {
    flex-shrink: 0;
    font-size: 11px;
    font-weight: 500;
    color: var(--of-muted);
}

.of-timeline__text {
    margin-top: 2px;
    font-size: 11px;
    color: var(--of-muted);
}

/* ── Receipt thumbnails ── */
.of-thumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.of-thumbs img {
    width: 64px;
    height: 64px;
    border: 1px solid var(--of-line);
    border-radius: 10px;
    object-fit: cover;
}

/* ── Small dialog shown over the drawer (cancel / payment / reject) ── */
.of-dialog-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1060;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: rgba(15, 23, 42, 0.55);
    animation: of-fade 0.15s ease;
}

.of-dialog {
    width: 100%;
    max-width: 480px;
    padding: 18px 20px;
    border-radius: 16px;
    background: var(--of-surface);
    color: var(--of-ink);
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.35);
    font-size: 12px;
}

.of-dialog__title {
    margin: 0 0 4px;
    font-size: 15px;
    font-weight: 800;
}

.of-dialog__text {
    margin: 0 0 14px;
    font-size: 12px;
    color: var(--of-muted);
}

.of-dialog__field {
    margin-bottom: 12px;
}

.of-dialog__actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 18px;
}

.of-field-error {
    margin-top: 10px;
    font-size: 12px;
    color: #c0392b;
}

.of-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 44px 16px;
    color: var(--of-muted);
    font-size: 12px;
}

/* ── Smaller screens ── */
@media (max-width: 1100px) {
    .of-drawer {
        width: 94vw;
    }

    .of-grid-3 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .of-drawer {
        width: 100vw;
    }

    .of-grid-3,
    .of-grid-2 {
        grid-template-columns: 1fr;
    }

    .of-drawer__header,
    .of-drawer__body,
    .of-drawer__footer {
        padding-left: 16px;
        padding-right: 16px;
    }

    .of-step {
        font-size: 10px;
    }
}

/* ==========================================================================
   Product reviews page ("rv-")
   ========================================================================== */
.of-drawer.rv-drawer {
    width: min(780px, 96vw);
}

.rv-drawer .searchable-dropdown-wrapper {
    width: 100%;
}

.rv-drawer textarea.of-input {
    resize: vertical;
    min-height: 70px;
    font-family: inherit;
}

.rv-fields .rv-field {
    min-width: 0;
}

.rv-stars {
    display: inline-flex;
    font-size: 14px;
    letter-spacing: 1px;
    line-height: 1;
}

.rv-stars__on {
    color: #f5a524;
}

.rv-stars__off {
    color: var(--of-line);
}

.rv-verified {
    color: #17713c;
}

[data-theme-mode="dark"] .rv-verified {
    color: #7fd9a2;
}

.rv-clamp {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    max-width: 340px;
    white-space: normal;
}

.rv-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 4px;
}

.rv-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 1px 8px;
    border-radius: 999px;
    background: var(--of-panel);
    border: 1px solid var(--of-line);
    color: var(--of-muted);
    font-size: 11px;
    font-weight: 600;
}

.rv-star-picker {
    display: flex;
    align-items: center;
    gap: 4px;
}

.rv-star-picker button {
    padding: 0 2px;
    border: none;
    background: transparent;
    color: var(--of-line);
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
    transition: transform 0.1s, color 0.1s;
}

.rv-star-picker button.is-on {
    color: #f5a524;
}

.rv-star-picker button:not(:disabled):hover {
    transform: scale(1.15);
}

.rv-star-picker button:disabled {
    cursor: default;
}

.rv-star-picker span {
    margin-left: 8px;
}

.rv-seg {
    display: flex;
    border: 1px solid var(--of-line);
    border-radius: 10px;
    overflow: hidden;
}

.rv-seg button {
    flex: 1;
    padding: 10px;
    border: none;
    background: var(--of-surface);
    color: var(--of-muted);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}

.rv-seg button.is-active {
    background: #d08a0b;
    color: #fff;
}

.rv-seg button.is-active.is-green {
    background: #1f8a4c;
}

.rv-errors {
    margin: 4px 0 0;
    padding-left: 18px;
}

.rv-image-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.rv-image-row img {
    display: block;
    width: 52px;
    height: 52px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid var(--of-line);
}

.rv-image-row--new {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px dashed var(--of-line);
}

.rv-filters .searchable-dropdown-wrapper {
    width: 100%;
}
