/* The initial History geometry is independent of whether a reminder is due. */
.rn-review-preview-error { padding: 12px 20px; color: #b42318; background: #fff; }
.rn-review-dismiss-backdrop { position: fixed; inset: 0; z-index: 2147483400; display: grid; place-items: center; padding: 20px; background: #16161b55; backdrop-filter: blur(4px); }
.rn-review-dismiss-form { width: min(460px, 100%); box-sizing: border-box; max-height: 90dvh; overflow: auto; padding: 26px; border-radius: 20px; background: #fff; color: #1d1d1f; box-shadow: 0 20px 80px #0003; font: 14px/1.5 -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; }
.rn-review-dismiss-form h2 { margin: 0 0 12px; font-size: 21px; line-height: 1.3; letter-spacing: -.4px; }
.rn-review-dismiss-form p { margin: 0 0 18px; color: #6e6e73; }
.rn-review-dismiss-form label { display: block; margin-bottom: 6px; font-weight: 600; }
.rn-review-dismiss-form label span { font-weight: 400; color: #6e6e73; }
.rn-review-dismiss-form textarea { display: block; box-sizing: border-box; width: 100%; min-height: 96px; resize: vertical; border: 1px solid #d2d2d7; border-radius: 10px; padding: 10px 12px; background: #fafafa; color: inherit; font: inherit; }
.rn-review-dismiss-form footer { display: flex; justify-content: flex-end; gap: 10px; margin-top: 20px; }
.rn-review-dismiss-form button { border: 0; border-radius: 9px; padding: 9px 16px; font: inherit; cursor: pointer; background: #f2f2f7; color: #1d1d1f; }
.rn-review-dismiss-form [data-dismiss-save] { background: #007aff; color: white; }
.rn-review-dismiss-form button:disabled { opacity: .45; cursor: default; }
.rn-review-dismiss-form textarea:focus-visible, .rn-review-dismiss-form button:focus-visible { outline: 2px solid #007aff; outline-offset: 2px; }
.rn-review-dismiss-form .rn-review-dismiss-error { margin-top: 10px; color: #b42318; }
.rn-review-dismiss-form .rn-review-dismiss-demo { font-size: 12px; }
.rn-review-dismiss-form [hidden] { display: none !important; }
@media screen and (min-width: 1024px) {
  body[data-view="order-history"] #view-order-history .page-inner { padding-top: 8px; }
  body[data-view="order-history"] #view-order-history .order-history-header { padding-top: 10px; padding-bottom: 10px; }

  .site-header.rn-review-host { transform: none !important; box-sizing: border-box; }
  .rn-review-host > [data-rn-review-original] { visibility: hidden; opacity: 0; pointer-events: none; }
  .rn-review-header {
    position: absolute; inset: 0; box-sizing: border-box; display: flex; align-items: center; gap: 24px;
    padding: 12px max(24px, calc((100vw - 1880px) / 2)); color: #25232b;
    background: #f1b5ff; font: 400 14px/1.35 -apple-system, BlinkMacSystemFont, "Inter", sans-serif;
    animation: rn-review-enter .2s ease-out;
  }
  .rn-review-header[data-group="carts"] { background: #f4ff70; }
  .rn-review-header[data-group="reactivation"] { background: #d9f3ed; }
  .rn-review-header[data-group="reactivation"] .rn-review-preview-tools span { font-size: 10px; }
  .rn-review-header[data-group="reactivation"] .rn-review-menu { min-width: 252px; }
  .rn-review-menu-separator { border-top: 1px solid #e5e5ea; margin: 5px 4px; }
  .rn-review-header button, .rn-review-actions button { font: inherit; cursor: pointer; border: 0; }
  .rn-review-header button:focus-visible, .rn-review-actions button:focus-visible, .rn-review-newer:focus-visible {
    outline: 2px solid #007aff; outline-offset: 3px;
  }
  .rn-review-header button:disabled, .rn-review-actions button:disabled { opacity: .45; cursor: wait; }
  .rn-review-header.rn-review-preview { padding-right: 88px; }
  .rn-review-preview-tools { position: absolute; right: 16px; top: 10px; display: flex; align-items: center; gap: 8px; }
  .rn-review-preview-tools span { font-size: 11px; opacity: .65; }
  .rn-review-preview-tools button { background: transparent; color: inherit; font-size: 24px; line-height: 1; padding: 6px; border-radius: 50%; }
  .rn-review-preview-tools button:hover { background: #ffffff60; }
  .rn-review-avatar { width: 46px; height: 46px; flex: 0 0 46px; border-radius: 50%; overflow: hidden; display: grid; place-items: center; background: #e8e1f3; font-size: 20px; border:2px solid #171717; box-sizing:border-box; }
  .rn-review-avatar img { width: 100%; height: 100%; object-fit: cover; }
  .rn-review-copy { min-width: 0; flex: 1; }
  .rn-review-greeting { font-size: 17px; font-weight: 600; letter-spacing: -.025em; }
  .rn-review-summary { display: flex; flex-wrap: wrap; gap: 4px 8px; margin-top: 4px; color: #65616e; }
  .rn-review-summary strong { font-weight: 500; color: #38333f; font-variant-numeric: tabular-nums; }
  .rn-review-date { flex-basis: 100%; font-size: 12px; }
  .rn-review-groups { display: flex; gap: 3px; background: #ffffff80; border-radius: 10px; padding: 3px; }
  .rn-review-groups button { padding: 8px 10px; color: #6e6975; border-radius: 8px; background: transparent; white-space: nowrap; }
  .rn-review-groups button[aria-pressed="true"] { color: #27212e; background: white; box-shadow: 0 1px 4px #24202715; }
  .rn-review-group-label { color: #6e6975; }
  .rn-review-controls { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; flex: 0 0 auto; }
  .rn-review-controls .rn-review-primary { background: #242126; color: white; border-radius: 10px; padding: 10px 15px; font-weight: 500; white-space: nowrap; }
  .rn-review-done { font-size: 12px; color: #6e6975; }
  .rn-review-reminder { position: relative; }
  .rn-review-reminder > button { display: flex; gap: 6px; align-items: center; padding: 4px 0 0 8px; color: #625c68; background: transparent; }
  .rn-review-menu { position: absolute; right: 0; top: calc(100% + 8px); min-width: 184px; padding: 6px; background: white; color: #202024; border: 1px solid #e5e5ea; border-radius: 14px; box-shadow: 0 12px 40px #18202c25; z-index: 2; }
  .rn-review-menu[hidden] { display: none; }
  .rn-review-menu button { display: flex; justify-content: space-between; align-items: center; gap: 18px; width: 100%; padding: 11px 10px; border-radius: 8px; background: transparent; color: inherit; text-align: left; }
  .rn-review-menu button:hover, .rn-review-menu button:focus-visible { background: #f2f5fc; color: #007aff; }
  .rn-review-error, .rn-review-row-error { color: #b42318; font-size: 12px; margin-top: 4px; white-space: normal; }

  body.rn-review-active #view-order-history .order-history-table { width: 100%; min-width: 940px; table-layout: fixed; }
  body.rn-review-active #view-order-history .order-history-col-date { width: 114px; }
  body.rn-review-active #view-order-history .order-history-col-id { width: 92px; }
  body.rn-review-active #view-order-history .order-history-col-status { width: 104px; }
  body.rn-review-active #view-order-history .order-history-col-total { width: 120px; padding-right: 14px; text-align: right; }
  body.rn-review-active #view-order-history .order-history-col-creator { width: 130px; min-width: 0; }
  body.rn-review-active #view-order-history .order-history-col-address { width: 150px; }
  body.rn-review-active #view-order-history .order-history-col-content { width: 220px; }
  body.rn-review-active #view-order-history .order-history-col-buyer { width: 240px; min-width:240px; }
  body.rn-review-active #view-order-history .rn-review-actions { width: 165px; padding: 12px; text-align: right; }
  .rn-review-row-tools { display: flex; align-items: flex-end; flex-direction: column; gap: 6px; }
  .rn-review-row-tools button { padding: 7px 10px; border-radius: 8px; color: #737078; background: transparent; white-space: nowrap; }
  .rn-review-row-tools [data-review-archive] { color: #343139; background: #f0f0f3; }
  .rn-review-row-tools button:hover { color: #007aff; background: #edf4ff; }
  #view-order-history .rn-review-date-filter { margin-top: 5px; font-size: 10px; }
  .rn-review-menu-loading { display: block; padding: 12px; color: #77747b; }
  .rn-review-combined-date { display: none; font-weight: 400; color: #77747c; font-size: 12px; margin-top: 5px; }
  body.rn-review-narrow #view-order-history .order-history-col-date,
  body.rn-review-narrow #view-order-history .order-history-col-content,
  body.rn-review-narrow #view-order-history .oh-seen-slot { display: none !important; }
  body.rn-review-narrow #view-order-history .order-history-col-id { width: 120px; }
  body.rn-review-narrow .rn-review-combined-date { display: block; }
  body.rn-review-active #view-order-history .order-history-col-buyer .oh-name-line { flex-wrap: wrap; overflow: visible; }
  body.rn-review-active #view-order-history .order-history-col-buyer .order-history-note {
    display: flex; flex: 1 0 100%; position: static; width: 100%; max-width: none; margin-top: 5px; overflow: visible; transform: none; padding: 0; align-items: flex-start;
  }
  body.rn-review-active #view-order-history .order-history-col-buyer .order-history-note-text {
    white-space: pre-wrap; overflow: visible; overflow-wrap: anywhere; text-overflow: clip; line-height: 1.4; max-height: none; -webkit-line-clamp: unset; display: block;
  }
  body.rn-review-active #view-order-history .order-history-col-buyer .oh-note-cta { display: none; }
  body.rn-review-active #view-order-history .order-history-col-buyer .rn-review-note-compact .oh-note-cta {
    position: static; color: #007aff; background: #edf4ff; border-radius: 5px; padding: 0 5px; margin-left: 5px;
  }
  body.rn-review-active #view-order-history .rn-review-note-compact:hover .oh-note-cta,
  body.rn-review-active #view-order-history .rn-review-note-compact:focus .oh-note-cta { display: inline; }
  body.rn-review-active #view-order-history .rn-review-newer { font-family: inherit; font-size: 12px; font-weight: 400; line-height: 1.4; color: #77747b; background: transparent; border: 0; border-radius: 6px; padding: 4px 5px; cursor: pointer; white-space: normal; text-align: left; }
  body.rn-review-active #view-order-history .rn-review-newer:hover { color: #007aff; background: #edf4ff; }
  body.rn-review-active #view-order-history .rn-review-removing { opacity: 0; transform: translateY(-5px); transition: opacity .16s, transform .16s; pointer-events: none; }
  .rn-review-newer-popover a { display: inline-block; margin: 8px 16px 14px; color: #007aff; }
}
@media screen and (min-width: 1024px) and (max-width: 1399px) {
  .rn-review-header { gap: 14px; padding: 10px 20px; }
  .rn-review-groups { flex-direction: column; }
  .rn-review-groups button { padding: 5px 8px; font-size: 12px; }
  .rn-review-greeting { font-size: 15px; }
  body.rn-review-active #view-order-history .order-history-col-address { width: 120px; }
  body.rn-review-active #view-order-history .order-history-col-creator { width: 112px; }
  body.rn-review-active #view-order-history .rn-review-actions { width: 140px; padding: 8px; font-size: 12px; }
  body.rn-review-active #view-order-history .order-history-col-total { width: 104px; font-size: 12px; }
}
@keyframes rn-review-enter { from { opacity: 0; transform: translateY(-5px); } to { opacity: 1; transform: translateY(0); } }
@media screen and (prefers-reduced-motion: reduce) {
  .rn-review-header { animation: none; }
  body.rn-review-active #view-order-history .rn-review-removing { transition: none; transform: none; }
}

/* Sentence reminder and focused review — desktop only. */
@media screen and (min-width:1024px) {
  .rn-review-header { justify-content:center; gap:20px; }
  .rn-review-sentence { flex:0 1 auto; max-width:760px; font-size:15px; line-height:1.5; }
  .rn-review-sentence-line { display:block; }
  .rn-review-sentence strong { font-weight:600; font-size:20px; line-height:1.3; }
  .rn-review-controls { flex-direction:row; align-items:center; gap:12px; }
  .rn-review-secondary, .rn-review-reminder > button { background:transparent; border-radius:0; padding:8px 0; color:#25232b; text-decoration:underline; text-underline-offset:4px; white-space:nowrap; }
  body.rn-review-active { --site-header-offset:100px!important; --trsa-site-header-height:100px!important; }
  body.rn-review-active .site-header.rn-review-host { height:100px!important; min-height:100px!important; }
  .rn-review-header.is-review { background:#fff; padding:8px 20px; }
  .rn-review-exit { text-align:center; color:#86868b; font-size:19px; letter-spacing:-.3px; }
  .rn-review-exit button { background:none; color:#007aff; padding:10px 12px; font-weight:500; }
  body.rn-review-active #view-order-history :is(.order-history-header,.order-history-filters-row,.order-history-mobile-filters) { display:none!important; }
  body.rn-review-active #view-order-history .order-history-table-wrap { animation:none; }
  body.rn-review-active #view-order-history .rn-review-actions { width:320px; padding:8px 12px; text-align:left; }
  .rn-review-row-tools { align-items:stretch; gap:6px; }
  .rn-review-row-tools > div { display:flex; flex-direction:row; align-items:center; justify-content:flex-end; gap:8px; }
  .rn-review-row-tools span { font-size:11px; font-weight:400; color:#86868b; }
  .rn-review-row-tools button, .rn-review-row-tools [data-review-archive], [data-review-customer-confirm] { color:#0066cc; background:#eaf3ff; padding:6px 9px; font-weight:500; border-radius:9px; border:0; }
  .rn-review-row-tools button { min-height:30px; line-height:18px; font-size:12px; flex-shrink:0; }
  .rn-review-row-error:empty { display:none; }
  [data-review-customer-confirm] { margin:12px 16px; cursor:pointer; }
}
@media screen and (prefers-reduced-motion:reduce) {
  body.rn-review-active .site-header.rn-review-host { transition:none; }
  body.rn-review-active #view-order-history .order-history-table-wrap { animation:none; }
}
@media screen and (min-width:1024px) {
  .site-header.rn-review-host { height:auto!important; min-height:100px; }
  .rn-review-host > [data-rn-review-original] { display:none!important; }
  .rn-review-header { position:relative; min-height:100px; }
  .rn-review-header.is-review { min-height:100px; }
}

@media screen and (min-width:1024px) and (prefers-reduced-motion:no-preference) {
  .rn-review-row-tools { animation:rn-review-controls-in 360ms cubic-bezier(.22,1,.36,1) both; }
}
@keyframes rn-review-controls-in {
  from { opacity:0; transform:translateX(24px); }
  to { opacity:1; transform:translateX(0); }
}

/* Reserve readable name space; small desktop containers scroll instead of
   shrinking the name to the few pixels left over from fixed action columns. */
@media screen and (min-width:1024px) {
  body.rn-review-active #view-order-history .order-history-table-wrap {
    overflow-x:auto; scrollbar-width:auto; scrollbar-color:#8e8e93 #e5e5ea;
  }
  body.rn-review-active #view-order-history .order-history-table-wrap::-webkit-scrollbar { height:12px; }
  body.rn-review-active #view-order-history .order-history-table-wrap::-webkit-scrollbar-track { background:#e5e5ea; border-radius:6px; }
  body.rn-review-active #view-order-history .order-history-table-wrap::-webkit-scrollbar-thumb { background:#8e8e93; border:2px solid #e5e5ea; border-radius:6px; }
  body.rn-review-active #view-order-history .order-history-table-wrap::-webkit-scrollbar-thumb:hover { background:#707078; }
  body.rn-review-active #view-order-history .order-history-table { min-width:1580px; }
  body.rn-review-narrow #view-order-history .order-history-table { min-width:1240px; }
  body.rn-review-active #view-order-history .order-history-col-buyer { width:240px!important; min-width:240px!important; max-width:240px; }
  .rn-review-row-tools button { font-weight:500; }
  .rn-review-row-tools [data-review-archive] { background:#ffe580; color:#594000; }
  .rn-review-row-tools [data-review-archive]:is(:hover,:focus-visible) { background:#ffd34d; color:#463200; }
  .rn-review-row-tools [data-review-skip] { background:#d8eaff; color:#0057b8; }
  .rn-review-row-tools [data-review-skip]:is(:hover,:focus-visible) { background:#bfdcff; color:#00458f; }
}

/* A persistent control avoids macOS auto-hidden native scrollbars. Trackpad,
   mouse wheel and keyboard scrolling of the table continue to work normally. */
@media screen and (min-width:1024px) {
  #view-order-history .rn-review-scroll-managed { overflow-x:auto; scrollbar-width:none!important; }
  #view-order-history .rn-review-scroll-managed::-webkit-scrollbar { display:none!important; height:0!important; width:0!important; }
  #view-order-history .rn-review-scroll-control {
    appearance:none; -webkit-appearance:none; display:block; box-sizing:border-box;
    width:100%; height:20px; margin:6px 0 0; padding:0; border:0; border-radius:6px;
    background:transparent; cursor:pointer; box-shadow:none;
  }
  #view-order-history .rn-review-scroll-control[hidden] { display:none; }
  #view-order-history .rn-review-scroll-control::-webkit-slider-runnable-track { height:8px; background:#e5e5ea; border-radius:5px; }
  #view-order-history .rn-review-scroll-control::-webkit-slider-thumb { appearance:none; -webkit-appearance:none; width:var(--rn-scroll-thumb,60px); height:8px; background:#8e8e93; border:0; border-radius:5px; cursor:grab; }
  #view-order-history .rn-review-scroll-control::-moz-range-track { height:8px; background:#e5e5ea; border-radius:5px; }
  #view-order-history .rn-review-scroll-control::-moz-range-thumb { width:var(--rn-scroll-thumb,60px); height:8px; background:#8e8e93; border:0; border-radius:5px; cursor:grab; }
  #view-order-history .rn-review-scroll-control:focus-visible { outline:2px solid #007aff; outline-offset:2px; }
}

/* Review and progress UI is screen-only across all RN print variants. Keep
   this outside viewport queries so browser print and PDF use the same rules. */
@media print {
  body #site-header-root,
  body .site-header.rn-review-host,
  body .rn-review-header,
  body .rn-review-actions,
  body .rn-review-scroll-control,
  body .rn-review-newer,
  body .rn-review-combined-date,
  body .rn-review-newer-popover,
  body #rn-copy-progress {
    display:none!important;
    visibility:hidden!important;
    height:0!important;
    min-height:0!important;
    margin:0!important;
    padding:0!important;
    box-shadow:none!important;
    animation:none!important;
  }
  body.rn-review-active {
    --site-header-offset:0px!important;
    --trsa-site-header-height:0px!important;
  }
}

@media screen {
  .rn-review-loading-spinner { display:inline-block; width:16px; height:16px; margin-right:10px; vertical-align:-2px; border:2px solid #dedee3; border-top-color:#007aff; border-radius:50%; animation:rn-review-loading-spin .8s linear infinite; }
}
@keyframes rn-review-loading-spin { to { transform:rotate(360deg); } }
@media screen and (prefers-reduced-motion:reduce) {
  .rn-review-loading-spinner { animation:none; }
}

@media screen and (min-width:1024px) {
  body.rn-review-active #view-order-history th.rn-review-actions { text-align:right; }
  body.rn-review-active #view-order-history td.order-history-col-total { font-size:15px; }
}

@media screen and (min-width:1024px) {
  .rn-review-row-tools > div { display:grid; grid-template-columns:minmax(0,1fr) 150px; gap:8px; }
  .rn-review-row-tools > div > span { text-align:right; }
  .rn-review-row-tools button { width:150px; }
}
@media screen and (min-width:1024px) and (hover:hover) {
  .order-history-row .rn-review-row-tools > div > span { visibility:hidden; }
  .order-history-row .rn-review-row-tools button { background:#f1f1f4; color:#63636b; }
  .order-history-row:is(:hover,:focus-within) .rn-review-row-tools > div > span { visibility:visible; }
  .order-history-row:is(:hover,:focus-within) [data-review-archive] { background:#ffe580; color:#594000; }
  .order-history-row:is(:hover,:focus-within) [data-review-skip] { background:#d8eaff; color:#0057b8; }
  .order-history-row .rn-review-row-tools [data-review-archive]:is(:hover,:focus-visible) { background:#ffd34d; color:#463200; }
  .order-history-row .rn-review-row-tools [data-review-skip]:is(:hover,:focus-visible) { background:#a6ceff; color:#00458f; }
}
