*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Several components below set their own `display` (flex/inline-flex),
   which otherwise ties with the UA stylesheet's [hidden] rule and wins on
   cascade order - toggling .hidden from JS needs this to actually hide
   anything. */
[hidden] {
  display: none !important;
}

:root {
  --color-primary: #0B7A63;
  --color-primary-pressed: #095C4B;
  --color-primary-tint: #E7F5F1;
  --color-success: #178A4C;
  --color-success-tint: #E4F4EA;
  --color-danger: #C0392B;
  --color-danger-tint: #FBEAE7;
  --color-warning: #B45309;
  --color-warning-tint: #FCF0DF;
  --color-bg: #F8F9F7;
  --color-surface: #FFFFFF;
  --color-ink: #17211E;
  --color-ink-2: #47564F;
  --color-ink-disabled: #93A29B;
  --color-border: #E4E9E6;
  --color-border-strong: #C9D2CD;

  --text-display: 500 32px / 38px system-ui, -apple-system, Roboto, sans-serif;
  --text-h1: 500 24px / 32px system-ui, -apple-system, Roboto, sans-serif;
  --text-h2: 500 17px / 24px system-ui, -apple-system, Roboto, sans-serif;
  --text-body: 400 16px / 25px system-ui, -apple-system, Roboto, sans-serif;
  --text-body-strong: 500 16px / 25px system-ui, -apple-system, Roboto, sans-serif;
  --text-label: 500 15px / 20px system-ui, -apple-system, Roboto, sans-serif;
  --text-caption: 400 13px / 18px system-ui, -apple-system, Roboto, sans-serif;
  --text-micro: 500 12px / 16px system-ui, -apple-system, Roboto, sans-serif;

  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 12px;
  --space-lg: 16px;
  --space-xl: 24px;
  --space-xxl: 32px;
  --space-xxxl: 48px;
  --space-hero: 64px;

  --radius-sm: 8px;
  --radius-md: 12px;

  --shadow-card: 0 1px 2px rgba(23,33,30,0.06);
  --shadow-raised: 0 4px 12px rgba(23,33,30,0.10);

  --dur-fast: 120ms;
  --dur-med: 200ms;
  --dur-slow: 300ms;
  --ease-out: cubic-bezier(0.2, 0, 0, 1);
}

html, body {
  height: 100%;
}

body {
  font: var(--text-body);
  color: var(--color-ink);
  background: #E9EDEB;
  min-height: 100vh;
  padding: var(--space-xl);
  -webkit-font-smoothing: antialiased;
}

:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

button:focus-visible,
input:focus-visible,
a:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

.app-frame {
  max-width: 420px;
  margin: 0 auto;
}

.switcher {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-surface);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  box-shadow: var(--shadow-raised);
  margin-bottom: var(--space-lg);
}

.switcher-row {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
}

.switcher-row + .switcher-row {
  margin-top: var(--space-sm);
}

.switcher-btn {
  flex: 0 0 auto;
  min-height: 36px;
  padding: 0 var(--space-md);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-surface);
  font: var(--text-label);
  font-size: 13px;
  color: var(--color-ink-2);
  cursor: pointer;
  transition: all var(--dur-fast) var(--ease-out);
}

.switcher-btn:hover {
  background: var(--color-primary-tint);
  color: var(--color-primary);
  border-color: var(--color-primary);
}

.switcher-btn.is-active {
  background: var(--color-ink);
  color: var(--color-surface);
  border-color: var(--color-ink);
}

.switcher-label {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  font: var(--text-micro);
  color: var(--color-ink-2);
  padding: 0 var(--space-xs);
  min-width: 60px;
}

.phone {
  background: var(--color-bg);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(23,33,30,0.18);
  position: relative;
}

.status-bar {
  height: 28px;
  background: var(--color-bg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--space-lg);
  font: 500 12px / 1 system-ui, sans-serif;
  color: var(--color-ink);
}

.status-bar__right {
  display: flex;
  align-items: center;
  gap: 6px;
}

.screen {
  display: none;
  flex-direction: column;
  min-height: 760px;
  background: var(--color-bg);
  position: relative;
  padding-bottom: calc(120px + var(--space-xl));
}

.screen.is-visible {
  display: flex;
}

.state {
  display: none;
  flex-direction: column;
}

.state.is-visible {
  display: flex;
}

.app-bar {
  height: 48px;
  background: var(--color-bg);
  display: flex;
  align-items: center;
  padding: 0 var(--space-lg);
  gap: var(--space-sm);
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid transparent;
}

.app-bar--bordered {
  border-bottom-color: var(--color-border);
  background: var(--color-surface);
}

.app-bar__back {
  width: 40px;
  height: 40px;
  border: none;
  background: transparent;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--color-ink);
  flex-shrink: 0;
  transition: background var(--dur-fast) var(--ease-out);
}

.app-bar__back:hover {
  background: var(--color-primary-tint);
}

.app-bar__back:active {
  background: rgba(23,33,30,0.06);
}

.app-bar__title {
  font: var(--text-h1);
  flex: 1;
  min-width: 0;
}

.content {
  padding: var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
  flex: 1;
}

.hero-content {
  padding: var(--space-hero) var(--space-xl) var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  align-items: flex-start;
}

.hero-content__headline {
  font: var(--text-h1);
  color: var(--color-ink);
}

.hero-content__caption {
  font: var(--text-body);
  color: var(--color-ink-2);
}

.section-title {
  font: var(--text-h2);
  margin-bottom: var(--space-sm);
}

.search-bar {
  flex: 1;
  height: 48px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  padding: 0 var(--space-md);
  gap: var(--space-sm);
  transition: all var(--dur-fast) var(--ease-out);
}

.search-bar--hero {
  height: 56px;
  border-width: 1.5px;
  border-color: var(--color-border-strong);
  padding: 0 var(--space-lg);
}

.search-bar--hero.is-focused,
.search-bar--hero:focus-within {
  border-color: var(--color-primary);
  border-width: 2px;
  padding: 0 calc(var(--space-lg) - 0.5px);
  box-shadow: var(--shadow-card);
}

.search-bar.is-focused,
.search-bar:focus-within {
  border-color: var(--color-primary);
  border-width: 2px;
  padding: 0 calc(var(--space-md) - 1px);
}

.search-bar__icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: var(--color-ink-disabled);
}

.search-bar--hero .search-bar__icon {
  width: 20px;
  height: 20px;
}

.search-bar__input {
  flex: 1;
  min-width: 0;
  border: none;
  outline: none;
  background: transparent;
  font: var(--text-body);
  color: var(--color-ink);
}

.search-bar--hero .search-bar__input {
  font-size: 17px;
}

.search-bar__input::placeholder {
  color: var(--color-ink-disabled);
}

.search-bar__clear {
  width: 28px;
  height: 28px;
  border: none;
  background: transparent;
  border-radius: 50%;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--color-ink-2);
  flex-shrink: 0;
}

.search-bar__clear:hover {
  background: var(--color-primary-tint);
}

.search-bar__clear.is-visible {
  display: flex;
}

.search-bar__clear:active {
  background: rgba(23,33,30,0.06);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  min-height: 36px;
  padding: 0 var(--space-md);
  background: var(--color-primary-tint);
  color: var(--color-primary);
  border-radius: var(--radius-sm);
  border: none;
  font: var(--text-label);
  font-size: 14px;
  cursor: pointer;
  transition: all var(--dur-fast) var(--ease-out);
}

.chip:hover {
  background: var(--color-primary);
  color: var(--color-surface);
}

.chip:active {
  background: var(--color-primary-pressed);
  color: var(--color-surface);
}

.chip--status {
  min-height: 28px;
  padding: 0 var(--space-sm);
  font: var(--text-micro);
}

.chip--status-success {
  background: var(--color-success-tint);
  color: var(--color-success);
}

.chip--status-saving {
  background: var(--color-success-tint);
  color: var(--color-success);
}

.chip--selected-tag {
  background: var(--color-primary);
  color: var(--color-surface);
  min-height: 24px;
  font: var(--text-micro);
  padding: 0 var(--space-sm);
}

.list {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.list-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  min-height: 72px;
  padding: var(--space-md) var(--space-lg);
  cursor: pointer;
  transition: background var(--dur-fast) var(--ease-out);
  position: relative;
}

.list-row:hover {
  background: rgba(23,33,30,0.02);
}

.list-row:active {
  background: rgba(23,33,30,0.06);
}

.list-row + .list-row {
  border-top: 1px solid var(--color-border);
}

.list-row.is-selected {
  background: var(--color-primary-tint);
}

.list-row.is-selected::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--color-primary);
}

.list-row--not-available {
  opacity: 0.55;
  cursor: default;
  pointer-events: none;
}

.list-row__info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.list-row__title {
  font: var(--text-body-strong);
  color: var(--color-ink);
}

.list-row__meta {
  font: var(--text-caption);
  color: var(--color-ink-2);
}

.list-row__meta--with-icon {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.list-row__trailing {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.list-row__price {
  font: var(--text-body-strong);
  color: var(--color-ink);
  font-variant-numeric: tabular-nums;
}

.list-row__tag {
  position: absolute;
  top: var(--space-sm);
  right: var(--space-lg);
}

.pharmacy-list-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-md);
  min-height: 84px;
  padding: var(--space-md) var(--space-lg);
  cursor: pointer;
  transition: background var(--dur-fast) var(--ease-out);
  position: relative;
  background: var(--color-surface);
}

.pharmacy-list-row:hover {
  background: rgba(23,33,30,0.02);
}

.pharmacy-list-row + .pharmacy-list-row {
  border-top: 1px solid var(--color-border);
}

.pharmacy-list-row.is-selected {
  background: var(--color-primary-tint);
}

.pharmacy-list-row.is-selected::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--color-primary);
}

.pharmacy-list-row--available {
  animation: animPop var(--dur-slow) var(--ease-out);
}

.pharmacy-list-row--checking {
  animation: breathe 1.6s ease-in-out infinite;
}

.pharmacy-list-row--not-available {
  opacity: 0.55;
  cursor: default;
  pointer-events: none;
}

.pharmacy-list-row__avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(23,33,30,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font: var(--text-body-strong);
  color: var(--color-ink-2);
  flex-shrink: 0;
}

.pharmacy-list-row__content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.pharmacy-list-row__name {
  font: var(--text-body-strong);
  color: var(--color-ink);
}

.pharmacy-list-row__meta {
  font: var(--text-caption);
  color: var(--color-ink-2);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.pharmacy-list-row__status {
  flex-shrink: 0;
  align-self: center;
}

@keyframes animPop {
  0% { transform: scale(0.97); }
  60% { transform: scale(1.02); }
  100% { transform: scale(1); }
}

@keyframes breathe {
  0%, 100% { opacity: 0.55; }
  50% { opacity: 1; }
}

.bottom-sheet {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--color-surface);
  border-top-left-radius: var(--radius-md);
  border-top-right-radius: var(--radius-md);
  box-shadow: var(--shadow-raised);
  padding: var(--space-lg) var(--space-lg) var(--space-xxl);
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  z-index: 20;
  animation: slideUp var(--dur-slow) var(--ease-out);
}

@keyframes slideUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

.bottom-sheet__grabber {
  width: 40px;
  height: 4px;
  background: var(--color-border);
  border-radius: 2px;
  margin: 0 auto var(--space-sm);
}

.bottom-sheet__medicine {
  font: var(--text-body-strong);
}

.stepper {
  display: flex;
  align-items: center;
  height: 48px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--color-surface);
}

.stepper__btn {
  width: 44px;
  height: 48px;
  border: none;
  background: transparent;
  color: var(--color-ink);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: background var(--dur-fast) var(--ease-out), opacity var(--dur-fast);
}

.stepper__btn:hover:not(:disabled) {
  background: var(--color-primary-tint);
  color: var(--color-primary);
}

.stepper__btn:active:not(:disabled) {
  background: rgba(23,33,30,0.06);
}

.stepper__btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.stepper__value {
  flex: 1;
  min-width: 0;
  text-align: center;
  font: var(--text-body-strong);
  font-variant-numeric: tabular-nums;
}

.price-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: var(--space-sm) 0;
  border-top: 1px solid var(--color-border);
}

.price-row__label {
  font: var(--text-caption);
  color: var(--color-ink-2);
}

.price-row__total {
  font: var(--text-body-strong);
  font-variant-numeric: tabular-nums;
  color: var(--color-ink);
}

.empty-state {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-xxl) var(--space-lg);
  gap: var(--space-md);
  min-height: 400px;
}

.empty-state__icon {
  width: 48px;
  height: 48px;
  color: var(--color-ink-disabled);
}

.empty-state__title {
  font: var(--text-h2);
  color: var(--color-ink);
}

.empty-state__caption {
  font: var(--text-caption);
  color: var(--color-ink-2);
  max-width: 260px;
}

.text-btn {
  height: 44px;
  border: none;
  background: transparent;
  padding: 0 var(--space-sm);
  color: var(--color-primary);
  font: var(--text-label);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background var(--dur-fast) var(--ease-out);
}

.text-btn:hover {
  background: var(--color-primary-tint);
}

.text-btn:active {
  background: var(--color-primary-tint);
}

.cta-bar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--color-surface);
  padding: var(--space-md) var(--space-lg) var(--space-lg);
  box-shadow: var(--shadow-raised);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  z-index: 15;
  border-top: 1px solid var(--color-border);
}

.cta-bar--sheet {
  position: static;
  padding: 0;
  box-shadow: none;
  border: none;
  gap: var(--space-sm);
}

.cta-actions-inline {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  width: 100%;
}

.btn {
  min-height: 52px;
  border-radius: var(--radius-md);
  font: var(--text-label);
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: 0 var(--space-lg);
  transition: background var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out), opacity var(--dur-fast);
  width: 100%;
  position: relative;
  user-select: none;
}

.btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}

.btn--primary {
  background: var(--color-ink);
  color: var(--color-surface);
}

.btn--primary:hover:not(:disabled) {
  background: var(--color-primary);
}

.btn--primary:active:not(:disabled) {
  background: var(--color-primary-pressed);
}

.btn--secondary {
  background: transparent;
  color: var(--color-ink);
  border: 1px solid var(--color-ink);
}

.btn--secondary:hover:not(:disabled) {
  background: var(--color-primary-tint);
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.btn.is-loading {
  pointer-events: none;
}

.btn__spinner {
  width: 18px;
  height: 18px;
  border: 1.5px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.btn--primary .btn__spinner {
  border-color: var(--color-surface);
  border-right-color: transparent;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.status-checking {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  font: var(--text-caption);
  color: var(--color-ink-disabled);
}

.status-checking__dots {
  display: inline-flex;
  gap: 3px;
}

.status-checking__dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--color-ink-disabled);
  animation: bounceDot 1.1s ease-in-out infinite;
}

.status-checking__dot:nth-child(2) { animation-delay: 0.15s; }
.status-checking__dot:nth-child(3) { animation-delay: 0.3s; }

@keyframes bounceDot {
  0%, 80%, 100% { transform: translateY(0); opacity: 0.4; }
  40% { transform: translateY(-4px); opacity: 1; }
}

.status-unavailable {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font: var(--text-caption);
  color: var(--color-ink-2);
}

.status-unavailable__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-ink-2);
}

.progress-block {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  padding: var(--space-md) 0 0;
  border-top: 1px solid var(--color-border);
  margin-top: var(--space-sm);
}

.progress-block__label {
  font: var(--text-body-strong);
  color: var(--color-ink);
}

.indeterminate-bar {
  position: relative;
  width: 100%;
  height: 3px;
  background: var(--color-border);
  border-radius: 2px;
  overflow: hidden;
}

.indeterminate-bar::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 40%;
  background: var(--color-ink);
  border-radius: 2px;
  animation: slideBar 1.2s ease-in-out infinite;
}

@keyframes slideBar {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(350%); }
}

.timer-ring {
  width: 44px;
  height: 44px;
  position: relative;
  flex-shrink: 0;
}

.timer-ring__svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.timer-ring__track {
  stroke: var(--color-border);
  stroke-width: 3;
  fill: none;
}

.timer-ring__progress {
  stroke: var(--color-ink);
  stroke-width: 3;
  fill: none;
  stroke-linecap: round;
  transition: stroke-dashoffset 1s linear;
}

.timer-ring__label {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font: 500 11px / 1 system-ui, sans-serif;
  font-variant-numeric: tabular-nums;
  color: var(--color-ink);
}

.summary-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  box-shadow: none;
}

.summary-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
}

.summary-card__avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(23,33,30,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font: var(--text-body-strong);
  color: var(--color-ink-2);
  flex-shrink: 0;
}

.summary-card__pharmacy {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.summary-card__pharmacy-name {
  font: var(--text-h2);
  color: var(--color-ink);
}

.summary-card__pharmacy-meta {
  font: var(--text-caption);
  color: var(--color-ink-2);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.price-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  box-shadow: none;
}

.price-card__mrp {
  font: var(--text-caption);
  color: var(--color-ink-2);
  text-decoration: line-through;
  font-variant-numeric: tabular-nums;
}

.price-card__main {
  display: flex;
  align-items: baseline;
  gap: var(--space-sm);
  flex-wrap: wrap;
}

.price-card__price {
  font: var(--text-display);
  font-variant-numeric: tabular-nums;
  color: var(--color-ink);
}

.price-card__confirm {
  font: var(--text-caption);
  color: var(--color-ink-2);
  margin-top: var(--space-xs);
}

.notice-row {
  background: var(--color-warning-tint);
  border-left: 3px solid var(--color-warning);
  border-radius: var(--radius-sm);
  padding: var(--space-md) var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.notice-row__title {
  font: var(--text-body-strong);
  color: var(--color-warning);
}

.notice-row__body {
  font: var(--text-caption);
  color: var(--color-ink-2);
}

.alert-inline {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  align-items: flex-start;
  text-align: left;
  width: 100%;
}

.alert-inline--centered {
  align-items: center;
  text-align: center;
}

.alert-inline__header {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  width: 100%;
}

.alert-inline--centered .alert-inline__header {
  justify-content: center;
}

.alert-inline__icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.alert-inline__icon--64 {
  width: 64px;
  height: 64px;
}

.alert-inline__icon--success {
  background: var(--color-success-tint);
  color: var(--color-success);
}

.alert-inline__icon--warning {
  background: var(--color-warning-tint);
  color: var(--color-warning);
}

.alert-inline__icon--danger {
  background: var(--color-danger-tint);
  color: var(--color-danger);
}

.alert-inline__texts {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  min-width: 0;
}

.alert-inline--centered .alert-inline__texts {
  align-items: center;
}

.alert-inline__title {
  font: var(--text-h2);
  color: var(--color-ink);
}

.alert-inline__title--h1 {
  font: var(--text-h1);
}

.alert-inline__caption {
  font: var(--text-caption);
  color: var(--color-ink-2);
}

.alert-inline__trust {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  font: var(--text-caption);
  color: var(--color-ink-2);
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: var(--space-sm) var(--space-md);
  width: 100%;
}

.alert-inline__trust-icon {
  color: var(--color-success);
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.alert-inline__actions {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  width: 100%;
}

.order-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  box-shadow: none;
}

.order-card__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-sm);
}

.order-card__row--main {
  padding-bottom: var(--space-sm);
  border-bottom: 1px solid var(--color-border);
}

.order-card__label {
  font: var(--text-caption);
  color: var(--color-ink-2);
}

.order-card__value {
  font: var(--text-body-strong);
  font-variant-numeric: tabular-nums;
  color: var(--color-ink);
}

.order-card__item {
  font: var(--text-body);
  color: var(--color-ink);
}

.order-card__paid {
  font: var(--text-body-strong);
  font-variant-numeric: tabular-nums;
  color: var(--color-ink);
}

.success-mark {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--color-success-tint);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-success);
  animation: animPop var(--dur-slow) var(--ease-out);
  flex-shrink: 0;
}

.success-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-lg);
  padding: var(--space-xl) 0 var(--space-md);
  text-align: center;
}

.success-stack__title {
  font: var(--text-h1);
  color: var(--color-ink);
}

.steps-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  padding-left: 0;
  list-style: none;
  counter-reset: step;
}

.steps-list__item {
  display: flex;
  gap: var(--space-md);
  counter-increment: step;
}

.steps-list__num {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--color-primary-tint);
  color: var(--color-primary);
  font: var(--text-micro);
  display: flex;
  align-items: center;
  justify-content: center;
}

.steps-list__text {
  font: var(--text-body);
  color: var(--color-ink);
  padding-top: 2px;
  flex: 1;
}

.muted-caption {
  font: var(--text-caption);
  color: var(--color-ink-2);
}

.icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  stroke-width: 1.8;
}

.icon--14 { width: 14px; height: 14px; }
.icon--20 { width: 20px; height: 20px; }
.icon--24 { width: 24px; height: 24px; }
.icon--32 { width: 32px; height: 32px; }

.icon-inline {
  vertical-align: -2px;
  margin-right: 2px;
}

.pharmacy-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
}

.pharmacy-summary {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.pharmacy-summary__name {
  font: var(--text-h2);
  color: var(--color-ink);
}

.pharmacy-summary__meta {
  font: var(--text-caption);
  color: var(--color-ink-2);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.medicine-line {
  font: var(--text-body);
  color: var(--color-ink-2);
  display: flex;
  justify-content: space-between;
  gap: var(--space-md);
  align-items: baseline;
}

.medicine-line__mrp {
  font: var(--text-caption);
  color: var(--color-ink-2);
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
}

.timer-caption {
  font: var(--text-caption);
  color: var(--color-ink-2);
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
}

.text-btn-row {
  display: flex;
  justify-content: center;
  padding-top: var(--space-md);
}

.notice-slot {
  min-height: 96px;
  display: flex;
  flex-direction: column;
}

.recent-section {
  display: flex;
  flex-direction: column;
}

.recent-section.is-hidden {
  display: none;
}

.u-padding-top-none {
  padding-top: 0;
}

.u-top-xxl {
  padding-top: var(--space-xxl);
}

.u-max-420 {
  max-width: 420px;
  width: 100%;
}

.u-title-slot {
  padding-left: 44px;
}

@media (min-width: 768px) {
  body {
    padding: var(--space-xxl);
  }

  .app-frame {
    max-width: 720px;
  }

  .phone {
    border-radius: var(--radius-md);
    min-height: 100vh;
  }

  .screen {
    min-height: 900px;
    padding-bottom: calc(160px + var(--space-xxl));
  }

  .content {
    padding: var(--space-xl) var(--space-xxl);
    gap: var(--space-xl);
  }

  .hero-content {
    padding: var(--space-hero) var(--space-xxl) var(--space-xl);
    max-width: 520px;
    margin: 0 auto;
    width: 100%;
    align-items: stretch;
  }

  .search-bar--hero {
    max-width: 520px;
    margin: 0 auto;
    width: calc(100% - 2 * var(--space-xxl));
  }

  .bottom-sheet {
    position: fixed;
    left: 50%;
    transform: translateX(-50%);
    right: auto;
    bottom: var(--space-xxl);
    width: 480px;
    max-width: calc(100vw - 2 * var(--space-xxl));
    border-radius: var(--radius-md);
    padding: var(--space-xl);
    animation: dialogPop var(--dur-slow) var(--ease-out);
  }

  @keyframes dialogPop {
    from { opacity: 0; transform: translateX(-50%) scale(0.96); }
    to { opacity: 1; transform: translateX(-50%) scale(1); }
  }

  .cta-bar {
    padding: var(--space-lg) var(--space-xxl) var(--space-xl);
    gap: var(--space-md);
  }

  .cta-bar--sheet {
    padding: 0;
    gap: var(--space-sm);
  }

  .btn {
    min-height: 52px;
  }
}
