/* ------------------------------------------------------------------
   Myntra Web — design tokens
------------------------------------------------------------------ */
:root {
  --pink: #ff3f6c;
  --pink-dark: #e6355f;
  --pink-soft: #fff1f4;
  --ink: #282c3f;
  --ink-soft: #535766;
  --muted: #7e818c;
  --line: #eaeaeb;
  --line-strong: #d4d5d9;
  --bg: #f5f5f6;
  --green: #03a685;
  --green-soft: #e6f7f3;
  --orange: #ff905a;
  --star: #fdd835;
  --gold: #ffc107;
  --radius: 8px;
  --shadow: 0 2px 12px rgba(40, 44, 63, .08);
  --tab-h: 60px;
  --font: "Figtree", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html, body { margin: 0; padding: 0; }

body {
  font-family: var(--font);
  color: var(--ink);
  background: #ebedf0;
  font-size: 14px;
  line-height: 1.35;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
button { font-family: inherit; font-size: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
input, textarea, select { font-family: inherit; font-size: 14px; color: var(--ink); }
::placeholder { color: #94969f; }

/* ------------------------------------------------------------------
   Shell
------------------------------------------------------------------ */
.shell {
  position: relative;
  max-width: 520px;
  margin: 0 auto;
  min-height: 100vh;
  background: #fff;
  overflow-x: hidden;
}
@media (min-width: 560px) {
  body { background: #dfe2e7; }
  .shell { box-shadow: 0 0 40px rgba(0, 0, 0, .12); }
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 10px;
  height: 56px;
  padding: 0 14px;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.topbar__title { font-size: 16px; font-weight: 700; letter-spacing: .2px; flex: 1; }
.topbar__spacer { flex: 1; }

.wordmark {
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -.4px;
}
.wordmark span { font-size: 9px; font-weight: 600; letter-spacing: 1px; color: var(--muted); text-transform: uppercase; }

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  margin-right: -6px;
  border-radius: 50%;
  color: var(--ink);
  transition: background .15s;
}
.icon-btn:active { background: var(--bg); }
.icon-btn--top { margin-left: -8px; margin-right: 0; }

.view { padding-bottom: calc(var(--tab-h) + 34px + env(safe-area-inset-bottom)); min-height: calc(100vh - 56px); }
.view--flush { padding-bottom: 0; }
.view.has-bar { padding-bottom: calc(var(--tab-h) + 96px + env(safe-area-inset-bottom)); }

/* ------------------------------------------------------------------
   Bottom tabs
------------------------------------------------------------------ */
.tabbar {
  position: fixed;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  z-index: 40;
  width: 100%;
  max-width: 520px;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  height: calc(var(--tab-h) + env(safe-area-inset-bottom));
  padding-bottom: env(safe-area-inset-bottom);
  background: #fff;
  border-top: 1px solid var(--line);
}
.tab {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  color: #94969f;
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: .2px;
  transition: color .15s;
}
.tab svg { width: 21px; height: 21px; }
.tab.is-active { color: var(--pink); }
.tab__badge {
  position: absolute;
  top: 7px;
  left: calc(50% + 6px);
  min-width: 15px;
  height: 15px;
  padding: 0 4px;
  border-radius: 8px;
  background: var(--pink);
  color: #fff;
  font-size: 9px;
  line-height: 15px;
  text-align: center;
  font-weight: 700;
}

/* ------------------------------------------------------------------
   Generic bits
------------------------------------------------------------------ */
.px { padding-left: 14px; padding-right: 14px; }
.section { padding: 18px 14px; border-bottom: 8px solid var(--bg); }
.section:last-child { border-bottom: 0; }
.section__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.section__title { font-size: 14px; font-weight: 700; letter-spacing: .4px; text-transform: uppercase; margin: 0; }
.section__title--plain { text-transform: none; letter-spacing: 0; font-size: 16px; }
.link { color: var(--pink); font-weight: 700; font-size: 12px; }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.tiny { font-size: 11px; }
.bold { font-weight: 700; }
.green { color: var(--green); }
.orange { color: var(--orange); }
.strike { text-decoration: line-through; color: var(--muted); }
.center { text-align: center; }
.row { display: flex; align-items: center; }
.row--between { justify-content: space-between; }
.gap-6 { gap: 6px; }
.gap-10 { gap: 10px; }
.stack-4 > * + * { margin-top: 4px; }
.stack-8 > * + * { margin-top: 8px; }
.stack-14 > * + * { margin-top: 14px; }
.divider { height: 1px; background: var(--line); margin: 14px 0; }
.divider--dashed { height: 0; border-top: 1px dashed var(--line-strong); background: none; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 46px;
  padding: 0 26px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .6px;
  text-transform: uppercase;
  transition: transform .08s, filter .15s;
}
.btn:active { transform: scale(.985); filter: brightness(.96); }
.btn--primary { background: var(--pink); color: #fff; }
.btn--dark { background: var(--ink); color: #fff; }
.btn--outline { border: 1px solid var(--line-strong); color: var(--ink); background: #fff; }
.btn--block { display: flex; width: 100%; }
.btn--sm { height: 38px; font-size: 11.5px; padding: 0 16px; }
.btn[disabled] { opacity: .45; pointer-events: none; }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 30px;
  padding: 0 12px;
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  background: #fff;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-soft);
  white-space: nowrap;
}
.chip--on { border-color: var(--pink); color: var(--pink); background: var(--pink-soft); }
.chip--soft { border-color: transparent; background: var(--bg); }

.rating {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 2px 5px;
  border: 1px solid var(--line-strong);
  border-radius: 3px;
  font-size: 11px;
  font-weight: 700;
  color: var(--ink-soft);
  background: #fff;
}
.rating svg { color: var(--star); }
.rating__count { color: var(--muted); font-weight: 500; }

.badge-green { display: inline-flex; align-items: center; gap: 4px; background: var(--green-soft); color: var(--green); font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 3px; }
.badge-green svg { flex: 0 0 auto; }
.badge-grey { background: var(--bg); color: var(--ink-soft); font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 3px; }

.empty { padding: 60px 30px; text-align: center; }
.empty h3 { margin: 18px 0 6px; font-size: 16px; }
.empty p { margin: 0 0 20px; color: var(--muted); font-size: 13px; }
.empty svg { margin: 0 auto; color: #c9ccd4; }

/* ------------------------------------------------------------------
   Search tab
------------------------------------------------------------------ */
.searchbar {
  display: flex;
  align-items: center;
  gap: 9px;
  height: 42px;
  padding: 0 10px;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  background: #fff;
  color: var(--muted);
}
.searchbar:focus-within { border-color: #b9bcc5; }
.searchbar input {
  flex: 1;
  border: 0;
  outline: 0;
  background: none;
  font-size: 13.5px;
  color: var(--ink);
  min-width: 0;
}
.searchbar__clear { color: var(--muted); display: inline-flex; }

.suggest { border: 1px solid var(--line); border-top: 0; border-radius: 0 0 4px 4px; background: #fff; overflow: hidden; }
.suggest__item { display: flex; align-items: center; gap: 10px; padding: 11px 12px; border-bottom: 1px solid var(--line); }
.suggest__item:last-child { border-bottom: 0; }
.suggest__item:active { background: var(--bg); }
.suggest__mark { color: var(--muted); }
.suggest__brand { font-weight: 700; }
.suggest__hint { color: var(--muted); font-size: 12px; margin-left: auto; }

.recent { display: flex; flex-wrap: wrap; gap: 8px; }
.recent__item { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 10px; border-radius: 16px; background: var(--bg); font-size: 12px; color: var(--ink-soft); }

.cat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.cat { position: relative; border-radius: 6px; overflow: hidden; aspect-ratio: 3 / 3.4; background: var(--bg); }
.cat img { width: 100%; height: 100%; object-fit: cover; }
.cat__label {
  position: absolute;
  inset: auto 0 0 0;
  padding: 16px 8px 7px;
  background: linear-gradient(transparent, rgba(20, 20, 30, .72));
  color: #fff;
  font-size: 11.5px;
  font-weight: 700;
  text-align: center;
}

.hero {
  position: relative;
  padding: 22px 18px;
  background: linear-gradient(135deg, #ff3f6c 0%, #ff7a3d 100%);
  color: #fff;
  overflow: hidden;
}
.hero h2 { margin: 0; font-size: 19px; letter-spacing: -.2px; }
.hero p { margin: 5px 0 0; font-size: 12.5px; opacity: .93; }
.hero__coin {
  position: absolute;
  right: -22px;
  top: -24px;
  width: 128px;
  height: 128px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .14);
}

/* ------------------------------------------------------------------
   Product grid & cards
------------------------------------------------------------------ */
.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 10px;
  padding: 12px;
}
.grid--rail { display: flex; gap: 10px; overflow-x: auto; padding: 2px 14px 6px; scrollbar-width: none; }
.grid--rail::-webkit-scrollbar { display: none; }
.grid--rail .card { flex: 0 0 152px; }

.card { position: relative; min-width: 0; overflow: hidden; }
.card__media {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  background: var(--bg);
  aspect-ratio: 3 / 4;
}
.card__media img { width: 100%; height: 100%; object-fit: cover; }
.card__heart {
  position: absolute;
  top: 7px;
  right: 7px;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, .94);
  color: #535766;
  box-shadow: 0 1px 4px rgba(40, 44, 63, .18);
}
.card__heart.is-on { color: var(--pink); }
.card__rating { position: absolute; left: 7px; bottom: 7px; }
.card__off {
  position: absolute;
  left: 0;
  top: 12px;
  padding: 3px 8px 3px 7px;
  background: var(--orange);
  color: #fff;
  font-size: 10.5px;
  font-weight: 700;
  border-radius: 0 3px 3px 0;
}
.card__body { padding: 7px 2px 0; min-width: 0; }
.card__brand { font-size: 12.5px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card__name { font-size: 11.5px; color: var(--muted); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card__price { display: flex; align-items: baseline; gap: 5px; margin-top: 5px; flex-wrap: wrap; }
.card__price b { font-size: 13px; }
.card__price .mrp { font-size: 11px; color: var(--muted); text-decoration: line-through; }
.card__price .off { font-size: 11px; color: var(--orange); font-weight: 600; }

.toolbar {
  position: sticky;
  top: 56px;
  z-index: 20;
  display: flex;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.toolbar button {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 44px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-soft);
  border-right: 1px solid var(--line);
}
.toolbar button:last-child { border-right: 0; }
.toolbar button.is-on { color: var(--pink); }
.result-count { padding: 12px 14px 0; font-size: 12px; color: var(--muted); }

/* ------------------------------------------------------------------
   Product detail
------------------------------------------------------------------ */
.pdp__media { position: relative; background: var(--bg); }
.pdp__media img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.pdp__float { position: absolute; top: 12px; right: 12px; display: flex; flex-direction: column; gap: 10px; }
.pdp__float button {
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, .95);
  box-shadow: 0 1px 5px rgba(40, 44, 63, .2);
  color: var(--ink-soft);
}
.pdp__float button.is-on { color: var(--pink); }

.pdp__head { padding: 16px 14px 0; }
.pdp__brand { font-size: 17px; font-weight: 700; }
.pdp__name { font-size: 13px; color: var(--muted); margin-top: 3px; }
.pdp__rating { display: flex; align-items: center; gap: 8px; margin-top: 10px; }
.pdp__price { display: flex; align-items: baseline; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.pdp__price .now { font-size: 20px; font-weight: 700; }
.pdp__price .mrp { color: var(--muted); text-decoration: line-through; font-size: 13px; }
.pdp__price .off { color: var(--orange); font-weight: 700; font-size: 13px; }
.pdp__tax { font-size: 11px; color: var(--green); margin-top: 4px; }

.offer-strip {
  display: flex;
  gap: 10px;
  margin: 16px 14px 0;
  padding: 12px;
  border: 1px dashed #ffc9d4;
  border-radius: 6px;
  background: var(--pink-soft);
  font-size: 12px;
  line-height: 1.45;
}
.offer-strip b { color: var(--pink); }

.size-row { display: flex; flex-wrap: wrap; gap: 8px; }
.size {
  min-width: 48px;
  height: 40px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line-strong);
  border-radius: 50px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-soft);
}
.size.is-on { border-color: var(--pink); color: var(--pink); background: var(--pink-soft); }
.size.is-oos { color: #c9ccd4; text-decoration: line-through; pointer-events: none; border-style: dashed; }

.pdp__bar {
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  position: fixed;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  z-index: 45;
  width: 100%;
  max-width: 520px;
  display: flex;
  gap: 10px;
  background: #fff;
  border-top: 1px solid var(--line);
}
.pdp__bar .btn { flex: 1; }

.spec { display: grid; grid-template-columns: 104px 1fr; gap: 8px 12px; font-size: 12.5px; }
.spec dt { color: var(--muted); }
.spec dd { margin: 0; color: var(--ink-soft); }

.review {
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}
.review:last-child { border-bottom: 0; }
.review__head { display: flex; align-items: center; gap: 8px; font-size: 12px; }
.review p { margin: 7px 0 0; font-size: 12.5px; color: var(--ink-soft); }

/* ------------------------------------------------------------------
   Cart
------------------------------------------------------------------ */
.cart-item { display: flex; gap: 12px; padding: 14px; border-bottom: 8px solid var(--bg); }
.cart-item__img { width: 96px; flex: 0 0 96px; aspect-ratio: 3 / 4; border-radius: 6px; overflow: hidden; background: var(--bg); }
.cart-item__img img { width: 100%; height: 100%; object-fit: cover; }
.cart-item__body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.cart-item__brand { font-weight: 700; font-size: 13px; }
.cart-item__name { color: var(--muted); font-size: 12px; margin-top: 2px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cart-item__meta { display: flex; align-items: center; gap: 7px; margin-top: 7px; font-size: 11.5px; color: var(--muted); }
.cart-item__price { display: flex; align-items: baseline; gap: 7px; margin-top: 8px; }
.cart-item__price b { font-size: 14px; }
.cart-item__actions { display: flex; align-items: center; gap: 16px; margin-top: 12px; }

.stepper { display: inline-flex; align-items: center; border: 1px solid var(--line-strong); border-radius: 4px; height: 28px; }
.stepper button { width: 28px; height: 26px; display: flex; align-items: center; justify-content: center; color: var(--ink-soft); }
.stepper span { min-width: 26px; text-align: center; font-size: 12.5px; font-weight: 700; }
.stepper button[disabled] { opacity: .35; pointer-events: none; }

.coupon-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px;
  border-bottom: 1px solid var(--line);
}
.coupon-row__icon { color: var(--pink); }
.coupon-row__text { flex: 1; font-size: 13px; }
.coupon-row__text b { display: block; font-size: 13px; }
.coupon-row__text span { color: var(--muted); font-size: 11.5px; }

.savings-strip { display: flex; align-items: center; gap: 8px; padding: 10px 14px; background: var(--green-soft); color: #1d8a76; font-size: 12px; font-weight: 600; }

.price-card { padding: 14px; }
.price-card h4 { margin: 0 0 12px; font-size: 12px; letter-spacing: .5px; text-transform: uppercase; color: var(--ink-soft); }
.price-row { display: flex; justify-content: space-between; font-size: 12.5px; margin-bottom: 9px; color: var(--ink-soft); }
.price-row span:last-child { font-weight: 600; color: var(--ink); }
.price-row--total { margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--line-strong); font-size: 14px; font-weight: 700; color: var(--ink); }
.price-row--total span:last-child { font-weight: 700; font-size: 15px; }
.price-note { font-size: 11.5px; color: var(--pink); margin-top: 2px; }

.cart-bar {
  position: fixed;
  left: 50%;
  bottom: calc(var(--tab-h) + env(safe-area-inset-bottom));
  transform: translateX(-50%);
  z-index: 35;
  width: 100%;
  max-width: 520px;
  display: flex;
  gap: 10px;
  padding: 10px 14px;
  background: #fff;
  border-top: 1px solid var(--line);
  box-shadow: 0 -4px 14px rgba(40, 44, 63, .05);
}
.cart-bar__total { flex: 0 0 auto; display: flex; flex-direction: column; justify-content: center; }
.cart-bar__total b { font-size: 15px; }
.cart-bar__total span { font-size: 10.5px; color: var(--muted); }
.cart-bar .btn { flex: 1; }

/* ------------------------------------------------------------------
   Sheets / modals / toast
------------------------------------------------------------------ */
.overlay {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background: rgba(20, 22, 30, .5);
  animation: fade .16s ease-out;
}
.sheet {
  width: 100%;
  max-width: 520px;
  max-height: 86vh;
  overflow: auto;
  background: #fff;
  border-radius: 16px 16px 0 0;
  padding: 8px 0 calc(18px + env(safe-area-inset-bottom));
  animation: rise .22s cubic-bezier(.2, .8, .3, 1);
}
.sheet__grip { width: 38px; height: 4px; border-radius: 2px; background: var(--line-strong); margin: 4px auto 8px; }
.sheet__head { display: flex; align-items: center; padding: 6px 16px 12px; gap: 10px; }
.sheet__head h3 { flex: 1; margin: 0; font-size: 15px; }
.sheet__body { padding: 0 16px; }
.sheet__foot { padding: 14px 16px 0; }

@keyframes rise { from { transform: translateY(28px); opacity: .4; } to { transform: translateY(0); opacity: 1; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes pop { 0% { transform: scale(.7); opacity: 0; } 60% { transform: scale(1.06); } 100% { transform: scale(1); opacity: 1; } }

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(var(--tab-h) + 74px);
  transform: translate(-50%, 10px);
  z-index: 100;
  max-width: 88vw;
  padding: 11px 18px;
  border-radius: 6px;
  background: #282c3f;
  color: #fff;
  font-size: 12.5px;
  font-weight: 500;
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s, transform .2s;
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }
.toast.is-error { background: #d7263d; }

/* ------------------------------------------------------------------
   Forms
------------------------------------------------------------------ */
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 10.5px; letter-spacing: .6px; text-transform: uppercase; color: var(--muted); font-weight: 600; margin-bottom: 5px; }
.field input, .field textarea, .field select {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  outline: 0;
  background: #fff;
  transition: border-color .15s;
}
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--pink); }
.field textarea { resize: vertical; min-height: 74px; }
.field__hint { font-size: 11px; color: var(--muted); margin-top: 5px; }
.field__err { font-size: 11px; color: #d7263d; margin-top: 5px; }
.field--half { flex: 1; min-width: 0; }
.field-row { display: flex; gap: 10px; }

.seg { display: flex; gap: 8px; }
.seg button {
  flex: 1;
  height: 40px;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .4px;
  color: var(--ink-soft);
}
.seg button.is-on { border-color: var(--pink); color: var(--pink); background: var(--pink-soft); }

/* ------------------------------------------------------------------
   Address
------------------------------------------------------------------ */
.addr-card { padding: 16px 14px; border-bottom: 8px solid var(--bg); }
.addr-card__top { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.addr-card__type { font-size: 10px; font-weight: 700; letter-spacing: .7px; padding: 3px 7px; border: 1px solid var(--line-strong); border-radius: 3px; color: var(--muted); }
.addr-card__name { font-weight: 700; font-size: 13.5px; }
.addr-card__text { font-size: 12.5px; color: var(--ink-soft); line-height: 1.5; }
.addr-card__mobile { font-size: 12.5px; color: var(--ink-soft); margin-top: 6px; }
.addr-card__actions { display: flex; gap: 18px; margin-top: 12px; font-size: 11.5px; font-weight: 700; letter-spacing: .4px; color: var(--muted); }
.addr-card__actions button:hover { color: var(--pink); }
.addr-card.is-selected { background: #fffafb; box-shadow: inset 3px 0 0 var(--pink); }

/* Reusable address templates */
.tpl-bar { margin: 14px 16px 0; padding: 12px 13px; border: 1px dashed var(--line-strong); border-radius: 10px; background: #fff; }
.tpl-bar__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; font-size: 12.5px; }
.tpl-bar__head b { font-weight: 700; }
.tpl-bar .recent { gap: 6px; }
.chip--tpl { display: inline-flex; align-items: center; gap: 5px; max-width: 100%; }
.chip--tpl svg { flex: 0 0 auto; }
.chip--tpl { text-overflow: ellipsis; overflow: hidden; white-space: nowrap; }
.tpl-item { display: flex; gap: 10px; align-items: flex-start; padding: 11px 0; border-bottom: 1px solid var(--line); }
.tpl-item:last-child { border-bottom: 0; }
.tpl-item__body { flex: 1; min-width: 0; font-size: 11.5px; color: var(--muted); line-height: 1.5; }
.tpl-item__body b { display: block; color: var(--ink); font-size: 13px; margin-bottom: 2px; }
.tpl-item__body span { display: block; margin-top: 2px; }
.tpl-item__actions { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }

.pin-check { display: flex; align-items: center; gap: 7px; font-size: 12px; margin-top: 8px; }

/* ------------------------------------------------------------------
   Checkout
------------------------------------------------------------------ */
.steps { display: flex; align-items: center; padding: 14px; gap: 6px; border-bottom: 1px solid var(--line); font-size: 10.5px; font-weight: 700; letter-spacing: .4px; color: var(--muted); }
.steps__item { display: flex; align-items: center; gap: 6px; }
.steps__n { width: 18px; height: 18px; border-radius: 50%; background: var(--bg); color: var(--muted); display: inline-flex; align-items: center; justify-content: center; font-size: 10px; }
.steps__item.is-done .steps__n { background: var(--green); color: #fff; }
.steps__item.is-on { color: var(--ink); }
.steps__item.is-on .steps__n { background: var(--pink); color: #fff; }
.steps__sep { flex: 1; height: 1px; background: var(--line); }

.pay-opt { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border: 1px solid var(--line); border-radius: 6px; background: #fff; }
.pay-opt + .pay-opt { margin-top: 10px; }
.pay-opt.is-on { border-color: var(--pink); background: #fffafb; }
.pay-opt__dot { width: 18px; height: 18px; flex: 0 0 18px; margin-top: 1px; border: 1.5px solid var(--line-strong); border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.pay-opt.is-on .pay-opt__dot { border-color: var(--pink); }
.pay-opt.is-on .pay-opt__dot::after { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--pink); }
.pay-opt__body { flex: 1; }
.pay-opt__title { font-size: 13px; font-weight: 700; display: flex; justify-content: space-between; gap: 10px; }
.pay-opt__sub { font-size: 11.5px; color: var(--muted); margin-top: 3px; line-height: 1.45; }
.pay-opt.is-off { opacity: .55; }

.summary-item { display: flex; gap: 10px; padding: 10px 0; }
.summary-item img { width: 52px; height: 68px; object-fit: cover; border-radius: 4px; background: var(--bg); }
.summary-item__body { flex: 1; min-width: 0; }
.summary-item__body b { font-size: 12.5px; }
.summary-item__body p { margin: 2px 0 0; font-size: 11.5px; color: var(--muted); }

/* ------------------------------------------------------------------
   Orders
------------------------------------------------------------------ */
.order-tabs { display: flex; gap: 8px; padding: 12px 14px; overflow-x: auto; border-bottom: 1px solid var(--line); scrollbar-width: none; }
.order-tabs::-webkit-scrollbar { display: none; }

.order-card { border-bottom: 8px solid var(--bg); }
.order-card__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; padding: 14px 14px 10px; }
.order-card__id { font-size: 11.5px; color: var(--muted); }
.order-card__id b { color: var(--ink); font-size: 12.5px; letter-spacing: .3px; }
.order-card__status { font-size: 11px; font-weight: 700; letter-spacing: .4px; padding: 4px 9px; border-radius: 3px; white-space: nowrap; }
.status--green { background: var(--green-soft); color: var(--green); }
.status--orange { background: #fff4e9; color: #d97706; }
.status--grey { background: var(--bg); color: var(--muted); }
.order-card__items { display: flex; flex-direction: column; gap: 10px; padding: 0 14px 12px; }
.order-line { display: flex; align-items: center; gap: 10px; }
.order-line__img { width: 54px; height: 70px; flex: 0 0 54px; border-radius: 4px; overflow: hidden; background: var(--bg); display: flex; align-items: center; justify-content: center; color: var(--muted); }
.order-line__img img { width: 100%; height: 100%; object-fit: cover; }
.order-line__body { flex: 1 1 auto; min-width: 0; }
.order-line__brand { font-size: 11px; font-weight: 700; letter-spacing: .3px; text-transform: uppercase; }
.order-line__name { font-size: 12.5px; color: var(--ink-soft); margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.order-line__meta { font-size: 11px; color: var(--muted); margin-top: 4px; display: flex; align-items: center; gap: 5px; flex-wrap: wrap; }
.order-line__price { font-size: 12.5px; font-weight: 700; white-space: nowrap; }
.order-card__more { font-size: 12px; color: var(--muted); padding-left: 4px; }
.order-card__meta { display: flex; justify-content: space-between; gap: 10px; font-size: 12px; padding: 10px 14px; border-top: 1px solid var(--line); }
.order-card__actions { display: flex; gap: 8px; padding: 0 14px 14px; }
.order-card__actions .btn { flex: 1; height: 38px; font-size: 11px; }

.tracker { padding: 6px 14px 16px; }
.track { display: grid; grid-template-columns: 22px 1fr; gap: 0 10px; }
.track__rail { display: flex; flex-direction: column; align-items: center; }
.track__dot { width: 11px; height: 11px; margin-top: 3px; border-radius: 50%; border: 2px solid var(--line-strong); background: #fff; }
.track__line { flex: 1; width: 2px; background: var(--line); min-height: 30px; }
.track__body { padding-bottom: 16px; }
.track__body b { font-size: 12.5px; color: var(--muted); font-weight: 600; }
.track__body span { display: block; font-size: 11px; color: var(--muted); margin-top: 2px; }
.track.is-done .track__dot { border-color: var(--green); background: var(--green); }
.track.is-done .track__line { background: var(--green); }
.track.is-done .track__body b { color: var(--ink); font-weight: 700; }
.track.is-current .track__dot { border-color: var(--pink); background: #fff; box-shadow: 0 0 0 3px var(--pink-soft); }
.track.is-current .track__body b { color: var(--pink); font-weight: 700; }

.bill { padding: 4px 14px 16px; }

/* ------------------------------------------------------------------
   Profile
------------------------------------------------------------------ */
.profile-head { display: flex; align-items: center; gap: 14px; padding: 20px 16px; }
.avatar {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: linear-gradient(140deg, #ff3f6c, #ff905a);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: .5px;
  flex: 0 0 62px;
}
.profile-head h2 { margin: 0; font-size: 17px; }
.profile-head p { margin: 4px 0 0; font-size: 12.5px; color: var(--muted); }
.profile-head .badge-green { margin-top: 7px; display: inline-block; }

.stats { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); border-radius: 8px; margin: 0 16px; overflow: hidden; }
.stat { padding: 13px 8px; text-align: center; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat b { display: block; font-size: 16px; }
.stat span { font-size: 10.5px; color: var(--muted); letter-spacing: .3px; }

.insider {
  margin: 16px;
  padding: 16px;
  border-radius: 10px;
  background: linear-gradient(120deg, #2b2d42, #3d3f5c 55%, #552b41);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.insider::after { content: ""; position: absolute; right: -30px; top: -40px; width: 120px; height: 120px; border-radius: 50%; background: rgba(255, 255, 255, .07); }
.insider h3 { margin: 0; font-size: 14px; letter-spacing: .3px; }
.insider p { margin: 5px 0 0; font-size: 11.5px; opacity: .82; }
.insider__bar { height: 5px; border-radius: 3px; background: rgba(255, 255, 255, .18); margin-top: 14px; overflow: hidden; }
.insider__bar i { display: block; height: 100%; border-radius: 3px; background: linear-gradient(90deg, #ff3f6c, #ffc107); }
.insider__row { display: flex; justify-content: space-between; font-size: 10.5px; opacity: .8; margin-top: 7px; }

.menu { padding: 0 16px; }
.menu__item { display: flex; align-items: center; gap: 14px; padding: 15px 0; border-bottom: 1px solid var(--line); }
.menu__item:last-child { border-bottom: 0; }
.menu__icon { width: 34px; height: 34px; border-radius: 9px; display: flex; align-items: center; justify-content: center; background: var(--bg); color: var(--ink-soft); flex: 0 0 34px; }
.menu__text { flex: 1; }
.menu__text b { display: block; font-size: 13px; font-weight: 600; }
.menu__text span { font-size: 11.5px; color: var(--muted); }
.menu__chev { color: #c9ccd4; }

/* Profile v2 */
.prof-hero { display: flex; align-items: center; gap: 14px; padding: 20px 16px 16px; background: linear-gradient(135deg, #fff 0%, #fff4f7 100%); border-bottom: 1px solid var(--line); }
.prof-hero__txt { flex: 1; min-width: 0; }
.prof-hero__txt h2 { margin: 0; font-size: 17px; }
.prof-hero__txt p { margin: 4px 0 0; font-size: 12.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.prof-hero__badges { display: flex; align-items: center; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.prof-hero__badges .badge-green { display: inline-flex; align-items: center; gap: 4px; }
.prof-pin { display: inline-flex; align-items: center; gap: 3px; font-size: 11px; font-weight: 600; color: var(--ink-soft); background: var(--bg); padding: 3px 8px; border-radius: 3px; }
.prof-hero__switch { flex: 0 0 auto; }

.prof-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; padding: 14px 16px 2px; }
.stat-tile { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 11px 6px; background: #fff; border: 1px solid var(--line); border-radius: 10px; text-decoration: none; color: var(--ink); }
.stat-tile__icon { color: var(--pink); line-height: 0; }
.stat-tile b { font-size: 16px; line-height: 1.15; }
.stat-tile span:last-child { font-size: 10px; color: var(--muted); text-align: center; }

.prof-group { padding: 16px 16px 0; }
.prof-group h3 { margin: 0 0 8px; font-size: 10.5px; font-weight: 700; letter-spacing: .8px; text-transform: uppercase; color: var(--muted); }
.prof-card { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 0 14px; box-shadow: var(--shadow); }
.prof-card .menu__item { padding: 13px 0; }
.prof-group .live-card { border-radius: 12px; box-shadow: var(--shadow); }
.menu__badge { margin-left: auto; font-size: 10.5px; font-weight: 700; color: var(--ink-soft); background: var(--bg); border-radius: 10px; padding: 2px 8px; }
.menu__badge + .menu__chev { margin-left: 6px; }

@media (max-width: 360px) {
  .prof-stats { grid-template-columns: repeat(2, 1fr); }
}

/* ------------------------------------------------------------------
   Success
------------------------------------------------------------------ */
.success { padding: 46px 24px 30px; text-align: center; }
.success__tick {
  width: 78px;
  height: 78px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: var(--green-soft);
  color: var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: pop .45s cubic-bezier(.2, .9, .3, 1.4);
}
.success h2 { margin: 0; font-size: 20px; letter-spacing: -.2px; }
.success p { margin: 8px 0 0; color: var(--muted); font-size: 13px; line-height: 1.55; }
.success__card { margin: 24px 0 0; padding: 14px; border: 1px dashed var(--line-strong); border-radius: 8px; text-align: left; font-size: 12.5px; }
.success__card div { display: flex; justify-content: space-between; gap: 10px; padding: 5px 0; }
.success__card div span:first-child { color: var(--muted); }
.success__actions { display: grid; gap: 10px; margin-top: 26px; }

/* ------------------------------------------------------------------
   Wishlist / search misc
------------------------------------------------------------------ */
.sort-row { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.sort-row label { flex: 1; font-size: 13px; display: flex; align-items: center; gap: 10px; }
.sort-row input { accent-color: var(--pink); width: 16px; height: 16px; }

.filter-block { padding: 14px 0; border-bottom: 1px solid var(--line); }
.filter-block:last-child { border-bottom: 0; }
.filter-block h4 { margin: 0 0 10px; font-size: 11px; letter-spacing: .6px; text-transform: uppercase; color: var(--muted); }

.loading { padding: 40px; display: flex; justify-content: center; }
.spinner { width: 26px; height: 26px; border: 3px solid var(--line); border-top-color: var(--pink); border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.foot-note { padding: 18px 16px 26px; color: var(--muted); font-size: 11px; line-height: 1.6; border-top: 8px solid var(--bg); }
.foot-note b { color: var(--ink-soft); }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

/* iOS does not zoom form fields when the font size is at least 16px. */
@media (max-width: 560px) {
  .searchbar input,
  .field input,
  .field textarea,
  .field select,
  #couponInput,
  #pinInput,
  #otpInput { font-size: 16px; }
}

/* ---------------------------------------------------------------- */
/* Live API (real api.myntra.com through the local bridge)          */
/* ---------------------------------------------------------------- */
.live-badge {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 10.5px; letter-spacing: .04em; text-transform: uppercase;
  color: #067a5e; background: #eafaf4; border: 1px solid #bfe9da;
  border-radius: 999px; padding: 4px 9px; margin-bottom: 6px;
}
.live-badge b { font-size: 10.5px; letter-spacing: .08em; }
.live-badge span { text-transform: none; letter-spacing: 0; color: #0b7a61; font-weight: 500; }

.live-warn {
  display: flex; align-items: flex-start; gap: 7px;
  background: #fff6e8; border: 1px solid #f3ddb7; color: #8a5a13;
  border-radius: 8px; padding: 9px 11px; font-size: 11.5px; line-height: 1.45;
  margin: 10px 16px;
}

.live-card { border: 1px solid var(--line); border-radius: 10px; padding: 13px 14px; background: #fff; }
.live-card__head { display: flex; align-items: center; gap: 8px; font-size: 13.5px; }
.live-card__head b { font-weight: 700; }
.live-card__body { color: var(--ink-soft); font-size: 12px; line-height: 1.5; margin: 7px 0 11px; }
.live-card__actions { display: flex; flex-wrap: wrap; gap: 8px; }
.live-renew { display: flex; align-items: flex-start; gap: 6px; margin-top: 8px; font-size: 11.5px; line-height: 1.45; color: #0b7a61; }
.live-renew.is-warn { color: #8a6100; }
.live-renew svg { flex: 0 0 auto; margin-top: 1px; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: #c4c8cf; box-shadow: 0 0 0 3px #eef0f3; }
.live-dot.is-on { background: #03a685; box-shadow: 0 0 0 3px #d9f5ee; }
.live-pill { margin-left: auto; font-size: 10px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); background: var(--bg); border-radius: 999px; padding: 3px 8px; }
.live-pill.is-on { color: #067a5e; background: #e7faf3; }

.live-help { margin-top: 16px; font-size: 12px; color: var(--ink-soft); }
.live-help summary { cursor: pointer; color: var(--pink); font-weight: 600; }
.live-help ol { margin: 8px 0 0; padding-left: 18px; line-height: 1.6; }
.live-help code { background: var(--bg); border-radius: 4px; padding: 1px 4px; font-size: 11px; }

.card--skeleton { pointer-events: none; }
.card--skeleton .card__media { border-radius: 0; }
.sk-line { height: 11px; border-radius: 5px; margin-bottom: 7px; width: 82%; }
.sk-line--short { width: 48%; }
.shimmer {
  background: linear-gradient(100deg, #f1f2f4 20%, #e7e9ec 40%, #f1f2f4 60%);
  background-size: 220% 100%;
  animation: shimmer 1.15s linear infinite;
}
@keyframes shimmer { to { background-position: -220% 0; } }
.live-tag {
  font-size: 9px; font-weight: 700; letter-spacing: .06em;
  color: #067a5e; background: #e7faf3; border: 1px solid #bfe9da;
  border-radius: 4px; padding: 1px 5px;
}

/* ------------------------------------------------------------------
   Connect gate (no session = no app)
------------------------------------------------------------------ */
.view--gate { padding-bottom: 30px; }
.gate { padding: 22px 18px 34px; }
.gate__brand { display: flex; align-items: center; gap: 10px; margin-bottom: 26px; }
.gate__brand .live-pill { margin-left: auto; }
.gate__title { margin: 0 0 10px; font-size: 24px; line-height: 1.2; letter-spacing: -.3px; }
.gate__lede { margin: 0 0 22px; color: var(--ink-soft); font-size: 13px; line-height: 1.6; }
.gate__lede code { background: var(--bg); border-radius: 4px; padding: 1px 5px; font-size: 12px; }
.gate__card {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px 15px 18px;
  background: #fff;
  box-shadow: var(--shadow);
}
.gate__row { display: flex; align-items: center; gap: 8px; font-size: 12.5px; margin-bottom: 16px; }
.gate__row b { font-weight: 700; }
.gate__note { margin: 16px 0 0; color: var(--muted); font-size: 11px; line-height: 1.6; }
.gate__note code { background: var(--bg); border-radius: 4px; padding: 1px 4px; }
.gate .btn { margin-top: 4px; }
.gate .live-help { margin-top: 18px; }
.gate .live-help ol { padding-left: 20px; }
.gate textarea { font-size: 11.5px; line-height: 1.45; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }

/* ---- login options (number / JSON / raw tokens) ---- */
.login-tabs {
  display: flex;
  gap: 6px;
  margin: 0 0 14px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 4px;
}
.login-tab {
  flex: 1 1 0;
  border: 0;
  background: transparent;
  color: var(--ink-soft);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .2px;
  padding: 8px 4px;
  border-radius: 6px;
  cursor: pointer;
  line-height: 1.2;
}
.login-tab.is-on { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.12); }
.login-panel[hidden] { display: none; }
.login-phone { display: flex; align-items: stretch; border: 1px solid var(--line-strong); border-radius: 4px; overflow: hidden; background: #fff; }
.login-phone span {
  display: flex; align-items: center;
  padding: 0 11px;
  background: var(--bg);
  border-right: 1px solid var(--line);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-soft);
}
.login-phone input {
  flex: 1 1 auto;
  border: 0 !important;
  border-radius: 0 !important;
  padding: 11px 12px;
  font-size: 16px;
  letter-spacing: .5px;
  background: transparent;
}
.login-phone input:focus { outline: none; }
.login-file {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: 2px 0 6px;
  padding: 9px 12px;
  border: 1px dashed var(--line-strong);
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-soft);
  cursor: pointer;
}
.login-file input { display: none; }
.login-file:hover { border-color: var(--ink-soft); color: var(--ink); }

/* ---- PDP offers & coupons ---- */
.offer-list { display: flex; flex-direction: column; gap: 8px; margin-top: 4px; }
.offer-row {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 10px 11px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
}
.offer-row.is-coupon { border-color: #f3d6dc; background: var(--pink-soft); }
.offer-row__icon {
  flex: 0 0 26px;
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #fff;
  color: var(--pink-dark);
  overflow: hidden;
}
.offer-row__icon img { width: 20px; height: 20px; object-fit: contain; }
.offer-row__body { flex: 1 1 auto; min-width: 0; font-size: 11.5px; line-height: 1.45; color: var(--ink-soft); }
.offer-row__body b { display: block; font-size: 12px; color: var(--ink); letter-spacing: .2px; }
.offer-row__body span { display: block; margin-top: 1px; }
.offer-row__save { color: var(--green); font-weight: 700; }
.offer-row__code {
  margin-top: 4px !important;
  display: inline-block !important;
  padding: 2px 7px;
  border: 1px dashed var(--line-strong);
  border-radius: 3px;
  font-family: monospace;
  font-size: 10.5px;
  color: var(--ink);
  background: #fff;
}

/* ---- COD availability ---- */
.cod-row, .pay-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 10px 0 0;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}
.cod-row.is-on, .pay-row.is-on { border-color: #cfe9df; background: #f4fbf8; }
.cod-row__icon, .pay-row__icon {
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  color: var(--ink-soft);
}
.cod-row.is-on .cod-row__icon, .pay-row.is-on .pay-row__icon { background: #e3f5ee; color: var(--green); }
.cod-row__text, .pay-row__body { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.cod-row__text b, .pay-row__body b { font-size: 12px; letter-spacing: .2px; }
.cod-row__text span, .pay-row__body span { font-size: 11.5px; color: var(--muted); }
.cod-row__text span.green, .pay-row__body span.green { color: var(--green); font-weight: 600; }
.cod-pill {
  flex: 0 0 auto;
  padding: 3px 8px;
  border-radius: 3px;
  background: var(--bg);
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .6px;
}
.cod-pill.is-on { background: var(--green-soft); color: var(--green); }

/* ---- COD order result ---- */
.order-placed {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-align: center;
  padding: 18px 12px;
  margin-bottom: 12px;
  border: 1px solid #cfe9df;
  border-radius: 10px;
  background: #f4fbf8;
  color: var(--green);
}
.order-placed b { font-size: 15px; letter-spacing: .2px; color: var(--ink); }
.order-placed span { font-size: 12px; color: var(--green); font-weight: 600; }

/* ---- saved accounts ---- */
.acct-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 2px;
  border-bottom: 1px solid var(--line);
}
.acct-row.is-active { background: #f7fcfa; }
.acct-row__body { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.acct-row__body b { font-size: 13px; letter-spacing: .2px; }
.acct-row__body span { font-size: 11.5px; color: var(--muted); }
.acct-badge {
  flex: 0 0 auto;
  padding: 4px 9px;
  border-radius: 3px;
  background: var(--green-soft);
  color: var(--green);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .6px;
}
.acct-row .btn { flex: 0 0 auto; height: 32px; font-size: 10.5px; }

/* ---- search card coupon / best price ---- */
.card__coupon {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 3px;
  font-size: 10px;
  line-height: 1.3;
  color: var(--green);
  font-weight: 600;
  min-width: 0;
}
.card__coupon svg { flex: 0 0 auto; }
.card__coupon span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* keep the 2-column product grid from blowing out on long text */
.grid { width: 100%; }
.card__coupon { overflow: hidden; }

/* ---- account order dots ---- */
.acct-dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #c9ccd4;
  flex: 0 0 9px;
  vertical-align: middle;
}
.acct-dot.is-red { background: #d7263d; box-shadow: 0 0 0 3px #fde8eb; }
.acct-dot.is-green { background: #03a685; box-shadow: 0 0 0 3px #e4f7f1; }
.acct-dot.is-unknown { background: #c9ccd4; }
.acct-row .acct-dot { margin-right: 2px; }
.chip .acct-dot { margin-right: 3px; }

/* ---- quick picks ---- */
.pick-row {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.pick-row__img { width: 62px; height: 80px; flex: 0 0 62px; border-radius: 6px; overflow: hidden; background: var(--bg); }
.pick-row__img img { width: 100%; height: 100%; object-fit: cover; }
.pick-row__body { flex: 1 1 auto; min-width: 0; }
.pick-row__body b { font-size: 12.5px; letter-spacing: .2px; }
.pick-row__body p { margin: 2px 0 0; font-size: 11.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pick-row__meta { margin-top: 5px; font-size: 11.5px; color: var(--ink-soft); }
.pick-row__actions { display: flex; flex-direction: column; gap: 7px; align-items: stretch; flex: 0 0 auto; }
.pick-row__actions .btn { height: 34px; font-size: 10.5px; padding: 0 12px; }
.pick-row__actions .link { font-size: 10.5px; text-align: center; }

/* order items are links to the product page */
a.order-line, a.summary-item { color: inherit; text-decoration: none; }
a.order-line:active, a.summary-item:active { opacity: .78; }
.order-line__name { text-decoration: underline; text-decoration-color: rgba(0,0,0,.14); }
