/* tamPrime Marketplace: product-page offers, seller storefront, seller feedback page */
.mkt-feat { display: inline-block; margin-bottom: 6px; font-size: 11.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--tp-brand, #1127ad); background: #eef3ff; padding: 4px 10px; border-radius: 99px; }
.mkt-feat[hidden] { display: none; }
.mkt-dlv { display: grid; gap: 2px; margin: 10px 0 4px; font-size: 13.5px; line-height: 1.45; }
.mkt-dlv b { color: #0b7a44; font-weight: 800; } .mkt-dlv b em { font-style: normal; }
.mkt-dlv span { color: #59627a; font-size: 13px; }
.mkt-dlv[hidden] { display: none; }
.tp-buyfacts dd a { color: var(--tp-brand, #1127ad); font-weight: 800; text-decoration: none; }
.tp-buyfacts dd a:hover { text-decoration: underline; }
.mkt-by-rate { display: block; font-size: 12.5px; color: #59627a; margin-top: 1px; }
.mkt-stars { position: relative; display: inline-block; font-size: 12.5px; line-height: 1; letter-spacing: 1px; color: #d5dbe8; vertical-align: -1px; margin-right: 3px; }
.mkt-stars::before { content: "★★★★★"; }
.mkt-stars::after { content: "★★★★★"; position: absolute; left: 0; top: 0; width: var(--pct, 0%); overflow: hidden; white-space: nowrap; color: #f5b921; }
.mkt-muted { color: #6b7591; font-weight: 500; }
.mkt-new { font-size: 12px; font-weight: 700; color: #59627a; background: #eef1f6; padding: 2px 8px; border-radius: 99px; }
.mkt-other { margin-top: 12px; display: grid; gap: 2px; padding: 12px 14px; border: 1px solid #e3e7f0; border-radius: 14px; background: #fff; font-size: 13.5px; }
.mkt-other[hidden] { display: none; }
.mkt-other span { color: #59627a; }
.mkt-other a { margin-top: 4px; font-weight: 800; color: var(--tp-brand, #1127ad); text-decoration: none; }

.mkt-offers { margin: 28px 0 8px; padding: 22px; background: #fff; border: 1px solid #e3e7f0; border-radius: 20px; scroll-margin-top: 90px; }
.mkt-offers[hidden] { display: none; }
.mkt-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 14px; flex-wrap: wrap; margin-bottom: 14px; }
.mkt-head h2 { margin: 0; font-size: 22px; letter-spacing: -.01em; }
.mkt-head h2 span { color: #59627a; font-weight: 600; font-size: 16px; }
.mkt-head p { margin: 4px 0 0; color: #59627a; font-size: 13.5px; max-width: 560px; }
.mkt-filters { display: flex; gap: 8px; flex-wrap: wrap; }
.mkt-filters button { min-height: 38px; padding: 0 14px; border-radius: 99px; border: 1.5px solid #c9d3ea; background: #fff; color: #0f1c3f; font: inherit; font-weight: 700; font-size: 13.5px; cursor: pointer; }
.mkt-filters button.is-on { background: #0f1c3f; border-color: #0f1c3f; color: #fff; }
.mkt-cols, .mkt-row { display: grid; grid-template-columns: 1.05fr .95fr 1.35fr 1.15fr 236px; gap: 14px; align-items: center; }
.tp-chip[hidden] { display: none !important; }
.mkt-cols { padding: 0 14px 8px; font-size: 11.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: #6b7591; }
.mkt-rows { display: grid; gap: 8px; }
.mkt-row { padding: 14px; border: 1px solid #eef1f6; border-radius: 14px; transition: border-color .15s, background .15s; }
.mkt-row.is-on { border: 2px solid var(--tp-brand, #1127ad); background: #f5f8ff; padding: 13px; }
.mkt-row > div { display: grid; gap: 2px; min-width: 0; font-size: 14px; }
.mkt-row span { font-size: 12.5px; color: #59627a; }
.mkt-row em { font-style: normal; color: #b45309; font-weight: 700; }
.mkt-c-price b { font-size: 20px; letter-spacing: -.01em; }
.mkt-c-seller a { color: var(--tp-brand, #1127ad); font-weight: 800; text-decoration: none; }
.mkt-c-seller a:hover { text-decoration: underline; }
.mkt-c-seller .mkt-rate { display: flex; align-items: center; gap: 2px; flex-wrap: wrap; }
.mkt-badge { display: inline-flex !important; align-items: center; gap: 4px; font-size: 11.5px !important; font-weight: 700; color: var(--tp-brand, #1127ad) !important; }
.mkt-badge svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.mkt-c-dlv b { color: #0b7a44; font-size: 13.5px; }
.mkt-c-act { display: flex !important; gap: 8px; justify-content: flex-end; }
.mkt-c-act .mkt-pick { min-width: 104px; }
.mkt-add, .mkt-pick { min-height: 40px; padding: 0 14px; border-radius: 99px; font: inherit; font-weight: 800; font-size: 13.5px; cursor: pointer; white-space: nowrap; }
.mkt-add { border: 0; background: #ffc81f; color: #1d1a05; }
.mkt-pick { border: 1.5px solid var(--tp-brand, #1127ad); background: #fff; color: var(--tp-brand, #1127ad); }
.mkt-pick.is-on { border-color: transparent; background: #e7f6ee; color: #0b7a44; }
.mkt-empty { color: #59627a; } .mkt-empty button { border: 0; background: none; color: var(--tp-brand, #1127ad); font: inherit; font-weight: 800; cursor: pointer; }
.mkt-fine { margin: 12px 0 0; font-size: 12.5px; color: #6b7591; }
@media (max-width: 860px) {
  .mkt-offers { padding: 16px; border-radius: 16px; margin-left: 0; margin-right: 0; }
  .mkt-cols { display: none; }
  .mkt-row { grid-template-columns: 1fr 1fr; gap: 8px 12px; }
  .mkt-c-seller, .mkt-c-dlv { grid-column: span 1; }
  .mkt-c-act { grid-column: 1 / -1; }
  .mkt-c-act button { flex: 1; }
}

/* ---------- seller storefront ---------- */
.sf { max-width: 1240px; margin: 0 auto; padding: 18px 20px 48px; color: #0f1c3f; }
.sf-top { background: #fff; border: 1px solid #e3e7f0; border-radius: 22px; overflow: hidden; }
.sf-banner { height: 170px; background: linear-gradient(120deg, #1127ad 0%, #3d5be0 55%, #8fb3ff 100%); background-size: cover; background-position: center; position: relative; }
.sf-banner::after { content: ""; position: absolute; inset: 0; background: radial-gradient(240px 240px at 88% 20%, rgba(255,255,255,.22), transparent 70%), radial-gradient(200px 200px at 72% 120%, rgba(255,200,31,.35), transparent 70%); }
.sf-banner.has-img::after { display: none; }
.sf-id { display: flex; gap: 20px; align-items: flex-end; padding: 0 26px 20px; margin-top: -46px; flex-wrap: wrap; position: relative; }
.sf-logo { width: 104px; height: 104px; border-radius: 24px; background: #fff; border: 4px solid #fff; box-shadow: 0 10px 26px rgba(17,39,173,.18); display: grid; place-items: center; font-weight: 800; font-size: 32px; color: #1127ad; overflow: hidden; flex: none; }
.sf-logo img { width: 100%; height: 100%; object-fit: cover; }
.sf-who { flex: 1; min-width: 260px; display: grid; gap: 6px; padding-top: 52px; }
.sf-who h1 { margin: 0; font-size: 28px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.sf-ver { display: inline-flex; align-items: center; gap: 6px; background: #eef3ff; color: #1127ad; font-weight: 800; font-size: 12.5px; padding: 4px 10px; border-radius: 99px; }
.sf-ver svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.sf-meta { display: flex; gap: 14px; font-size: 14px; color: #59627a; flex-wrap: wrap; align-items: center; }
.sf-meta b { color: #0f1c3f; }
.sf-btns { display: flex; gap: 10px; flex-wrap: wrap; }
.sf-btn { min-height: 44px; padding: 0 20px; border-radius: 99px; border: 0; background: #1127ad; color: #fff; font: inherit; font-weight: 800; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; text-decoration: none; }
.sf-btn.is-ghost { background: #fff; color: #0f1c3f; border: 1.5px solid #c9d3ea; }
.sf-btn.is-on { background: #e7f6ee; color: #0b7a44; }
.sf-tabs { display: flex; gap: 26px; padding: 0 26px; border-top: 1px solid #eef1f6; font-weight: 700; font-size: 15px; overflow-x: auto; }
.sf-tabs a { padding: 14px 0; color: #59627a; text-decoration: none; border-bottom: 3px solid transparent; white-space: nowrap; }
.sf-tabs a[aria-current="page"] { color: #1127ad; border-bottom-color: #1127ad; }
.sf-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 16px 0; }
.sf-stat { background: #fff; border: 1px solid #e3e7f0; border-radius: 16px; padding: 14px 16px; display: grid; gap: 2px; }
.sf-stat span { font-size: 11.5px; font-weight: 800; letter-spacing: .05em; color: #59627a; text-transform: uppercase; }
.sf-stat b { font-size: 24px; letter-spacing: -.01em; }
.sf-stat small { font-size: 12.5px; color: #59627a; }
.sf-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.sf-card { background: #fff; border: 1px solid #e3e7f0; border-radius: 16px; padding: 10px; display: flex; flex-direction: column; gap: 6px; text-decoration: none; color: inherit; transition: transform .15s, box-shadow .15s; }
.sf-card:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(15,28,63,.08); }
.sf-card .im { aspect-ratio: 1; border-radius: 12px; background: #f1f4fb; display: grid; place-items: center; overflow: hidden; position: relative; }
.sf-card .im img { width: 100%; height: 100%; object-fit: contain; }
.sf-card .tag { position: absolute; top: 8px; left: 8px; background: #0f1c3f; color: #fff; font-size: 11px; font-weight: 800; padding: 3px 8px; border-radius: 99px; }
.sf-card .t { font-size: 13.5px; font-weight: 600; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 36px; }
.sf-card .p { font-size: 18px; font-weight: 800; }
.sf-card .s { font-size: 12px; color: #0b7a44; font-weight: 700; }
.sf-empty { background: #fff; border: 1px dashed #c9d3ea; border-radius: 16px; padding: 28px; text-align: center; color: #59627a; }
.sf-two { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: 18px; align-items: start; }
.sf-box { background: #fff; border: 1px solid #e3e7f0; border-radius: 18px; padding: 18px; }
.sf-box h2 { margin: 0 0 10px; font-size: 18px; }
.sf-big { display: flex; align-items: baseline; gap: 8px; } .sf-big b { font-size: 40px; letter-spacing: -.02em; }
.sf-bars { display: grid; gap: 6px; margin-top: 10px; }
.sf-bar { display: grid; grid-template-columns: 52px 1fr 40px; gap: 8px; align-items: center; font-size: 13px; color: #3d4763; }
.sf-bar i { height: 8px; border-radius: 99px; background: #eef1f6; overflow: hidden; } .sf-bar i b { display: block; height: 100%; background: #f5b921; border-radius: 99px; }
.sf-qs { display: grid; gap: 8px; margin-top: 14px; font-size: 13.5px; }
.sf-qs div { display: flex; justify-content: space-between; } .sf-qs b { color: #0b7a44; }
.sf-fb { display: grid; gap: 10px; }
.sf-fb article { border-bottom: 1px solid #eef1f6; padding: 12px 0; display: grid; gap: 6px; }
.sf-fb article:last-child { border-bottom: 0; }
.sf-fb .h { display: flex; gap: 10px; align-items: center; font-size: 13px; color: #59627a; flex-wrap: wrap; }
.sf-fb .h b { color: #0f1c3f; }
.sf-fb p { margin: 0; font-size: 14.5px; line-height: 1.55; white-space: pre-line; }
.sf-fb .chips { display: flex; gap: 6px; flex-wrap: wrap; }
.sf-fb .chips span { font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 99px; background: #e7f6ee; color: #0b7a44; }
.sf-fb .chips span.no { background: #fdecee; color: #b3122f; }
.sf-fb .reply { margin-left: 14px; padding: 10px 12px; border-left: 3px solid #c9d3ea; background: #f7f9fe; border-radius: 0 10px 10px 0; font-size: 13.5px; }
.sf-about { display: grid; gap: 12px; font-size: 14.5px; line-height: 1.6; }
.sf-facts { display: grid; grid-template-columns: auto 1fr; gap: 8px 18px; font-size: 14px; }
.sf-facts dt { color: #59627a; } .sf-facts dd { margin: 0; font-weight: 600; }
.sf-msg { display: grid; gap: 10px; }
.sf-msg textarea { width: 100%; box-sizing: border-box; min-height: 110px; border: 1.5px solid #c9d3ea; border-radius: 12px; padding: 12px; font: inherit; }
.sf-filter { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.sf-filter a { padding: 6px 12px; border-radius: 99px; border: 1.5px solid #c9d3ea; color: #0f1c3f; text-decoration: none; font-size: 13px; font-weight: 700; }
.sf-filter a.is-on { background: #0f1c3f; border-color: #0f1c3f; color: #fff; }
@media (max-width: 900px) {
  .sf { padding: 12px 16px 40px; }
  .sf-banner { height: 120px; }
  .sf-id { padding: 0 16px 16px; margin-top: -40px; }
  .sf-logo { width: 84px; height: 84px; border-radius: 20px; font-size: 26px; }
  .sf-who { padding-top: 6px; min-width: 0; flex-basis: 100%; }
  .sf-who h1 { font-size: 23px; }
  .sf-tabs { padding: 0 16px; gap: 20px; }
  .sf-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sf-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sf-two { grid-template-columns: 1fr; }
}

/* ---------- feedback page ---------- */
.fbk { max-width: 640px; margin: 0 auto; padding: 28px 20px 56px; color: #0f1c3f; }
.fbk-card { background: #fff; border: 1px solid #e3e7f0; border-radius: 22px; padding: 26px; display: grid; gap: 16px; box-shadow: 0 14px 40px rgba(15,28,63,.06); }
.fbk h1 { margin: 0; font-size: 26px; }
.fbk-items { display: grid; gap: 8px; }
.fbk-item { display: flex; gap: 12px; align-items: center; font-size: 14px; }
.fbk-item img, .fbk-item i { width: 52px; height: 52px; border-radius: 10px; background: #f1f4fb; object-fit: contain; flex: none; border: 1px solid #eef1f6; }
.fbk-stars { display: flex; gap: 6px; direction: rtl; justify-content: flex-end; }
.fbk-stars input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.fbk-stars label { font-size: 40px; line-height: 1; color: #d5dbe8; cursor: pointer; transition: transform .1s; }
.fbk-stars label:hover, .fbk-stars label:hover ~ label, .fbk-stars input:checked ~ label { color: #f5b921; }
.fbk-stars input:focus-visible + label { outline: 3px solid #1127ad; outline-offset: 2px; border-radius: 6px; }
.fbk-q { display: grid; gap: 8px; }
.fbk-q > b { font-size: 15px; }
.fbk-yn { display: flex; gap: 8px; }
.fbk-yn label { flex: 1; }
.fbk-yn input { position: absolute; opacity: 0; }
.fbk-yn span { display: flex; justify-content: center; align-items: center; min-height: 46px; border: 1.5px solid #c9d3ea; border-radius: 12px; font-weight: 800; cursor: pointer; }
.fbk-yn input:checked + span { border-color: #1127ad; background: #eef3ff; color: #1127ad; }
.fbk-yn input:focus-visible + span { outline: 3px solid #1127ad; outline-offset: 2px; }
.fbk textarea { width: 100%; box-sizing: border-box; min-height: 110px; border: 1.5px solid #c9d3ea; border-radius: 12px; padding: 12px; font: inherit; font-size: 15px; }
.fbk-go { min-height: 52px; border: 0; border-radius: 99px; background: #1127ad; color: #fff; font: inherit; font-weight: 800; font-size: 16px; cursor: pointer; }
.fbk-err { color: #b3122f; font-weight: 700; margin: 0; }
.fbk-done { text-align: center; display: grid; gap: 10px; justify-items: center; }
.fbk-done i { width: 64px; height: 64px; border-radius: 50%; background: #e7f6ee; color: #0b7a44; display: grid; place-items: center; font-style: normal; font-size: 30px; font-weight: 800; }

/* order page: packages from sellers */
.mkt-pk { border: 1px solid #e3e7f0; border-radius: 14px; padding: 12px 14px; display: grid; gap: 6px; margin-top: 10px; background: #fff; }
.mkt-pk-h { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; font-size: 14px; }
.mkt-pk-h a { color: #1127ad; font-weight: 800; text-decoration: none; }
.mkt-pk span { font-size: 13px; color: #59627a; }
.mkt-pk .rate { justify-self: start; min-height: 38px; padding: 0 14px; border-radius: 99px; background: #ffc81f; color: #1d1a05; font-weight: 800; text-decoration: none; display: inline-flex; align-items: center; font-size: 13.5px; }

/* skins */
.skin-sky .mkt-offers, .skin-sky .mkt-other, .skin-sky .sf-top, .skin-sky .sf-stat, .skin-sky .sf-card, .skin-sky .sf-box, .skin-sky .fbk-card { background: var(--sk-glass, rgba(255,255,255,.62)); -webkit-backdrop-filter: blur(18px) saturate(1.4); backdrop-filter: blur(18px) saturate(1.4); border-color: var(--sk-edge, rgba(255,255,255,.85)); box-shadow: var(--sk-shadow, none); }
.skin-sky .mkt-row.is-on { background: rgba(255,255,255,.8); border-color: #0b8fe0; }
.skin-sky .mkt-pick, .skin-sky .sf-btn.is-ghost { border-color: #0b8fe0; color: #0b5fae; }
.skin-sky .sf-btn, .skin-sky .fbk-go { background: #0b8fe0; }
.skin-sky .sf-banner { background-color: #0b8fe0; background-image: linear-gradient(120deg, #0b5fae 0%, #0b8fe0 55%, #9fd6ff 100%); }
.skin-clean .mkt-offers, .skin-clean .sf-top, .skin-clean .sf-stat, .skin-clean .sf-card, .skin-clean .sf-box { box-shadow: none; }

/* "Have one to sell?" under the buy box */
.mkt-sellthis{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;margin-top:12px;padding:10px 12px;border:1px dashed #d5dbea;border-radius:12px;font-size:13.5px;color:#59627a}
.mkt-sellthis a{display:inline-flex;align-items:center;height:32px;padding:0 14px;border-radius:99px;border:1.5px solid #1127ad;color:#1127ad;font-weight:800;text-decoration:none;white-space:nowrap}
.mkt-sellthis a:hover{background:#1127ad;color:#fff}
