/* New/Top strip used by the grouped catalog. The production bundle does not
   contain these classes yet, so keep them in the extension instead of
   changing the cabinet chrome or the shared catalog stylesheet. */
.offer-spotlight{display:flex;flex-direction:column;gap:12px;margin:0 0 16px}
.offer-spotlight-h{display:flex;flex-direction:column;gap:4px}
.offer-spotlight-h h2{margin:0;font-size:16px;font-weight:700;letter-spacing:-.02em;color:var(--text)}
.offer-spotlight-h p{margin:0;font-size:13px;color:var(--muted)}
.offer-spotlight-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.offer-spot-card{position:relative;overflow:hidden;display:flex;gap:12px;align-items:center;min-height:108px;padding:14px 14px 14px 16px;border:1px solid var(--border);border-radius:12px;background:var(--card);box-shadow:none}
.offer-spot-card:before{content:"";position:absolute;left:0;top:0;bottom:0;width:4px;background:var(--highlight)}
.offer-spot-card.is-top:before{background:#ff6b4a}
.offer-spot-card .offer-thumb,.offer-spot-card .logo-sq{width:56px;height:56px;border-radius:10px;flex-shrink:0}
.offer-spot-body{min-width:0;display:flex;flex:1;flex-direction:column;gap:4px}
.offer-spot-name{overflow:hidden;color:var(--text)!important;font-size:14px;font-weight:600;letter-spacing:-.02em;text-decoration:none;text-overflow:ellipsis;white-space:nowrap}
.offer-spot-name:hover{text-decoration:underline}
.offer-spot-pay{color:var(--muted);font-size:12px}
.offer-spot-pay b{color:var(--text);font-weight:600}
.offer-spot-cta{align-self:flex-start;display:inline-flex;align-items:center;min-height:30px;margin-top:4px;padding:4px 12px;border:1px solid var(--border);border-radius:8px;background:var(--card);color:var(--text)!important;font-size:12px;font-weight:600;text-decoration:none}
.offer-spot-cta:hover{background:color-mix(in srgb,var(--highlight) 18%,var(--card))}
.offer-spot-card .offer-badges{margin:0 0 2px}
@media (max-width:1100px){.offer-spotlight-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:720px){.offer-spotlight-grid{grid-template-columns:1fr}}

/* Grouped GEO product editor and public selector */
.grouped-offer-editor{display:flex;flex-direction:column}
.grouped-offer-editor [hidden]{display:none!important}
.grouped-offer-editor .grouped-tab-panel[hidden]{display:none!important}
.grouped-offer-editor>.grouped-product-overview{order:1}
.grouped-offer-editor>.grouped-geo-table{order:2}
.grouped-offer-editor>.grouped-selected-variant{order:3}
.grouped-offer-editor>.grouped-offer-tabs{order:4}
.grouped-offer-editor>.grouped-tab-panel{order:5}
.grouped-offer-editor>.offer-savebar{order:6}
.grouped-offer-editor .offer-back{border:0;background:transparent;padding:0;cursor:pointer;font:inherit}
.grouped-section-head{display:flex;align-items:center;justify-content:space-between;gap:12px}
.grouped-section-head span{font-size:12px;color:var(--muted)}
.grouped-head-actions{display:flex;align-items:center;gap:6px;flex-wrap:wrap;justify-content:flex-end}
.grouped-head-actions button,.grouped-section-head>button,.grouped-geo-table td>button,.grouped-material-row>button{height:30px;padding:0 9px;border:1px solid var(--border);border-radius:6px;background:#fff;color:var(--text);font:500 12px/1 var(--font,Manrope,sans-serif);cursor:pointer}
.grouped-table-scroll{overflow-x:auto}
.grouped-geo-table table{width:100%;border-collapse:collapse}
.grouped-geo-table th,.grouped-geo-table td{height:36px;padding:0 10px;border-bottom:1px solid var(--border);text-align:left;font-size:13px;white-space:nowrap}
.grouped-geo-table th{font-size:11px;color:var(--muted);font-weight:600;text-transform:uppercase}
.grouped-geo-table tbody tr{cursor:pointer}
.grouped-geo-table tbody tr:hover td{background:#f7f8f6}
.grouped-geo-table tbody tr.is-selected td{background:#efffd2;font-weight:700;box-shadow:inset 0 1px #b9d879,inset 0 -1px #b9d879}
.grouped-geo-table tbody tr.is-selected td:first-child{box-shadow:inset 4px 0 #7ca43b,inset 0 1px #b9d879,inset 0 -1px #b9d879}
.grouped-selected-variant{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 8px;padding:10px 14px;border:1px solid var(--border);border-radius:8px;background:var(--card)}
.grouped-selected-variant span{font-size:12px;color:var(--muted)}
.grouped-selected-variant strong{font-size:14px}
.grouped-offer-tabs{display:flex;gap:4px;overflow-x:auto;margin:0 0 12px;padding:4px;border:1px solid var(--border);border-radius:8px;background:#fff}
.grouped-offer-tabs button{flex:1;min-width:max-content;height:34px;padding:0 12px;border:0;border-radius:6px;background:transparent;color:var(--muted);font:600 12px/1 var(--font,Manrope,sans-serif);cursor:pointer}
.grouped-offer-tabs button.on{background:var(--highlight);color:#25301c}
.grouped-material-list{display:grid;gap:8px}
.grouped-material-row{display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:6px;align-items:center}
.grouped-material-list a{display:flex;justify-content:space-between;gap:12px;padding:10px;border:1px solid var(--border);border-radius:6px;color:var(--text);text-decoration:none}
.grouped-material-list small{color:var(--muted)}
.grouped-economics{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.grouped-economics>div:not(.offer-grid){display:flex;flex-direction:column;gap:4px;padding:12px;border:1px solid var(--border);border-radius:6px}
.grouped-economics>.offer-grid{grid-column:1/-1}
.grouped-economics>.primary{justify-self:start}
.grouped-economics span{font-size:12px;color:var(--muted)}
.grouped-economics .caption{grid-column:1/-1}
.grouped-leave-dialog{width:min(480px,calc(100vw - 32px))}
.grouped-action-modal{width:min(520px,calc(100vw - 32px))}
.grouped-action-modal h2{margin-top:0}
.grouped-action-modal label{display:flex;flex-direction:column;gap:5px;margin-bottom:10px;font-size:12px;color:var(--muted)}
.grouped-action-modal input,.grouped-action-modal select,.grouped-action-modal textarea{width:100%;height:38px;border:1px solid var(--border);border-radius:6px;background:#fff;color:var(--text);padding:0 10px}
.grouped-action-modal textarea{height:auto;min-height:80px;padding:8px 10px;resize:vertical}
.grouped-economics-viewer{grid-column:1/-1;display:flex;flex-direction:column;gap:5px;color:var(--muted);font-size:12px}
.grouped-economics-viewer select{height:38px;border:1px solid var(--border);border-radius:6px;background:#fff;color:var(--text);padding:0 10px}
.grouped-leave-dialog h2{margin-top:0}
.grouped-leave-actions{display:flex;justify-content:flex-end;gap:8px;flex-wrap:wrap}
.grouped-leave-actions button{height:36px;padding:0 12px;border:1px solid var(--border);border-radius:6px;background:#fff;color:var(--text);cursor:pointer}
.grouped-leave-actions .primary{border-color:#2a2e28;background:#2a2e28;color:#fff}
.wm-geo-selector{display:flex;flex-wrap:wrap;gap:6px;margin-top:10px}
.wm-geo-selector button{height:30px;padding:0 10px;border:1px solid var(--border);border-radius:8px;background:#fff;color:var(--text);font:600 12px/1 var(--font,Manrope,sans-serif);cursor:pointer}
.wm-geo-selector button.on{border-color:var(--highlight);background:var(--highlight);color:#25301c}
html[data-theme="dark"] .grouped-offer-tabs,
html[data-theme="dark"] .grouped-leave-actions button,
html[data-theme="dark"] .wm-geo-selector button,
html[data-theme="dark"] .grouped-head-actions button,
html[data-theme="dark"] .grouped-section-head>button,
html[data-theme="dark"] .grouped-geo-table td>button,
html[data-theme="dark"] .grouped-material-row>button,
html[data-theme="dark"] .grouped-action-modal input,
html[data-theme="dark"] .grouped-action-modal select,
html[data-theme="dark"] .grouped-action-modal textarea,
html[data-theme="dark"] .grouped-economics-viewer select{background:var(--card)}
html[data-theme="dark"] .grouped-geo-table tbody tr:hover td{background:#ffffff08}
html[data-theme="dark"] .grouped-geo-table tbody tr.is-selected td{background:#29321f;box-shadow:inset 0 1px #607548,inset 0 -1px #607548}
html[data-theme="dark"] .grouped-geo-table tbody tr.is-selected td:first-child{box-shadow:inset 4px 0 #a5c46f,inset 0 1px #607548,inset 0 -1px #607548}
html[data-theme="dark"] .grouped-offer-tabs button.on,
html[data-theme="dark"] .wm-geo-selector button.on{background:#d7dece;color:#1c2118}
@media (max-width:700px){
  .grouped-geo-table{padding:12px}
  .grouped-selected-variant{align-items:flex-start;flex-direction:column}
  .grouped-offer-tabs{margin-left:-4px;margin-right:-4px}
  .grouped-offer-tabs button{flex:none}
  .grouped-economics{grid-template-columns:1fr}
  .grouped-leave-actions{flex-direction:column}
  .grouped-leave-actions button{width:100%}
  .wm-geo-selector{flex-wrap:nowrap;overflow-x:auto;padding-bottom:4px}
  .wm-geo-selector button{flex:none}
  .grouped-material-row{grid-template-columns:1fr auto}
  .grouped-material-row a{grid-column:1/-1}
}

/* Grouped webmaster GEO offer layout */
.wm-grouped-offer{width:100%;max-width:1400px;margin:0 auto;color:#22262b}
html[data-theme="dark"] .wm-grouped-offer{color:var(--text)}
.wm-offer-showcase{padding:24px}
.wm-offer-showcase .wm-offer-hero{grid-template-columns:minmax(220px,280px) minmax(300px,1fr) minmax(270px,330px);gap:28px;align-items:stretch}
.wm-offer-showcase .wm-offer-photo{width:100%;height:300px;align-self:center}
.wm-offer-showcase .wm-offer-photo img{object-fit:contain}
.wm-offer-center{display:flex;min-width:0;flex-direction:column}
.wm-offer-center .wm-offer-id h1{font-size:30px;font-weight:700;letter-spacing:-.025em}
.wm-offer-center .wm-geo-selector{margin:14px 0 0}
.wm-offer-center .wm-geo-selector button{display:inline-flex;align-items:center;gap:6px;height:36px;padding:0 13px;border-radius:7px}
.wm-offer-center .wm-geo-selector .geo-list{display:inline-flex}
.wm-offer-center .wm-geo-selector .geo-chip{margin:0}
.wm-offer-center .wm-offer-meta{margin-top:12px}
.wm-offer-rate-card{margin-top:22px;padding:18px;border-radius:8px;background:#f4f5f6}
.wm-offer-rate-card .wm-offer-rate{text-align:left}
.wm-offer-rate-card .wm-offer-rate strong{justify-content:flex-start;font-size:34px;line-height:1}
.wm-offer-rate-card .wm-offer-wait.is-ok{margin:12px 0 8px;color:#4f8c2f;font-weight:600}
.wm-offer-rate-card .wm-btn{margin-top:12px;border-radius:7px;background:var(--highlight);color:#233014;font-weight:700}
.wm-offer-rate-card .wm-btn:hover{background:var(--highlight)}
.wm-offer-rate-card .wm-btn.is-pending{border:1px solid #ead8ad;background:#fff7df;color:#8a6722;opacity:1;cursor:default}
.wm-offer-ss-action{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:12px}
.wm-offer-ss-action label{display:grid;gap:4px;color:#737b87;font-size:12px}
.wm-offer-ss-action input{width:100%;height:38px;padding:0 10px;border:1px solid #e4e7eb;border-radius:7px;background:#fff;color:#22262b}
.wm-offer-ss-action .wm-btn{grid-column:1/-1;margin-top:0}
.wm-offer-characteristics{display:flex;align-items:center;padding-left:20px;border-left:1px solid #e4e7eb}
.wm-offer-characteristics .wm-offer-facts{width:100%;gap:0}
.wm-offer-characteristics .wm-offer-facts div{grid-template-columns:minmax(100px,42%) minmax(0,1fr);padding:11px 0;border-bottom:1px solid #eceef1}
.wm-offer-characteristics .wm-offer-facts div:last-child{border-bottom:0}
.wm-offer-characteristics .wm-offer-facts dd{font-weight:600}
.wm-offer-lower{display:grid;grid-template-columns:minmax(0,2fr) minmax(300px,1fr);gap:18px;margin-top:18px}
.wm-offer-lower>.wm-offer-sheet{padding:22px 24px}
.wm-offer-lower h2{display:flex;align-items:center;gap:8px;margin:0 0 16px;font-size:20px}
.wm-offer-terms>.wm-offer-note+.wm-offer-note{margin-top:12px}
.wm-offer-source-row{display:grid;grid-template-columns:120px 1fr;gap:12px;align-items:start;margin-bottom:16px}
.wm-offer-source-row>span{color:#737b87}
.wm-offer-source-row>div{display:flex;flex-wrap:wrap;gap:8px}
.wm-offer-source-row b{padding:7px 11px;border:1px solid #e4e7eb;border-radius:999px;background:#fafafa;font-size:12px}
.wm-offer-materials{display:flex;min-height:220px;flex-direction:column}
.wm-material-list{display:grid;gap:9px}
.wm-material-list>a,.wm-material-list>div{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:5px 10px;padding:12px;border:1px solid #e4e7eb;border-radius:8px;color:inherit;text-decoration:none}
.wm-material-list small{grid-column:1/-1;color:#737b87}
.wm-offer-materials>.wm-offer-pid{margin-top:auto;padding-top:18px}
html[data-theme="dark"] .wm-offer-rate-card{background:#1c2118}
html[data-theme="dark"] .wm-offer-characteristics{border-color:var(--border)}
html[data-theme="dark"] .wm-offer-characteristics .wm-offer-facts div,
html[data-theme="dark"] .wm-material-list>a,
html[data-theme="dark"] .wm-material-list>div,
html[data-theme="dark"] .wm-offer-source-row b,
html[data-theme="dark"] .wm-offer-ss-action input{border-color:var(--border);background:var(--card);color:var(--text)}
@media (max-width:1100px){
  .wm-offer-showcase .wm-offer-hero{grid-template-columns:220px minmax(0,1fr)}
  .wm-offer-characteristics{grid-column:1/-1;padding:16px 0 0;border-top:1px solid #e4e7eb;border-left:0}
  .wm-offer-characteristics .wm-offer-facts{grid-template-columns:repeat(2,minmax(0,1fr));column-gap:24px}
}
@media (max-width:760px){
  .wm-offer-showcase{padding:16px}
  .wm-offer-showcase .wm-offer-hero,.wm-offer-lower{grid-template-columns:1fr}
  .wm-offer-showcase .wm-offer-photo{height:240px}
  .wm-offer-characteristics .wm-offer-facts{grid-template-columns:1fr}
  .wm-offer-source-row{grid-template-columns:1fr}
  .wm-offer-ss-action{grid-template-columns:1fr}
}
.wm-geo-pay{padding:22px 24px}
.wm-geo-pay h2{margin:0 0 10px;font-size:18px;font-weight:700}
.wm-geo-pay-wrap{overflow-x:auto}
.wm-geo-pay-table{width:100%;min-width:460px;border-collapse:separate;border-spacing:0 6px;font-size:14px}
.wm-geo-pay-table th{text-align:left;color:#737b87;font-size:12px;font-weight:600;text-transform:uppercase;letter-spacing:.04em;padding:2px 14px}
.wm-geo-pay-table td{padding:11px 14px;background:#f6f7f9;border-top:1px solid transparent;border-bottom:1px solid transparent;white-space:nowrap}
.wm-geo-pay-table td:first-child{border-left:1px solid transparent;border-radius:8px 0 0 8px}
.wm-geo-pay-table td:last-child{border-right:1px solid transparent;border-radius:0 8px 8px 0}
.wm-geo-pay-table tbody tr{cursor:pointer}
.wm-geo-pay-table tbody tr:hover td{background:#eef1f4}
.wm-geo-pay-table tbody tr:focus-visible{outline:2px solid #9bc53d;outline-offset:2px}
.wm-geo-pay-table tbody tr.on td{background:#f1f8e2;border-color:#c5e384}
.wm-geo-pay-rate{font-weight:700}
:where(html[data-theme="dark"]) .wm-geo-pay-table th{color:#B2ADA5}
:where(html[data-theme="dark"]) .wm-geo-pay-table td{background:#22201E}
:where(html[data-theme="dark"]) .wm-geo-pay-table tbody tr:hover td{background:#2A2825}
:where(html[data-theme="dark"]) .wm-geo-pay-table tbody tr.on td{background:#283019;border-color:#5f7a2a}

/* Webmaster card: compact GEO buttons + GEO payout table */
.wm-offer-center .wm-geo-selector{display:flex;flex-wrap:wrap;gap:6px;overflow:visible;padding-bottom:0}
.wm-offer-center .wm-geo-selector button{flex:none;display:inline-flex;align-items:center;gap:6px;height:30px;padding:0 10px;border:1px solid var(--border);border-radius:7px;background:transparent;color:var(--text);font:600 12px/1 var(--font,Manrope,sans-serif);letter-spacing:.02em}
.wm-offer-center .wm-geo-selector button:hover{border-color:#b9d879}
.wm-offer-center .wm-geo-selector button.on{border-color:#c5e384;background:#eef8d9;color:#25301c}
.wm-offer-center .wm-geo-selector .geo-flag{font-size:15px;line-height:1}
html[data-theme="dark"] .wm-offer-center .wm-geo-selector button{background:transparent;color:var(--text)}
html[data-theme="dark"] .wm-offer-center .wm-geo-selector button.on{border-color:#5f7a2a;background:#283019;color:#e8f2d4}
.wm-geo-pay-table{min-width:420px;border-collapse:collapse;border-spacing:0;font-size:13px}
.wm-geo-pay-table th{padding:0 12px 8px;border-bottom:1px solid var(--border);font-size:11px}
.wm-geo-pay-table td{padding:8px 12px;background:transparent;border:0;border-bottom:1px solid var(--border);border-radius:0}
.wm-geo-pay-table td:first-child,.wm-geo-pay-table td:last-child{border-left:0;border-right:0;border-radius:0}
.wm-geo-pay-table tbody tr:last-child td{border-bottom:0}
.wm-geo-pay-table th:nth-child(n+2),.wm-geo-pay-table td:nth-child(n+2){text-align:right;font-variant-numeric:tabular-nums}
.wm-geo-pay-table tbody tr:hover td{background:#f7f8f6}
.wm-geo-pay-table tbody tr.on td{background:#eef8d9;border-color:var(--border)}
.wm-geo-pay-rate{font-weight:700}
.wm-geo-pay-country{display:inline-flex;align-items:center;gap:8px;font-weight:500}
.wm-geo-pay-country .geo-flag{font-size:16px}
:where(html[data-theme="dark"]) .wm-geo-pay-table td{background:transparent}
:where(html[data-theme="dark"]) .wm-geo-pay-table tbody tr:hover td{background:#ffffff08}
:where(html[data-theme="dark"]) .wm-geo-pay-table tbody tr.on td{background:#283019;border-color:var(--border)}
@media (max-width:760px){
  .wm-geo-pay{padding:16px}
  .wm-geo-pay-table{min-width:0}
  .wm-geo-pay-table th,.wm-geo-pay-table td{padding-left:8px;padding-right:8px}
}
