/* QuickPrice - price update card (product page + admin) */
.qpc-wrap { margin: 24px 0; }
.qpc {
  --qpc-c: #2563eb;
  direction: rtl; text-align: right;
  background: #fff; border: 1px solid #e5e7eb; border-right: 6px solid var(--qpc-c);
  border-radius: 14px; box-shadow: 0 4px 18px rgba(15, 23, 42, .07);
  padding: 16px 18px 14px; max-width: 680px; box-sizing: border-box; color: #111827;
  font-family: inherit;
}
.qpc-up { --qpc-c: #16a34a; background: linear-gradient(135deg, #f0fdf4 0%, #fff 55%); }
.qpc-down { --qpc-c: #dc2626; background: linear-gradient(135deg, #fef2f2 0%, #fff 55%); }
.qpc-same { --qpc-c: #6b7280; background: linear-gradient(135deg, #f3f4f6 0%, #fff 55%); }
.qpc-first { --qpc-c: #2563eb; background: linear-gradient(135deg, #eff6ff 0%, #fff 55%); }
.qpc * { box-sizing: border-box; }
.qpc-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.qpc-title { font-weight: 700; font-size: 15px; color: #374151; }
.qpc-date { background: #fff; border: 1px solid #e5e7eb; border-radius: 999px; padding: 3px 12px; font-size: 13px; color: #374151; white-space: nowrap; }
.qpc-date b { font-weight: 700; margin-left: 6px; }
.qpc-date i { font-style: normal; color: #6b7280; }
.qpc-body { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.qpc-price { font-size: 26px; font-weight: 800; line-height: 1.3; }
.qpc-price small { font-size: 13px; font-weight: 600; color: #6b7280; margin-right: 6px; }
.qpc-change { display: flex; align-items: center; gap: 8px; color: var(--qpc-c); }
.qpc-arrow { flex: none; }
.qpc-ctext { display: flex; flex-direction: column; line-height: 1.5; }
.qpc-ctext b { font-size: 14px; }
.qpc-ctext em { font-style: normal; font-size: 13px; direction: ltr; text-align: right; }
.qpc-prev { margin-top: 6px; font-size: 12.5px; color: #6b7280; }
.qpc-chart { margin-top: 10px; direction: ltr; }
.qpc-svg { width: 100%; height: auto; display: block; font-family: inherit; }
.qpc-foot { font-size: 12px; color: #9ca3af; margin-top: 2px; text-align: center; }
@media (max-width: 480px) {
  .qpc { padding: 12px; }
  .qpc-price { font-size: 21px; }
}

/* ---- placement: above the "More info" bar -> same width as the bar ---- */
.qpc-wrap[data-pos="above"] { margin: 0 0 18px; clear: both; width: 100%; box-sizing: border-box; }
.qpc-wrap[data-pos="above"] .qpc { max-width: none; width: 100%; }
.qpc-wrap[data-pos="footer"] .qpc { max-width: 680px; }

/* ---- lowest recorded price ---- */
.qpc-low { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin-top: 8px; padding: 6px 10px; background: rgba(15,23,42,.04); border-radius: 8px; font-size: 13px; }
.qpc-low-t { color: #475569; font-weight: 600; }
.qpc-low b { color: #0f766e; font-size: 14px; }
.qpc-low small { color: #94a3b8; }
.qpc-lowbadge { background: #dcfce7; color: #15803d; border-radius: 999px; padding: 1px 10px; font-size: 12px; font-weight: 700; }

/* ---- "no fluctuation" ---- */
.qpc-chart { position: relative; }
.qpc-flatbadge { position: absolute; top: 6px; right: 8px; z-index: 2; display: inline-flex; align-items: center; gap: 6px; background: #fff; border: 1px solid #e5e7eb; border-radius: 999px; padding: 2px 12px 2px 6px; font-size: 12.5px; color: #4b5563; font-weight: 700; direction: rtl; }
.qpc-flatbadge .qpc-arrow { width: 20px; height: 20px; }

/* ---- date strip under the price: little bricks that beat like a heart ---- */

/* ===== price change chart (qpp) ===== */
.qpp-wrap { margin: 20px 0; }
.qpp { direction: rtl; background: #fff; border: 1px solid #e5e7eb; border-radius: 16px; box-shadow: 0 4px 18px rgba(15,23,42,.06); padding: 16px 18px 12px; box-sizing: border-box; color: #111827; font-family: inherit; }
.qpp * { box-sizing: border-box; }
.qpp-head { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; margin-bottom: 14px; }
.qpp-title { font-size: 16px; font-weight: 800; }
.qpp-tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.qpp-tabs button { border: 1px solid #d1d5db; background: #fff; color: #374151; border-radius: 999px; padding: 5px 16px; font-size: 13px; cursor: pointer; line-height: 1.5; font-family: inherit; }
.qpp-tabs button.on { background: #0f766e; border-color: #0f766e; color: #fff; font-weight: 700; }
.qpp-stats { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; margin-bottom: 10px; }
.qpp-st { display: flex; flex-direction: column; gap: 4px; min-width: 110px; }
.qpp-st span { font-size: 12px; color: #6b7280; }
.qpp-st b { font-size: 14px; font-weight: 800; direction: rtl; }
.qpp-st b.qpp-big { font-size: 16px; }
.qpp-up { color: #16a34a; font-style: normal; } .qpp-dn { color: #dc2626; font-style: normal; } .qpp-eq { color: #6b7280; font-style: normal; }
.qpp-st i { font-size: 10px; margin-left: 4px; }
.qpp-chart { direction: ltr; }
.qpp-chart svg { width: 100%; height: auto; display: block; }
@media (max-width: 600px) { .qpp { padding: 12px 10px 8px; } .qpp-st { min-width: 45%; } .qpp-tabs button { padding: 4px 11px; font-size: 12px; } }

/* ===== price update card under the product image (qps) ===== */
.qps-wrap { clear: both; width: 100%; box-sizing: border-box; margin: 14px 0; }
.qps { --qs: #16a34a; --qs-bg: #ecf7f0; --qs-bd: #b7e0c5; --qs-tx: #14532d; direction: rtl; width: 100%; box-sizing: border-box; position: relative; overflow: hidden;
  display: flex; align-items: center; gap: 16px; padding: 16px 18px; border-radius: 22px; background: var(--qs-bg); border: 1.5px solid var(--qs-bd);
  font-family: inherit; animation: qps-float 3.2s ease-in-out infinite; }
.qps * { box-sizing: border-box; }
.qps::after { content: ""; position: absolute; top: 0; bottom: 0; width: 45%; left: -60%; background: linear-gradient(100deg, transparent, rgba(255,255,255,.65), transparent); animation: qps-shine 4.5s ease-in-out infinite; pointer-events: none; }
.qps-up { --qs: #16a34a; --qs-bg: #ecf7f0; --qs-bd: #b7e0c5; --qs-tx: #14532d; }
.qps-down { --qs: #dc2626; --qs-bg: #fdeeee; --qs-bd: #f3bcbc; --qs-tx: #7f1d1d; }
.qps-same { --qs: #374151; --qs-bg: #eef0f3; --qs-bd: #c9ced6; --qs-tx: #1f2937; }
.qps-first { --qs: #2563eb; --qs-bg: #eef4ff; --qs-bd: #bcd0f5; --qs-tx: #1e3a8a; }
.qps-ico { flex: none; width: 62px; height: 62px; border-radius: 50%; background: var(--qs); display: flex; align-items: center; justify-content: center; position: relative;
  box-shadow: 0 0 0 6px color-mix(in srgb, var(--qs) 28%, transparent); animation: qps-ring 2s ease-out infinite; }
.qps-ico svg { width: 34px; height: 34px; stroke: #fff; fill: none; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.qps-up .qps-ico svg { animation: qps-up 1.6s ease-in-out infinite; } .qps-down .qps-ico svg { animation: qps-down 1.6s ease-in-out infinite; }
.qps-txt { display: flex; flex-direction: column; gap: 2px; line-height: 1.5; min-width: 0; }
.qps-t1 { font-size: 14px; color: var(--qs); font-weight: 700; }
.qps-date { font-size: 26px; font-weight: 800; color: var(--qs-tx); letter-spacing: .5px; }
.qps-sub { font-size: 13px; color: color-mix(in srgb, var(--qs-tx) 75%, #fff); }
.qps-chg { margin-right: auto; align-self: flex-start; font-size: 13px; font-weight: 800; color: var(--qs); background: #fff; border-radius: 999px; padding: 2px 10px; direction: ltr; white-space: nowrap; }
@keyframes qps-ring { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--qs) 55%, transparent); } 80%, 100% { box-shadow: 0 0 0 14px transparent; } }
@keyframes qps-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-3px); } }
@keyframes qps-shine { 0%, 55% { left: -60%; } 100% { left: 130%; } }
@keyframes qps-up { 0%, 100% { transform: translateY(2px); } 50% { transform: translateY(-3px); } }
@keyframes qps-down { 0%, 100% { transform: translateY(-2px); } 50% { transform: translateY(3px); } }
@media (max-width: 480px) { .qps { padding: 12px 12px; gap: 12px; } .qps-ico { width: 52px; height: 52px; } .qps-date { font-size: 22px; } }
@media (prefers-reduced-motion: reduce) { .qps, .qps::after, .qps-ico, .qps-ico svg { animation: none; } }

.qps-tri { font-style: normal; font-size: 20px; line-height: 1; margin-right: 6px; vertical-align: -2px; color: var(--qs); }
.qps-up .qps-tri { animation: qps-up 1.6s ease-in-out infinite; display: inline-block; } .qps-down .qps-tri { animation: qps-down 1.6s ease-in-out infinite; display: inline-block; }
.qps-up .qps-ico svg, .qps-down .qps-ico svg { animation: none; }
.qps-ico svg { animation: qps-spin 6s linear infinite; }
@keyframes qps-spin { 0%, 70% { transform: rotate(0); } 100% { transform: rotate(360deg); } }

/* pro chart v1.8.2: stats on the right of the chart, small range tabs under it */
.qpp-head { margin-bottom: 8px; }
.qpp-body { display: flex; gap: 18px; align-items: stretch; flex-direction: row; }
.qpp-side { flex: 0 0 170px; display: flex; flex-direction: column; gap: 10px; justify-content: center; border-left: 1px solid #eef0f3; padding-left: 14px; }
.qpp-main { flex: 1 1 auto; min-width: 0; }
.qpp-side .qpp-st { min-width: 0; gap: 2px; }
.qpp-st b { display: flex; align-items: center; gap: 4px; }
.qpp-up { color: #2563eb !important; } .qpp-dn { color: #dc2626 !important; } .qpp-eq { color: #374151 !important; }
.qpp-st i { font-size: 11px; margin: 0; }
.qpp-tabs { justify-content: center; margin-top: 4px; }
.qpp-tabs button { padding: 2px 11px !important; font-size: 11.5px !important; }
@media (max-width: 700px) { .qpp-body { flex-direction: column; } .qpp-side { flex: none; flex-direction: row; flex-wrap: wrap; border-left: 0; padding-left: 0; gap: 6px 16px; } .qpp-side .qpp-st { min-width: 44%; } }
