/* Price-discount promos: struck-through prices, badges, the promo form in Store Management.
   Uses the site color tokens (--green, --tint, --line, --ink, --muted) with fallbacks. */
.price-line{display:inline-flex;align-items:baseline;gap:6px;flex-wrap:wrap}
.price-promo{color:#c2410c !important}
.price-old{color:#8a9a95;font-size:.82em;font-weight:500;text-decoration:line-through}
.product-card .media{position:relative}
.promo-tag{position:absolute;left:8px;bottom:8px;z-index:2;background:#dc2626;color:#fff!important;font-size:11px;font-weight:800;line-height:1;padding:5px 8px;border-radius:999px;box-shadow:0 1px 3px rgba(0,0,0,.2)}
.promo-tag.inline{color:#fff!important;text-decoration:none;position:static;display:inline-block;vertical-align:middle;padding:3px 7px;box-shadow:none}
.price-old-line{margin:-2px 0 6px;font-size:14px}
.price-old-line[hidden]{display:none}
.detail-info .price[data-detail-price]{color:#c2410c}
.detail-promo-box{display:grid;gap:8px;margin:10px 0 12px}
.detail-promo-item{display:flex;gap:10px;align-items:center;padding:9px 11px;border:1px dashed #f0b7a3;background:#fff7f3;border-radius:10px}
.detail-promo-item .promo-badge{flex:0 0 28px;height:28px;border-radius:8px;display:grid;place-items:center;background:#ffe4d9;color:#c2410c;font-weight:800;font-size:13px}
.detail-promo-item b{display:block;font-size:13px;color:#7c2d12}
.detail-promo-item small{display:block;font-size:12px;color:#9a5b45}
.promo-scope-chip{display:inline-block;margin-top:3px;font-size:11px;font-weight:700;color:var(--green,#087760);background:var(--tint,#f4faf8);border:1px solid var(--tint-line,#e2eee9);border-radius:999px;padding:2px 8px}
.promo-scope-note{display:block;margin-top:2px;color:var(--green,#087760) !important;font-weight:600}
.promo-scope-note.is-info{color:#8a6a1d !important}
.pf-promo-tag{display:inline-block;margin-left:6px;font-style:normal;font-size:11px;font-weight:700;color:#c2410c;background:#fff1ea;border-radius:999px;padding:2px 8px}

/* Promo form (modal) */
#modalAddPromo .profile-modal-card{max-height:92vh;overflow-y:auto}
.promo-fs{border:1px solid var(--line,#e3ece9);border-radius:10px;padding:10px 12px 12px;margin:0 0 12px;min-width:0}
.promo-fs legend{font-size:12px;font-weight:800;color:var(--green,#087760);padding:0 6px;letter-spacing:.2px}
.promo-hint{margin:6px 0 0;font-size:12px;color:var(--muted,#6b7f78);line-height:1.5}
.promo-scope-opts{display:flex;gap:16px;flex-wrap:wrap;margin-bottom:8px}
.promo-radio{display:inline-flex !important;align-items:center;gap:7px;font-weight:600;cursor:pointer}
.promo-radio input{width:auto !important;margin:0}
.promo-prod-tools{display:flex;gap:8px;align-items:center;margin-bottom:8px;flex-wrap:wrap}
.promo-prod-tools span{font-size:12px;color:var(--muted,#6b7f78);margin-left:auto}
.promo-prod-list{max-height:220px;overflow-y:auto;border:1px solid var(--line,#e3ece9);border-radius:8px;background:#fff}
.promo-prod{display:flex !important;align-items:center;gap:10px;padding:8px 10px;border-bottom:1px solid var(--line,#eef3f1);cursor:pointer;margin:0 !important}
.promo-prod:last-child{border-bottom:0}
.promo-prod:hover{background:var(--tint,#f4faf8)}
.promo-prod input{width:auto !important;margin:0;flex:0 0 auto}
.promo-prod span{display:block;min-width:0}
.promo-prod b{display:block;font-size:13px;font-weight:700;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.promo-prod small{display:block;font-size:12px;color:var(--muted,#6b7f78)}

/* Discount badge text is always white (not overridden by span/small colors in .order-item, .cart-line, etc.). */
.promo-tag,.promo-tag.inline,.order-item .promo-tag,.order-product .promo-tag,.cart-line .promo-tag,.product-card .promo-tag{color:#fff!important}

/* ===== Product Management list (Store Management > Products): tidy, compact promo badges ===== */
.pf-promo-tag{display:none!important}
.dashboard-product-row{grid-template-columns:56px minmax(0,1fr) auto auto;gap:6px 14px;padding:10px 12px;align-items:center}
.dashboard-product-row>img{width:56px;height:56px;border-radius:8px}
.dashboard-product-main{display:flex;flex-direction:column;gap:3px;min-width:0}
.dashboard-product-main b{font-size:13px;margin:0}
.dashboard-product-main .dpm-sub{display:flex;align-items:center;gap:6px;margin:0;font-size:11px;color:#6f8580}
.dpm-dot{width:3px;height:3px;border-radius:50%;background:#b7c6c1;flex:0 0 auto}
.dpm-status{font-style:normal;font-weight:600;color:var(--green,#087760)}
.dpm-status.archived,.dpm-status.draft{color:#8a9a95}
.pf-promo-badge{display:inline-flex;align-items:center;gap:4px;align-self:flex-start;margin:2px 0 0!important;padding:2px 8px 2px 6px;border-radius:999px;background:#fff1ea;color:#c2410c!important;font-size:10.5px!important;font-weight:800;line-height:1.4;white-space:nowrap}
.dashboard-product-meta{display:flex;flex-direction:column;align-items:flex-end;gap:4px}
.dashboard-product-meta strong{font-size:13px;color:var(--green,#087760);white-space:nowrap}
.dashboard-product-row .dashboard-row-actions{flex-wrap:nowrap}
.dashboard-product-row .dashboard-row-actions form{display:inline-flex;margin:0}
@media(max-width:1000px){
  .dashboard-product-row{grid-template-columns:56px minmax(0,1fr) auto}
  .dashboard-product-row .dashboard-row-actions{grid-column:1/-1}
}
@media(max-width:700px){
  .dashboard-product-row{grid-template-columns:56px minmax(0,1fr);gap:8px 12px;padding:10px}
  .dashboard-product-meta{grid-column:2;flex-direction:row;align-items:center;justify-content:space-between;gap:8px}
  .dashboard-product-row .dashboard-row-actions{grid-column:1/-1;display:grid;grid-template-columns:1fr auto;gap:8px;border-top:1px solid #edf2f0;padding-top:9px;justify-content:stretch}
  .dashboard-product-row .dashboard-row-actions .btn{width:100%;justify-content:center;text-align:center;padding:9px 14px}
  .dashboard-product-row .dashboard-row-actions form .btn{padding:9px 18px}
}
