/* Reviews, messages and rewards (shopper side). Server markup: inc/reviews.php; behavior: app/engage.js. */
.psct-rv { width: var(--shell, min(1376px, calc(100% - 40px))); margin: 48px auto 56px; padding: 28px clamp(18px, 3vw, 36px); background: var(--surface, #fff); border: 1px solid var(--line, #dce1d6); border-radius: var(--radius, 16px); }
.psct-rv h2 { margin: 0 0 6px; font-family: Cormorant, Georgia, serif; font-size: clamp(28px, 3vw, 38px); font-weight: 600; line-height: 1.05; color: var(--ink, #1c3026); }
.rv-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; }
.rv-score { margin: 0; color: var(--muted, #5e6e62); font-size: 15px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.rv-score b { color: var(--ink, #1c3026); font-size: 18px; }
.rv-stars { --rv: 0%; display: inline-block; font-size: 17px; letter-spacing: 2px; line-height: 1; background: linear-gradient(90deg, #d99a1e var(--rv), #d4d9cc var(--rv)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.rv-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.rv-bars { list-style: none; margin: 18px 0 6px; padding: 0; display: grid; gap: 5px; max-width: 420px; }
.rv-bars li { display: grid; grid-template-columns: 52px 1fr 32px; align-items: center; gap: 10px; font-size: 13px; color: var(--muted, #5e6e62); }
.rv-bars i { position: relative; height: 8px; border-radius: 99px; background: var(--tint, #ecf0e4); overflow: hidden; }
.rv-bars i::after { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--w); background: #d99a1e; border-radius: inherit; }
.rv-list { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 14px; }
.rv-list.eg-grid { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); align-items: start; }
.rv-item article { padding: 16px 18px; border: 1px solid var(--line, #dce1d6); border-radius: 14px; background: var(--paper, #fafbf5); }
.rv-item header { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.rv-item h3 { margin: 0; font-size: 16px; font-weight: 700; }
.rv-meta { margin: 6px 0 8px; font-size: 13px; color: var(--muted, #5e6e62); }
.rv-meta b { color: var(--ink, #1c3026); }
.rv-verified { color: #2d6b45; font-weight: 600; }
.rv-body { margin: 0; line-height: 1.55; font-size: 15px; overflow-wrap: anywhere; }
.rv-reply { margin-top: 12px; padding: 10px 14px; border-left: 3px solid var(--forest, #244d38); background: var(--tint, #ecf0e4); border-radius: 0 10px 10px 0; font-size: 14px; }
.rv-reply p { margin: 4px 0 0; line-height: 1.5; }
.rv-more-wrap { margin: 18px 0 0; text-align: center; }
.rv-more { display: inline-block; padding: 10px 20px; border: 1px solid var(--line, #dce1d6); border-radius: 99px; font-weight: 700; font-size: 14px; background: var(--surface, #fff); }
.rv-products { margin: 16px 0 0; font-size: 14px; color: var(--muted, #5e6e62); }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.eg-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 40px; padding: 8px 16px; border: 1px solid var(--line, #dce1d6); border-radius: 99px; background: var(--surface, #fff); color: var(--ink, #1c3026); font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; text-decoration: none; }
.eg-btn:hover { border-color: var(--forest, #244d38); }
.eg-btn.primary { background: var(--forest, #244d38); border-color: var(--forest, #244d38); color: #fff; }
.eg-btn.primary:hover { background: #1b3b2b; }
.eg-btn.small { min-height: 32px; padding: 4px 12px; font-size: 13px; }
.eg-btn:disabled { opacity: .5; cursor: not-allowed; }
.eg-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 16px; }
.eg-loyal { flex: 1 1 260px; margin: 0; padding: 8px 14px; border-radius: 10px; background: #fbf3dc; color: #4a3600; font-size: 14px; }
.eg-sort { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted, #5e6e62); }
.eg-sort select { min-height: 36px; padding: 4px 10px; border: 1px solid var(--line, #dce1d6); border-radius: 8px; background: var(--surface, #fff); font: inherit; color: var(--ink, #1c3026); }
.eg-switch { display: inline-flex; padding: 3px; border: 1px solid var(--line, #dce1d6); border-radius: 99px; background: var(--surface, #fff); }
.eg-switch button { min-height: 30px; padding: 3px 12px; border: 0; border-radius: 99px; background: transparent; font: inherit; font-size: 13px; font-weight: 600; color: var(--muted, #5e6e62); cursor: pointer; }
.eg-switch button[aria-pressed="true"] { background: var(--forest, #244d38); color: #fff; }
.eg-chips { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 0; padding: 0; }
.eg-chips li { padding: 3px 10px; border-radius: 99px; background: var(--tint, #ecf0e4); font-size: 12.5px; font-weight: 600; color: var(--forest, #244d38); }
.eg-vote { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; font-size: 13px; color: var(--muted, #5e6e62); }
.eg-vote button { padding: 2px 0; border: 0; background: none; font: inherit; font-weight: 600; color: var(--forest, #244d38); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.eg-vote button:disabled { color: var(--muted, #5e6e62); text-decoration: none; cursor: default; }
.eg-mine { font-weight: 600; }
.eg-level { display: inline-block; padding: 1px 8px; border-radius: 99px; background: #e9f3d6; color: #2d4a36; font-size: 11.5px; font-weight: 700; }
.eg-empty { padding: 18px; border: 1px dashed var(--line, #dce1d6); border-radius: 12px; color: var(--muted, #5e6e62); list-style: none; }
.eg-mini { display: inline-flex; align-items: center; gap: 6px; margin: 6px 0 4px; font-size: 14px; color: var(--muted, #5e6e62); }
.eg-mini b { color: var(--ink, #1c3026); }
.eg-toast { position: fixed; left: 50%; bottom: 24px; z-index: 10000; max-width: min(520px, calc(100% - 32px)); padding: 12px 18px; border-radius: 12px; background: #1c3026; color: #fff; font-size: 14px; line-height: 1.4; box-shadow: 0 10px 30px rgba(0,0,0,.2); transform: translate(-50%, 20px); opacity: 0; pointer-events: none; transition: .25s; }
.eg-toast.show { opacity: 1; transform: translate(-50%, 0); }

/* dialog + forms */
.eg-dialog { width: min(560px, calc(100% - 24px)); max-height: calc(100dvh - 32px); padding: 26px clamp(18px, 4vw, 30px); border: 0; border-radius: 18px; background: var(--surface, #fff); color: var(--ink, #1c3026); box-shadow: 0 30px 80px rgba(0,0,0,.25); }
.eg-dialog.wide { width: min(820px, calc(100% - 24px)); }
.eg-dialog::backdrop { background: rgba(18, 28, 22, .55); }
.eg-dialog h2 { margin: 0 34px 14px 0; font-family: Cormorant, Georgia, serif; font-size: 30px; font-weight: 600; line-height: 1.05; }
.eg-dialog-close { position: absolute; top: 12px; right: 12px; margin: 0; }
.eg-dialog-close button { width: 36px; height: 36px; border: 0; border-radius: 50%; background: var(--tint, #ecf0e4); font-size: 22px; line-height: 1; cursor: pointer; color: inherit; }
.eg-form { display: grid; gap: 14px; }
.eg-form label { display: grid; gap: 6px; font-size: 14px; font-weight: 600; }
.eg-form small { font-weight: 400; color: var(--muted, #5e6e62); }
.eg-form input:not([type=radio]):not([type=checkbox]), .eg-form textarea, .eg-form select { width: 100%; padding: 10px 12px; border: 1px solid var(--line, #dce1d6); border-radius: 10px; background: var(--paper, #fafbf5); font: inherit; font-weight: 400; color: inherit; }
.eg-form textarea { resize: vertical; line-height: 1.5; }
.eg-form fieldset { margin: 0; padding: 0; border: 0; }
.eg-form legend { padding: 0; margin-bottom: 6px; font-size: 14px; font-weight: 600; }
.eg-rate-row { display: inline-flex; flex-direction: row-reverse; gap: 2px; }
.eg-rate-row input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.eg-rate-row label { cursor: pointer; font-size: 34px; line-height: 1; color: #d4d9cc; }
.eg-rate-row label::before { content: "★"; }
.eg-rate-row input:checked ~ label, .eg-rate-row label:hover, .eg-rate-row label:hover ~ label { color: #d99a1e; }
.eg-rate-row input:focus-visible + label { outline: 2px solid var(--forest, #244d38); outline-offset: 2px; border-radius: 4px; }
.eg-rate-hint { margin-left: 10px; font-size: 14px; color: var(--muted, #5e6e62); vertical-align: 8px; }
.eg-count { margin: -8px 0 0; font-size: 12.5px; color: var(--muted, #5e6e62); }
.eg-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.eg-tags legend { width: 100%; }
.eg-tags label { display: inline-flex; cursor: pointer; }
.eg-tags input { position: absolute; opacity: 0; }
.eg-tags span { padding: 5px 12px; border: 1px solid var(--line, #dce1d6); border-radius: 99px; font-size: 13px; font-weight: 600; }
.eg-tags input:checked + span { background: var(--forest, #244d38); border-color: var(--forest, #244d38); color: #fff; }
.eg-tags input:focus-visible + span { outline: 2px solid var(--forest, #244d38); outline-offset: 2px; }
.eg-note { margin: 0; font-size: 13px; line-height: 1.5; color: var(--muted, #5e6e62); }
.eg-note a { text-decoration: underline; }
.eg-alert { margin: 0; color: #a3271b; font-size: 14px; font-weight: 600; }
.eg-alert:empty { display: none; }
.eg-ok { font-size: 16px; font-weight: 600; color: #2d6b45; }
.eg-actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* profile tabs */
.eg-head h2 { margin: 0 0 4px; font-family: Cormorant, Georgia, serif; font-size: 32px; font-weight: 600; }
.eg-head p { margin: 0 0 18px; color: var(--muted, #5e6e62); line-height: 1.5; }
.eg-block { margin-top: 22px; }
.eg-block h3 { margin: 0 0 10px; font-size: 17px; }
.eg-block-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.eg-block-head h3 { margin: 0; }
.eg-todo { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.eg-todo li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 14px; border: 1px solid var(--line, #dce1d6); border-radius: 12px; background: var(--paper, #fafbf5); }
.eg-todo small { display: block; color: var(--muted, #5e6e62); }
.eg-target { margin: 0 0 6px; font-weight: 700; }
.eg-target a { text-decoration: underline; text-underline-offset: 3px; }
.eg-pill { display: inline-block; padding: 2px 10px; border-radius: 99px; background: var(--tint, #ecf0e4); font-size: 12px; font-weight: 700; color: var(--forest, #244d38); }
.eg-pill.warn { background: #fde7e4; color: #7a1a10; }
.eg-badge { display: inline-block; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 99px; background: #c0392b; color: #fff; font-size: 11.5px; font-weight: 700; line-height: 20px; text-align: center; }

.eg-chat { display: grid; grid-template-columns: minmax(220px, 300px) 1fr; min-height: 460px; border: 1px solid var(--line, #dce1d6); border-radius: 14px; overflow: hidden; background: var(--surface, #fff); }
.eg-threads { list-style: none; margin: 0; padding: 0; border-right: 1px solid var(--line, #dce1d6); overflow: auto; max-height: 620px; }
.eg-threads button { display: grid; grid-template-columns: 1fr auto; gap: 2px 8px; width: 100%; padding: 12px 14px; border: 0; border-bottom: 1px solid var(--line, #dce1d6); background: none; font: inherit; text-align: left; cursor: pointer; color: inherit; }
.eg-threads button[aria-current="true"] { background: var(--tint, #ecf0e4); }
.eg-threads small { grid-column: 1 / -1; color: var(--muted, #5e6e62); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.eg-threads time { grid-column: 1 / -1; font-size: 11.5px; color: var(--muted, #5e6e62); }
.eg-threads .eg-pill { grid-column: 1 / -1; justify-self: start; }
.eg-convo { display: flex; flex-direction: column; min-width: 0; }
.eg-convo-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--line, #dce1d6); }
.eg-convo-head small { display: block; color: var(--muted, #5e6e62); }
.eg-convo-head a { font-size: 13px; font-weight: 700; text-decoration: underline; }
.eg-convo-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; }
.eg-convo-tools .eg-link { font-size: 13px; }
.eg-msgs { list-style: none; flex: 1; margin: 0; padding: 16px; display: flex; flex-direction: column; gap: 10px; overflow: auto; max-height: 460px; background: var(--paper, #fafbf5); }
.eg-msgs li { max-width: 78%; }
.eg-msgs li p { margin: 0; padding: 10px 14px; border-radius: 16px; line-height: 1.45; font-size: 14.5px; overflow-wrap: anywhere; }
.eg-msgs li small { display: block; margin-top: 3px; font-size: 11.5px; color: var(--muted, #5e6e62); }
.eg-msgs .them p { background: var(--surface, #fff); border: 1px solid var(--line, #dce1d6); border-bottom-left-radius: 4px; }
.eg-msgs .me { align-self: flex-end; text-align: right; }
.eg-msgs .me p { background: var(--forest, #244d38); color: #fff; border-bottom-right-radius: 4px; text-align: left; }
.eg-send { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--line, #dce1d6); }
.eg-send textarea { flex: 1; min-height: 44px; padding: 10px 12px; border: 1px solid var(--line, #dce1d6); border-radius: 12px; font: inherit; resize: vertical; }
.eg-convo > .eg-note { padding: 12px 16px; }

.eg-level-card { display: grid; grid-template-columns: auto 1fr; gap: 20px; align-items: start; padding: 20px; border-radius: 16px; background: radial-gradient(120% 140% at 0% 0%, #22382c, #0f1a14); color: #e9f3d6; }
.eg-level-card strong { display: block; font-family: Cormorant, Georgia, serif; font-size: 36px; font-weight: 600; line-height: 1; margin: 4px 0; }
.eg-level-card span { display: block; font-size: 13px; opacity: .85; }
.eg-level-card .eg-overline { text-transform: uppercase; letter-spacing: .1em; font-size: 11px; font-weight: 700; color: #f2c46b; opacity: 1; }
.eg-level-card details { margin-top: 10px; font-size: 14px; }
.eg-level-card summary { cursor: pointer; font-weight: 700; }
.eg-level-card .eg-meter { background: rgba(255,255,255,.15); }
.eg-level-card .eg-meter i { background: #f2c46b; }
.eg-level-card .eg-small { color: #e9f3d6; opacity: .85; }
.eg-earn { list-style: none; margin: 8px 0; padding: 0; display: grid; gap: 4px; }
.eg-earn li { display: flex; justify-content: space-between; gap: 12px; }
.eg-meter { height: 8px; border-radius: 99px; background: var(--tint, #ecf0e4); overflow: hidden; }
.eg-meter i { display: block; height: 100%; background: var(--forest, #244d38); border-radius: inherit; }
.eg-small { margin: 6px 0 0; font-size: 12.5px; color: var(--muted, #5e6e62); }
.eg-programs { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.eg-program { padding: 16px; border: 1px solid var(--line, #dce1d6); border-radius: 14px; background: var(--surface, #fff); }
.eg-program header { display: flex; justify-content: space-between; gap: 10px; }
.eg-program header small { display: block; color: var(--muted, #5e6e62); }
.eg-bal { text-align: right; }
.eg-bal strong { display: block; font-size: 26px; line-height: 1; color: var(--forest, #244d38); }
.eg-bal small { font-size: 12px; }
.eg-tier { margin: 10px 0 6px; font-size: 13px; font-weight: 700; }
.eg-rewards { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 6px; }
.eg-rewards li { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 8px; font-size: 13.5px; padding-top: 6px; border-top: 1px solid var(--line, #dce1d6); }
.eg-codes { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.eg-codes li { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; padding: 10px 14px; border: 1px solid var(--line, #dce1d6); border-radius: 12px; }
.eg-codes li.used, .eg-codes li.void { opacity: .6; }
.eg-codes code { font-size: 15px; font-weight: 700; letter-spacing: .08em; padding: 4px 8px; border-radius: 6px; background: var(--tint, #ecf0e4); }
.eg-codes small { display: block; color: var(--muted, #5e6e62); }
.eg-code-big { text-align: center; margin: 8px 0 14px; }
.eg-code-big code { display: inline-block; padding: 12px 22px; border: 2px dashed var(--forest, #244d38); border-radius: 12px; font-size: 28px; font-weight: 800; letter-spacing: .12em; }
.eg-table-wrap { overflow-x: auto; border: 1px solid var(--line, #dce1d6); border-radius: 12px; }
.eg-table { width: 100%; border-collapse: collapse; font-size: 14px; background: var(--surface, #fff); }
.eg-table th, .eg-table td { padding: 9px 12px; text-align: left; border-bottom: 1px solid var(--line, #dce1d6); vertical-align: top; }
.eg-table th { font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted, #5e6e62); background: var(--paper, #fafbf5); white-space: nowrap; }
.eg-table tr:last-child td { border-bottom: 0; }
.eg-table .pos { color: #2d6b45; font-weight: 700; white-space: nowrap; }
.eg-table .neg { color: #a3271b; font-weight: 700; white-space: nowrap; }

@media (max-width: 720px) {
  .psct-rv { margin: 32px auto 40px; padding: 20px 16px; }
  .rv-head { align-items: flex-start; }
  .rv-actions, .rv-actions .eg-btn { width: 100%; }
  .eg-chat { grid-template-columns: 1fr; }
  .eg-threads { border-right: 0; border-bottom: 1px solid var(--line, #dce1d6); max-height: 220px; }
  .eg-level-card { grid-template-columns: 1fr; }
  .eg-msgs li { max-width: 92%; }
  .eg-codes li { grid-template-columns: 1fr; }
}

/* ---------- Contact button on listings (v1.39) ---------- */
.ct-btn { display: inline-flex; align-items: center; gap: 7px; min-height: 40px; padding: 8px 18px; border: 0; border-radius: 99px; background: var(--forest, #244d38); color: #fff; font: inherit; font-size: 15px; font-weight: 700; cursor: pointer; line-height: 1.1; white-space: nowrap; }
.ct-btn:hover { filter: brightness(1.1); }
.ct-btn:focus-visible { outline: 3px solid #e0a43a; outline-offset: 2px; }
.ct-hero { margin: 0; }
.ws-fin > .ct-hero { margin-top: 10px; }
.sm-acts > .ct-hero, .fp-acts > .ct-hero { min-height: 0; }
.ll-sm .sm-acts > .ct-btn.ct-hero { background: var(--forest, #244d38); border-color: var(--forest, #244d38); color: #fff; }
.ll-mbar .ct-bar { min-height: 0; padding: 0 12px; border-radius: inherit; font-size: inherit; background: #e0a43a; color: #1f2a22; }
.ct-float { position: fixed; right: 18px; bottom: 18px; z-index: 60; box-shadow: 0 8px 24px rgba(20, 40, 28, .28); }
@media (max-width: 760px) { .ct-float { bottom: 76px; right: 12px; } .ll-mbar ~ .ct-float, body:has(.ll-mbar .ct-bar) .ct-float { display: none; } }
@media print { .ct-btn { display: none; } }
.ct-topics { margin: 0; }
.ct-gate p { margin: 0 0 10px; line-height: 1.5; }
.ct-perks { margin: 0 0 14px; padding-left: 20px; line-height: 1.7; }
