:root {
--stc-ink: #17231d;
--stc-muted: #637069;
--stc-line: #dbe3de;
--stc-surface: #ffffff;
--stc-soft: #f3f7f4;
--stc-accent: #176b45;
--stc-accent-soft: #e5f3eb;
--stc-star: #e9a723;
--stc-radius: 16px;
}
.stc,
.stc * {
box-sizing: border-box;
}
.stc {
position: relative;
display: grid;
grid-template-columns: auto minmax(0, 1.2fr) minmax(0, 1fr);
gap: 14px 18px;
align-items: center;
width: 100%;
margin: 18px 0;
padding: 18px;
border: 1px solid var(--stc-line);
border-radius: var(--stc-radius);
background: var(--stc-surface);
color: var(--stc-ink);
font: inherit;
box-shadow: 0 10px 26px rgba(23, 35, 29, 0.06);
}
.stc.is-loading {
opacity: 0.58;
}
.stc__brand {
display: grid;
place-items: center;
align-self: start;
width: 38px;
height: 38px;
border-radius: 11px;
background: var(--stc-accent);
color: #fff;
font-size: 23px;
font-weight: 700;
line-height: 1;
}
.stc__product,
.stc__seller {
min-width: 0;
}
.stc__seller {
padding-left: 18px;
border-left: 1px solid var(--stc-line);
}
.stc__eyebrow,
.stc__seller-name,
.stc__count,
.stc__seller-stats,
.stc-modal__note,
.stc-modal__updated {
margin: 0;
}
.stc__eyebrow {
margin-bottom: 6px;
color: var(--stc-muted);
font-size: 12px;
font-weight: 700;
letter-spacing: 0.06em;
line-height: 1.35;
text-transform: uppercase;
}
.stc__score-row {
display: flex;
align-items: center;
gap: 10px;
flex-wrap: wrap;
}
.stc__score {
font-size: 18px;
line-height: 1.2;
}
.stc__count,
.stc__seller-stats {
margin-top: 4px;
color: var(--stc-muted);
font-size: 13px;
line-height: 1.45;
}
.stc__seller-name {
font-size: 15px;
font-weight: 750;
letter-spacing: 0.03em;
}
.stc__badge {
display: inline-flex;
align-items: center;
gap: 5px;
margin-top: 8px;
padding: 4px 8px;
border-radius: 999px;
background: var(--stc-accent-soft);
color: var(--stc-accent);
font-size: 12px;
font-weight: 700;
line-height: 1.3;
}
.stc__footer {
display: flex;
grid-column: 2 / -1;
align-items: center;
justify-content: space-between;
gap: 12px;
padding-top: 12px;
border-top: 1px solid var(--stc-line);
}
.stc__freshness {
display: inline-flex;
align-items: center;
gap: 7px;
color: var(--stc-muted);
font-size: 12px;
}
.stc__pulse {
width: 7px;
height: 7px;
border-radius: 50%;
background: var(--stc-accent);
}
.stc__freshness--stale .stc__pulse {
background: var(--stc-star);
}
.stc__details {
appearance: none;
min-height: 36px;
padding: 4px 2px;
border: 0;
background: transparent;
color: var(--stc-accent);
cursor: pointer;
font: inherit;
font-size: 13px;
font-weight: 700;
}
.stc__details:hover {
text-decoration: underline;
}
.stc__details:focus-visible,
.stc-modal__close:focus-visible {
outline: 3px solid rgba(23, 107, 69, 0.28);
outline-offset: 3px;
}
.stc-stars {
position: relative;
display: inline-block;
font-size: 20px;
font-weight: 700;
letter-spacing: 1px;
line-height: 1;
white-space: nowrap;
}
.stc-stars__base {
color: #d9dedb;
}
.stc-stars__fill {
position: absolute;
top: 0;
left: 0;
display: block;
overflow: hidden;
color: var(--stc-star);
}
.stc--cart,
.stc--home {
grid-template-columns: auto minmax(0, 1fr);
}
.stc--cart .stc__seller,
.stc--home .stc__seller {
padding-left: 0;
border-left: 0;
}
.stc--cart .stc__footer,
.stc--home .stc__footer {
grid-column: 2;
}
.stc--cart {
padding: 15px;
box-shadow: none;
}
.stc-modal[hidden] {
display: none;
}
.stc-modal {
position: fixed;
z-index: 99999;
inset: 0;
display: grid;
place-items: center;
padding: 20px;
}
.stc-modal__backdrop {
position: absolute;
inset: 0;
background: rgba(11, 18, 14, 0.58);
backdrop-filter: blur(2px);
}
.stc-modal__panel {
position: relative;
z-index: 1;
width: min(100%, 480px);
max-height: calc(100vh - 40px);
overflow: auto;
padding: 26px;
border-radius: 18px;
background: var(--stc-surface);
box-shadow: 0 24px 70px rgba(0, 0, 0, 0.22);
}
.stc-modal__close {
position: absolute;
top: 14px;
right: 14px;
display: grid;
place-items: center;
width: 38px;
height: 38px;
padding: 0;
border: 1px solid var(--stc-line);
border-radius: 50%;
background: var(--stc-surface);
color: var(--stc-ink);
cursor: pointer;
font: inherit;
font-size: 25px;
font-weight: 400;
line-height: 1;
}
.stc-modal__title {
margin: 0 44px 20px 0;
color: var(--stc-ink);
font-size: 23px;
line-height: 1.25;
}
.stc-modal__summary {
display: flex;
align-items: center;
gap: 14px;
margin-bottom: 22px;
padding: 16px;
border-radius: 13px;
background: var(--stc-soft);
}
.stc-modal__summary > strong {
font-size: 38px;
line-height: 1;
}
.stc-modal__summary > div {
display: grid;
gap: 5px;
}
.stc-modal__summary > div > span:last-child {
color: var(--stc-muted);
font-size: 12px;
}
.stc-distribution {
display: grid;
gap: 10px;
}
.stc-distribution__row {
display: grid;
grid-template-columns: 34px minmax(0, 1fr) 36px;
gap: 10px;
align-items: center;
font-size: 13px;
}
.stc-distribution__track {
height: 8px;
overflow: hidden;
border-radius: 999px;
background: #e5e9e6;
}
.stc-distribution__track span {
display: block;
height: 100%;
border-radius: inherit;
background: var(--stc-star);
}
.stc-distribution__count {
color: var(--stc-muted);
text-align: right;
}
.stc-modal__note {
margin-top: 22px;
padding-top: 16px;
border-top: 1px solid var(--stc-line);
color: var(--stc-muted);
font-size: 12px;
line-height: 1.55;
}
.stc-modal__updated {
margin-top: 8px;
color: var(--stc-muted);
font-size: 12px;
}
body.stc-modal-open {
overflow: hidden;
}
@media (max-width: 650px) {
.stc {
grid-template-columns: auto minmax(0, 1fr);
gap: 13px;
padding: 15px;
}
.stc__seller {
grid-column: 2;
padding: 13px 0 0;
border-top: 1px solid var(--stc-line);
border-left: 0;
}
.stc__footer,
.stc--cart .stc__footer,
.stc--home .stc__footer {
grid-column: 1 / -1;
}
.stc-modal {
align-items: end;
padding: 10px;
}
.stc-modal__panel {
max-height: calc(100vh - 20px);
padding: 22px 18px;
border-radius: 18px 18px 12px 12px;
}
}
@media (prefers-reduced-motion: no-preference) {
.stc-modal__panel {
animation: stc-enter 160ms ease-out;
}
}
@keyframes stc-enter {
from { transform: translateY(8px); opacity: 0; }
to { transform: translateY(0); opacity: 1; }
}