/* PettyCart storefront – update 1.2: Track Order, reviews, captcha */
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: .02em; }

/* footer quick links */
.sf-quick { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-top: 10px; }
.sf-quick a { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 30px; background: #fff; border: 1px solid var(--line); font-weight: 700; font-size: .85rem; color: var(--ink-2); }

/* captcha */
.captcha-row { display: flex; align-items: center; gap: 10px; }
.captcha-row img { border-radius: 12px; border: 1.5px solid var(--line); background: #f6f8f7; max-width: 100%; height: auto; }

/* order page → track */
.track-cta { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 18px; background: var(--brand-soft); color: var(--brand-ink); margin-bottom: 12px; border: 1px solid var(--brand-soft-2); }
.track-cta > i:first-child { font-size: 1.4rem; color: var(--brand); }
.track-cta span { flex: 1; display: flex; flex-direction: column; }
.track-cta small { color: var(--muted); font-size: .8rem; }

/* track page */
.trk-hero { text-align: center; padding: 10px 10px 16px; }
.trk-hero > i { font-size: 2.6rem; color: var(--brand); display: block; margin-bottom: 4px; }
.trk-hero h1 { font-size: 1.4rem; font-weight: 800; letter-spacing: -.02em; margin: 0 0 4px; }
.trk-hero p { margin: 0; }
.trk-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; margin-bottom: 12px; }
.trk-head h1 { font-size: 1.35rem; font-weight: 800; margin: 0; letter-spacing: -.02em; }
.trk-status { padding: 7px 12px; border-radius: 30px; font-weight: 800; font-size: .8rem; background: var(--brand-soft); color: var(--brand-ink); white-space: nowrap; }
.trk-status.st-delivered, .trk-status.st-completed { background: #dcfce7; color: #166534; }
.trk-status.st-on_hold { background: #fef3c7; color: #92400e; }
.trk-status.st-cancelled, .trk-status.st-returned { background: #fee2e2; color: #991b1b; }
.trk-banner { display: flex; gap: 12px; padding: 14px; border-radius: 16px; margin-bottom: 12px; }
.trk-banner > i { font-size: 1.5rem; line-height: 1; }
.trk-banner p { margin: 4px 0 0; font-size: .9rem; }
.trk-banner.st-on_hold { background: #fef3c7; color: #78350f; }
.trk-banner.st-cancelled, .trk-banner.st-returned { background: #fee2e2; color: #7f1d1d; }
.trk-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(7, 1fr); position: relative; }
.trk-steps li { text-align: center; position: relative; font-size: .62rem; color: var(--muted); font-weight: 700; }
.trk-steps li::before { content: ""; position: absolute; top: 15px; left: -50%; width: 100%; height: 3px; background: var(--line); z-index: 0; }
.trk-steps li:first-child::before { display: none; }
.trk-steps li span { position: relative; z-index: 1; width: 32px; height: 32px; border-radius: 50%; background: #fff; border: 2px solid var(--line); display: grid; place-items: center; margin: 0 auto 4px; font-size: .85rem; }
.trk-steps li em { font-style: normal; display: block; line-height: 1.15; }
.trk-steps li.done span, .trk-steps li.now span { background: var(--brand); border-color: var(--brand); color: #fff; }
.trk-steps li.done::before, .trk-steps li.now::before { background: var(--brand); }
.trk-steps li.now span { box-shadow: 0 0 0 5px var(--brand-soft-2); }
.trk-steps li.now, .trk-steps li.done { color: var(--ink); }
.trk-steps li.held span { background: #f59e0b; border-color: #f59e0b; color: #fff; }
.trk-etd { margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--line); font-size: .9rem; }
.trk-etd.ok { color: #166534; }
.trk-ship { display: flex; align-items: center; gap: 12px; }
.trk-ship > i { font-size: 1.6rem; color: var(--brand); }
.trk-ship > div { flex: 1; display: flex; flex-direction: column; }
.trk-ship small { color: var(--muted); font-size: .8rem; }
.trk-ship .btn { height: 38px; font-size: .8rem; padding: 0 12px; }
.trk-review { display: flex; align-items: center; gap: 12px; background: #fffbeb; border-color: #fde68a; }
.trk-review > i:first-child { font-size: 1.5rem; color: #f59e0b; }
.trk-review span { flex: 1; display: flex; flex-direction: column; }
.trk-review small { color: var(--muted); }
.trk-review.done { justify-content: center; font-weight: 700; }
.trk-line { list-style: none; margin: 0; padding: 0; }
.trk-line li { display: flex; gap: 12px; position: relative; padding-bottom: 16px; }
.trk-line li:not(:last-child)::before { content: ""; position: absolute; left: 13px; top: 28px; bottom: 0; width: 2px; background: var(--line); }
.trk-line .tl-dot { flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); font-size: .75rem; }
.trk-line li:first-child .tl-dot { background: var(--brand); color: #fff; }
.trk-line .tl-comment .tl-dot { background: #ede9fe; color: #6d28d9; }
.trk-line .tl-comment p { background: #f5f3ff; border-radius: 12px; padding: 8px 10px; }
.trk-line b { font-size: .9rem; display: block; }
.trk-line p { margin: 4px 0; font-size: .88rem; color: var(--ink-2); }
.trk-line small { color: var(--muted); font-size: .76rem; }
@media (max-width: 380px) { .trk-steps li em { font-size: .55rem; } .trk-steps li span { width: 28px; height: 28px; } .trk-steps li::before { top: 13px; } }

/* stars */
.stars { color: #f59e0b; letter-spacing: 1px; white-space: nowrap; }

/* reviews */
.rv-summary { display: flex; gap: 16px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 14px 16px; margin-bottom: 12px; }
.rv-avg { text-align: center; display: flex; flex-direction: column; align-items: center; min-width: 92px; }
.rv-avg b { font-size: 2.2rem; font-weight: 800; line-height: 1; letter-spacing: -.03em; }
.rv-avg small { color: var(--muted); font-size: .78rem; margin-top: 2px; }
.rv-bars { flex: 1; }
.rv-bar { display: flex; align-items: center; gap: 8px; font-size: .75rem; color: var(--muted); }
.rv-bar span { width: 22px; font-weight: 700; }
.rv-bar i { flex: 1; height: 6px; border-radius: 4px; background: var(--line); overflow: hidden; }
.rv-bar em { display: block; height: 100%; background: #f59e0b; border-radius: 4px; }
.rv-bar small { width: 22px; text-align: right; }
.rv-scroll { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -14px; padding: 0 14px 4px; scrollbar-width: none; }
.rv-scroll::-webkit-scrollbar { display: none; }
.rv-scroll .rv-card { flex: 0 0 82%; max-width: 320px; scroll-snap-align: start; }
.rv-card { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 14px; margin-bottom: 10px; }
.rv-card p { margin: 6px 0 0; font-size: .9rem; color: var(--ink-2); }
.rv-top { display: flex; gap: 10px; align-items: center; margin-bottom: 6px; }
.rv-top b { display: block; font-size: .9rem; }
.rv-top small { color: var(--muted); font-size: .75rem; }
.rv-init { width: 34px; height: 34px; border-radius: 50%; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; font-weight: 800; }
.rv-reply { margin-top: 8px; padding: 8px 10px; border-radius: 12px; background: var(--bg); font-size: .85rem; }
.rv-reply b { display: block; font-size: .75rem; color: var(--brand); }
.rv-verified { display: inline-flex; gap: 4px; align-items: center; margin-top: 8px; font-size: .72rem; color: var(--ok); font-weight: 700; }

/* review form */
.rate-pick { display: flex; flex-direction: row-reverse; justify-content: center; gap: 6px; margin: 4px 0 6px; }
.rate-pick input { position: absolute; opacity: 0; pointer-events: none; }
.rate-pick label { font-size: 2.4rem; color: #e5e7eb; cursor: pointer; transition: transform .1s, color .1s; line-height: 1; }
.rate-pick label:active { transform: scale(.9); }
.rate-pick input:checked ~ label, .rate-pick label:hover, .rate-pick label:hover ~ label { color: #f59e0b; }
.rate-pick input:focus-visible + label { outline: 2px solid var(--brand); border-radius: 6px; }
.rate-word { text-align: center; font-weight: 700; color: var(--ink-2); margin-bottom: 14px; min-height: 1.3em; }
