:root {
  --page-bg: #070b14;
  --panel-bg: #172033;
  --panel-bg-strong: #101827;
  --panel-border: #334362;
  --panel-border-strong: #496184;
  --text-main: #e5ebf7;
  --text-muted: #95a1ba;
  --text-soft: #b8c2d9;
  --accent-start: #7c3aed;
  --accent-end: #22c55e;
  --accent-link: #8fd3ff;
  --accent-best: #35d399;
  --accent-warn: #f87171;
  --shadow-lg: 0 28px 80px rgba(2, 8, 23, 0.48);
  --shadow-md: 0 14px 42px rgba(2, 8, 23, 0.28);
  --sticky-progress-top: 1rem;
  --sticky-shop-header-top: 0rem;
}

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

html {
  background: linear-gradient(180deg, #0e1424 0%, #070b14 32%, #03050a 100%);
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text-main);
  font-family: "Avenir Next", "Segoe UI", "Helvetica Neue", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(124, 58, 237, 0.14), transparent 50rem),
    radial-gradient(circle at top right, rgba(34, 197, 94, 0.1), transparent 36rem),
    linear-gradient(180deg, #0e1424 0%, #070b14 32%, #03050a 100%);
}

a {
  color: var(--accent-link);
}

button,
input,
textarea {
  font: inherit;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.search-page {
  padding: 3rem clamp(1rem, 2vw, 2.5rem) 4rem;
}

.search-shell {
  width: min(1180px, 100%);
  margin: 0 auto;
}

.search-page[data-search-id] .search-shell {
  width: min(1800px, 100%);
}

@media (min-width: 1025px) {
  .search-shell {
    width: min(1180px, 80vw);
  }

  .search-page[data-search-id] .search-shell {
    width: min(1800px, 80vw);
  }
}

.search-shell__header {
  position: relative;
  z-index: 35;
  margin-bottom: 1.5rem;
}

.search-shell__home-link {
  display: inline-block;
  color: inherit;
  text-decoration: none;
}

.search-shell__home-link:hover .search-shell__title,
.search-shell__home-link:hover .search-shell__beta-badge {
  color: #bae6fd;
}

.search-shell__home-link:focus-visible {
  outline: 3px solid rgba(125, 211, 252, 0.55);
  outline-offset: 0.35rem;
  border-radius: 0.4rem;
}

.search-shell__title {
  margin: 0;
  color: #bfdbfe;
  font-size: clamp(2.4rem, 5vw, 4rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.search-shell__brand {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  align-items: flex-start;
}

.search-shell__beta-badge {
  display: inline-flex;
  align-items: center;
  min-height: 1.35rem;
  padding: 0.28rem 0.45rem;
  color: #dbeafe;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1;
  text-transform: uppercase;
  background: #1d355f;
  border: 1px solid #315f9c;
  border-radius: 0.38rem;
}

.search-shell__subtitle {
  max-width: 48rem;
  margin: 0.9rem 0 0;
  color: var(--text-muted);
  font-size: 1.15rem;
  line-height: 1.6;
}

.search-shell__alert {
  margin: 0 0 1rem;
  padding: 1rem 1.1rem;
  color: #fee2e2;
  background: rgba(127, 29, 29, 0.7);
  border: 1px solid rgba(248, 113, 113, 0.35);
  border-radius: 1rem;
}

.search-shell__notice {
  margin: 0 0 1rem;
  padding: 1rem 1.1rem;
  color: #d1fae5;
  background: rgba(6, 95, 70, 0.42);
  border: 1px solid rgba(52, 211, 153, 0.35);
  border-radius: 1rem;
}

.search-panel,
.recent-searches,
.searched-cards,
.progress-panel,
.purchase-recommendation,
.results-shell__empty,
.shop-section {
  background: rgba(23, 32, 51, 0.97);
  border: 1px solid var(--panel-border);
  border-radius: 1.4rem;
  box-shadow: var(--shadow-md);
}

.search-panel {
  padding: 1.25rem;
  margin-bottom: 1.1rem;
}

.search-onboarding {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.65rem 0.85rem;
  margin: 0 0 1.1rem;
}

.search-onboarding__header {
  grid-column: 1 / -1;
}

.search-onboarding__heading {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 800;
  line-height: 1.2;
}

.search-onboarding__card {
  display: grid;
  grid-template-columns: 2.45rem minmax(0, 1fr);
  gap: 0.65rem;
  min-width: 0;
  min-height: 6.4rem;
  padding: 0.9rem;
  color: inherit;
  background: rgba(23, 32, 51, 0.97);
  border: 1px solid var(--panel-border);
  border-radius: 1rem;
  box-shadow: var(--shadow-md);
}

.search-onboarding__media {
  position: relative;
  min-height: 2.45rem;
  overflow: hidden;
}

.search-onboarding__body {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.search-onboarding__title {
  margin: 0 0 0.35rem;
  font-size: 1rem;
  line-height: 1.2;
}

.search-onboarding__copy {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.86rem;
  line-height: 1.42;
}

.search-onboarding__link {
  color: #bfdbfe;
  font-weight: 750;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.14em;
}

.search-onboarding__link:hover {
  color: #e0f2fe;
}

.search-onboarding__link:focus-visible {
  outline: 3px solid rgba(125, 211, 252, 0.55);
  outline-offset: 0.12rem;
  border-radius: 0.18rem;
}

.search-onboarding__icon {
  position: absolute;
  inset: 50% auto auto 50%;
  width: 1.95rem;
  height: 1.95rem;
  color: #9a7a58;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
  transform: translate(-50%, -50%);
}

@media (max-width: 980px) {
  .search-onboarding {
    grid-template-columns: 1fr;
    gap: 0.65rem;
  }

  .search-onboarding__card {
    grid-template-columns: 2.25rem minmax(0, 1fr);
    gap: 0.5rem;
    min-height: 0;
  }

  .search-onboarding__media {
    min-height: 2.25rem;
  }
}

.recent-searches {
  padding: 1rem 1.1rem;
  margin-bottom: 1.1rem;
}

.recent-searches__header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  margin-bottom: 0.8rem;
}

.recent-searches__title {
  margin: 0;
  font-size: 1.2rem;
  line-height: 1.2;
}

.recent-searches__list {
  display: grid;
  gap: 0.55rem;
}

.recent-searches__item {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  min-width: 0;
  padding: 0.75rem 0.85rem;
  color: inherit;
  text-decoration: none;
  background: rgba(18, 28, 47, 0.78);
  border: 1px solid rgba(58, 76, 112, 0.82);
  border-radius: 0.85rem;
}

.recent-searches__item:hover {
  border-color: rgba(125, 211, 252, 0.62);
  background: rgba(23, 36, 59, 0.9);
}

.recent-searches__item:focus-visible {
  outline: 3px solid rgba(125, 211, 252, 0.55);
  outline-offset: 0.18rem;
}

.recent-searches__body,
.recent-searches__query,
.recent-searches__meta {
  display: block;
  min-width: 0;
}

.recent-searches__query {
  overflow: hidden;
  color: var(--text-main);
  font-weight: 800;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.recent-searches__meta {
  margin-top: 0.18rem;
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.35;
}

.recent-searches__view {
  flex: 0 0 auto;
  padding: 0;
  color: #e0f2fe;
  font-size: 0.84rem;
  font-weight: 700;
}

.recent-searches__view::after {
  margin-left: 0.22rem;
  content: "→";
}

.search-panel__validation-warning {
  padding: 0.9rem 1rem;
  margin: 0.85rem 0 0;
  color: #fee2e2;
  background: rgba(127, 29, 29, 0.36);
  border: 1px solid rgba(248, 113, 113, 0.35);
  border-radius: 0.9rem;
}

.search-panel__validation-title {
  margin: 0;
  font-size: 1rem;
  line-height: 1.3;
}

.search-panel__validation-copy {
  margin: 0.35rem 0 0;
  color: #fecaca;
  line-height: 1.45;
}

.search-panel__validation-copy--solo {
  margin: 0;
}

.search-panel__validation-list {
  display: grid;
  gap: 0.25rem;
  padding: 0;
  margin: 0.7rem 0 0;
  list-style: none;
}

.search-panel__validation-list li {
  display: flex;
  gap: 0.55rem;
  align-items: baseline;
}

.search-panel__validation-position {
  flex: 0 0 auto;
  color: #fca5a5;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
}

.searched-cards {
  position: relative;
  padding: 0.85rem 1rem;
  margin-bottom: 1.1rem;
}

.searched-cards__summary {
  display: flex;
  justify-content: space-between;
  gap: 0.7rem;
  align-items: flex-start;
  min-height: 2.15rem;
  padding-right: 10.4rem;
  cursor: pointer;
  list-style: none;
}

.searched-cards__summary::-webkit-details-marker {
  display: none;
}

.searched-cards__title {
  display: block;
  font-size: 1.2rem;
  font-weight: 800;
  line-height: 1.2;
}

.searched-cards__meta {
  display: block;
  margin-top: 0.2rem;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.searched-cards__toggle {
  flex: 0 0 auto;
  color: var(--accent-link);
  font-size: 0.82rem;
  font-weight: 700;
}

.searched-cards__toggle::before {
  content: "Hide";
}

.searched-cards__details:not([open]) .searched-cards__toggle::before {
  content: "Show";
}

.searched-cards__new-search {
  position: absolute;
  top: 0.85rem;
  right: 1rem;
  padding: 0.46rem 0.7rem;
  color: #e0f2fe;
  font-size: 0.84rem;
  font-weight: 700;
  text-decoration: none;
  background: rgba(14, 165, 233, 0.18);
  border: 1px solid rgba(125, 211, 252, 0.5);
  border-radius: 999px;
}

.searched-cards__new-search:hover {
  color: var(--text-main);
  border-color: rgba(125, 211, 252, 0.78);
}

.searched-cards__list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 0.18rem 0.75rem;
  padding: 0;
  margin: 0.55rem 0 0;
  list-style: none;
}

.searched-cards__item {
  display: grid;
  grid-template-columns: 2.1rem minmax(0, 1fr);
  gap: 0.42rem;
  align-items: start;
  min-width: 0;
  padding: 0.16rem 0;
  color: var(--text-soft);
}

.searched-cards__quantity {
  color: var(--text-muted);
  font-weight: 800;
  text-align: right;
}

.searched-cards__body,
.searched-cards__name,
.searched-cards__printing {
  display: block;
  min-width: 0;
}

.searched-cards__name {
  overflow-wrap: anywhere;
}

.searched-cards__printing {
  margin-top: 0.14rem;
  color: var(--text-muted);
  font-size: 0.8rem;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.search-panel__section {
  display: grid;
  gap: 0.7rem;
  margin-bottom: 1rem;
}

.search-panel__shops {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 0.8rem 1rem;
}

.search-panel__shop-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--text-soft);
  font-size: 1rem;
}

.search-panel__shop-pill input {
  width: 1rem;
  height: 1rem;
  accent-color: #2563eb;
}

.search-panel__shop-pill--disabled {
  color: rgba(148, 163, 184, 0.55);
}

.search-panel__shop-pill--disabled input {
  cursor: not-allowed;
}

.search-panel__shop-shortcuts {
  display: flex;
  gap: 0.55rem;
}

.search-panel__shortcut {
  padding: 0.35rem 0.6rem;
  color: var(--accent-link);
  background: rgba(18, 28, 47, 0.82);
  border: 1px solid var(--panel-border);
  border-radius: 999px;
  cursor: pointer;
}

.search-panel__shortcut:hover {
  color: var(--text-main);
  border-color: rgba(125, 211, 252, 0.65);
}

.search-panel__option {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  margin-bottom: 1rem;
  padding: 0.8rem 0.9rem;
  color: var(--text-soft);
  background: rgba(11, 19, 36, 0.64);
  border: 1px solid var(--panel-border);
  border-radius: 0.75rem;
}

.search-panel__option-checkbox {
  width: 1rem;
  height: 1rem;
  margin-top: 0.18rem;
  accent-color: #2563eb;
}

.search-panel__option-title {
  display: block;
  color: var(--text-main);
  font-weight: 800;
}

.search-panel__option-copy {
  display: block;
  margin-top: 0.25rem;
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.45;
}

.search-panel__identity-option {
  display: grid;
  gap: 0.55rem;
  padding: 0.2rem 0 1rem;
  background: transparent;
  border: 0;
  border-radius: 0;
}

.search-panel__identity-checks {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem 1.25rem;
}

.search-panel__identity-check {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--text-soft);
  cursor: pointer;
}

.search-panel__identity-example {
  color: var(--text-muted);
}

.search-panel__identity-checkbox {
  width: 1rem;
  height: 1rem;
  accent-color: #2563eb;
}

.search-panel__mode {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.search-panel__mode-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 0.8rem;
  color: var(--text-muted);
  border: 1px solid var(--panel-border);
  border-radius: 999px;
}

.search-panel__mode-pill--active {
  color: #fff;
  border-color: rgba(96, 165, 250, 0.55);
  background: rgba(37, 99, 235, 0.22);
}

.search-panel__field {
  display: grid;
  gap: 0.7rem;
  margin-bottom: 1rem;
}

.search-panel__prefill-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.search-panel__prefill-chip {
  display: inline-grid;
  gap: 0.12rem;
  max-width: min(100%, 18rem);
  padding: 0.55rem 0.75rem;
  color: var(--text-main);
  text-align: left;
  background: rgba(15, 23, 42, 0.62);
  border: 1px solid var(--panel-border);
  border-radius: 999px;
  cursor: pointer;
}

.search-panel__prefill-chip:hover,
.search-panel__prefill-chip:focus-visible {
  border-color: rgba(96, 165, 250, 0.55);
  background: rgba(30, 41, 59, 0.72);
}

.search-panel__prefill-chip:focus-visible {
  outline: none;
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.14);
}

.search-panel__prefill-name,
.search-panel__prefill-source {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.search-panel__prefill-name {
  font-size: 0.85rem;
  font-weight: 800;
  line-height: 1.15;
}

.search-panel__prefill-source {
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.15;
}

.search-panel__textarea {
  width: 100%;
  min-height: 14rem;
  padding: 1rem 1.1rem;
  color: var(--text-main);
  background: #0b1324;
  border: 1px solid var(--panel-border);
  border-radius: 1rem;
  resize: vertical;
}

.search-panel__textarea:focus {
  outline: none;
  border-color: rgba(96, 165, 250, 0.55);
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.14);
}

.search-panel__textarea--error {
  border-color: rgba(248, 113, 113, 0.7);
  box-shadow: 0 0 0 1px rgba(248, 113, 113, 0.14);
}

.search-panel__textarea--error:focus {
  border-color: rgba(248, 113, 113, 0.82);
  box-shadow: 0 0 0 4px rgba(248, 113, 113, 0.14);
}

.search-panel__limit-warning {
  margin: 0.65rem 0 0;
  color: #fca5a5;
  font-size: 0.95rem;
  font-weight: 700;
}

.search-panel__estimate {
  display: grid;
  gap: 0.15rem;
  margin-top: 0.9rem;
  color: var(--text-soft);
  font-size: 0.92rem;
  line-height: 1.35;
}

.search-panel__estimate strong {
  color: var(--text-main);
  font-weight: 800;
}

.search-panel__estimate-note {
  color: var(--text-muted);
  font-size: 0.88rem;
}

.search-panel__actions {
  display: flex;
  gap: 0.8rem;
  margin-top: 1rem;
}

.search-panel__submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.95rem 1.45rem;
  color: #fff;
  font-weight: 700;
  background: linear-gradient(135deg, var(--accent-start), #8b5cf6);
  border: 0;
  border-radius: 0.95rem;
  box-shadow: 0 12px 26px rgba(124, 58, 237, 0.32);
  cursor: pointer;
}

.search-panel__submit-icon {
  width: 1.05rem;
  height: 1.05rem;
  flex: 0 0 auto;
}

.search-panel__submit:hover {
  filter: brightness(1.06);
}

.search-panel__submit:disabled {
  color: rgba(255, 255, 255, 0.72);
  background: #475569;
  box-shadow: none;
  cursor: not-allowed;
  filter: none;
}

.progress-panel {
  position: sticky;
  top: var(--sticky-progress-top);
  z-index: 30;
  padding: 1rem 1.15rem 1.1rem;
  margin-bottom: 1.35rem;
  backdrop-filter: blur(10px);
}

.progress-panel__header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 0.9rem;
}

.progress-panel__title {
  margin: 0;
  font-size: 1.3rem;
}

.progress-panel__meta,
.progress-panel__hint {
  margin: 0.3rem 0 0;
  color: var(--text-muted);
}

.progress-panel__hint--error {
  color: #fca5a5;
}

.progress-panel__count {
  color: var(--text-soft);
  font-size: 1.3rem;
  font-weight: 700;
}

.progress-panel__actions {
  display: flex;
  justify-content: flex-end;
  margin: -0.35rem 0 0.75rem;
}

.progress-panel__bar {
  height: 0.82rem;
  overflow: hidden;
  background: #0a1220;
  border: 1px solid var(--panel-border);
  border-radius: 999px;
}

.progress-panel__bar-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #38bdf8, var(--accent-end));
  transition: width 180ms ease;
}

.results-shell {
  display: grid;
  gap: 1.25rem;
}

.search-results-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  gap: 1.25rem;
  align-items: stretch;
}

.search-results-layout__sidebar,
.search-results-layout__main {
  min-width: 0;
}

.purchase-recommendation {
  display: grid;
  gap: 1.05rem;
  padding: 1rem 1.1rem;
  margin-bottom: 1rem;
}

.purchase-recommendation__header {
  display: grid;
  gap: 0.75rem;
}

.purchase-recommendation__header--plans {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}

.purchase-recommendation__eyebrow,
.purchase-recommendation__title,
.purchase-recommendation__stores-title,
.purchase-recommendation__mode,
.purchase-recommendation__note {
  margin: 0;
}

.purchase-recommendation__eyebrow {
  color: var(--accent-best);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.purchase-recommendation__title {
  margin-top: 0.18rem;
  font-size: 1.35rem;
  line-height: 1.15;
}

.purchase-recommendation__subtitle {
  max-width: 42rem;
  margin: 0.28rem 0 0;
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.35;
}

.purchase-recommendation__mode {
  margin-top: 0.28rem;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.purchase-recommendation__add {
  min-height: 2.1rem;
  padding: 0.4rem 0.75rem;
  color: #e0f2fe;
  font: inherit;
  font-size: 0.86rem;
  font-weight: 500;
  background: rgba(14, 165, 233, 0.18);
  border: 1px solid rgba(125, 211, 252, 0.5);
  border-radius: 999px;
  cursor: pointer;
}

.purchase-recommendation__add:hover,
.purchase-recommendation__add:focus-visible {
  color: var(--text-main);
  border-color: rgba(125, 211, 252, 0.78);
  background: rgba(14, 165, 233, 0.26);
  outline: 3px solid rgba(125, 211, 252, 0.18);
  outline-offset: 0.12rem;
}

.purchase-recommendation--status {
  padding-block: 1.4rem;
}

.purchase-recommendation__status {
  margin: 0.35rem 0 0;
  color: var(--text-muted);
}

.purchase-recommendation__totals,
.purchase-recommendation__stores {
  display: grid;
  gap: 0.45rem;
}

.purchase-recommendation__totals {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.7rem;
  color: var(--text-soft);
  font-size: 0.96rem;
}

.purchase-recommendation__total {
  position: relative;
  display: grid;
  gap: 0.1rem;
  min-width: 0;
  padding: 0.6rem 0.7rem;
  background: rgba(23, 32, 51, 0.46);
  border: 1px solid rgba(73, 97, 132, 0.38);
  border-radius: 0.65rem;
}

.purchase-recommendation__total-label {
  display: inline-flex;
  gap: 0.32rem;
  align-items: center;
}

.purchase-recommendation__tooltip {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 1.1rem;
  height: 1.1rem;
  color: var(--text-muted);
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1;
  border: 1px solid rgba(149, 161, 186, 0.6);
  border-radius: 999px;
  cursor: help;
}

.purchase-recommendation__tooltip::after {
  position: absolute;
  bottom: calc(100% + 0.55rem);
  left: 50%;
  z-index: 25;
  width: min(19rem, 72vw);
  padding: 0.6rem 0.7rem;
  color: var(--text-main);
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.35;
  text-align: left;
  pointer-events: none;
  content: attr(data-tooltip);
  background: rgba(2, 8, 23, 0.96);
  border: 1px solid var(--panel-border-strong);
  border-radius: 0.65rem;
  box-shadow: var(--shadow-md);
  opacity: 0;
  transform: translate(-50%, 0.25rem);
  transition: opacity 140ms ease, transform 140ms ease;
}

.purchase-recommendation__tooltip:hover::after,
.purchase-recommendation__tooltip:focus-visible::after {
  opacity: 1;
  transform: translate(-50%, 0);
}

.purchase-recommendation__stores-title {
  margin-top: 0.35rem;
  margin-bottom: 0.35rem;
  color: var(--text-soft);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.purchase-recommendation__stores {
  margin-top: 0.25rem;
  border-top: 1px solid rgba(73, 97, 132, 0.38);
}

.purchase-recommendation__store {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 0.7rem;
  align-items: center;
  min-height: 2.35rem;
  padding: 0.55rem 0;
  color: var(--text-soft);
  text-decoration: none;
  border-bottom: 1px solid rgba(73, 97, 132, 0.28);
}

.purchase-recommendation__store:hover,
.purchase-recommendation__store:focus-visible {
  color: var(--text-main);
  background: rgba(23, 32, 51, 0.42);
}

.purchase-recommendation__store:focus-visible {
  outline: 3px solid rgba(74, 222, 128, 0.24);
  outline-offset: 0.16rem;
}

.purchase-recommendation__total strong,
.purchase-recommendation__store-name {
  color: var(--text-main);
}

.purchase-recommendation__store-name {
  min-width: 0;
  overflow-wrap: anywhere;
  font-weight: 500;
}

.purchase-plans-table {
  width: calc(100% + 2.2rem);
  margin: 0 -1.1rem;
  border-collapse: collapse;
  overflow: hidden;
  border: 1px solid rgba(73, 97, 132, 0.32);
  border-right: 0;
  border-left: 0;
}

.purchase-plans-table__row {
  color: var(--text-soft);
  border-bottom: 1px solid rgba(73, 97, 132, 0.28);
}

.purchase-plans-table tbody .purchase-plans-table__row:last-child {
  border-bottom: 0;
}

.purchase-plans-table th,
.purchase-plans-table td {
  padding: 0.6rem 1rem;
  text-align: left;
}

.purchase-plans-table th:nth-child(2),
.purchase-plans-table th:nth-child(3),
.purchase-plans-table td:nth-child(2),
.purchase-plans-table td:nth-child(3) {
  width: 7.5rem;
  text-align: right;
  white-space: nowrap;
}

.purchase-plans-table__row--head {
  color: var(--text-muted);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: rgba(16, 24, 39, 0.58);
}

.purchase-plans-table__row:not(.purchase-plans-table__row--head):hover,
.purchase-plans-table__row:not(.purchase-plans-table__row--head):focus-visible {
  color: var(--text-main);
  background: rgba(23, 32, 51, 0.5);
}

.purchase-plans-table__row--selected {
  color: var(--text-main);
  box-shadow: inset 3px 0 0 var(--accent-link);
}

.purchase-plans-table__row--selected > td {
  background: rgba(143, 211, 255, 0.1);
}

.purchase-plans-table__row--selected .purchase-plans-table__name {
  font-weight: 650;
}

.purchase-plans-table__name {
  min-width: 0;
  overflow-wrap: anywhere;
  font-weight: 500;
}

.purchase-plans-table__link {
  display: block;
  color: inherit;
  font-weight: inherit;
  text-decoration: none;
}

.purchase-plans-table__name-link {
  display: flex;
  gap: 0.45rem;
  align-items: center;
}

.purchase-plans-table__name-text {
  min-width: 0;
  overflow-wrap: anywhere;
}

.purchase-plans-table__selected-badge {
  display: none;
  width: 0.42rem;
  height: 0.42rem;
  background: var(--accent-link);
  border-radius: 999px;
  box-shadow: 0 0 0 0.18rem rgba(143, 211, 255, 0.12);
}

.purchase-plans-table__row--selected .purchase-plans-table__selected-badge {
  display: inline-block;
  flex: 0 0 auto;
}

.purchase-plans-table__link:focus-visible {
  outline: 3px solid rgba(74, 222, 128, 0.24);
  outline-offset: 0.16rem;
}

.purchase-plans-table__link--numeric {
  text-align: right;
}

.purchase-recommendation__selected {
  display: grid;
  gap: 1rem;
  margin-top: 0.25rem;
}

.purchase-recommendation__breakdown {
  display: grid;
  margin-top: 0.25rem;
  border-top: 1px solid rgba(73, 97, 132, 0.38);
}

.purchase-recommendation__breakdown-store {
  display: grid;
  gap: 0.12rem;
  padding: 0.5rem 0;
  color: var(--text-soft);
  text-decoration: none;
  border-bottom: 1px solid rgba(73, 97, 132, 0.22);
}

.purchase-recommendation__breakdown-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(6rem, auto);
  gap: 0.7rem;
  align-items: baseline;
}

.purchase-recommendation__breakdown-store:hover,
.purchase-recommendation__breakdown-store:focus-visible {
  color: var(--text-main);
  background: rgba(23, 32, 51, 0.42);
}

.purchase-recommendation__breakdown-store:focus-visible {
  outline: 3px solid rgba(74, 222, 128, 0.24);
  outline-offset: 0.16rem;
}

.purchase-recommendation__breakdown-row--shipping {
  color: var(--text-muted);
  font-size: 0.86rem;
}

.purchase-recommendation__breakdown-row--total {
  margin-top: 0.2rem;
  padding: 0.42rem 0;
  color: var(--text-main);
  font-weight: 800;
  border-bottom: 0;
}

.purchase-recommendation__breakdown-name {
  min-width: 0;
  overflow-wrap: anywhere;
  font-weight: 500;
}

.purchase-recommendation__breakdown-meta,
.purchase-recommendation__breakdown-amount {
  white-space: nowrap;
}

.purchase-recommendation__breakdown-amount {
  color: var(--text-main);
  text-align: right;
}

.purchase-recommendation__breakdown-arrow {
  color: var(--accent-link);
  font-weight: 700;
}

.purchase-plan-modal__surface {
  max-width: min(42rem, calc(100vw - 2rem));
}

.purchase-plan-modal__form {
  padding: 1rem;
}

.purchase-plan-modal__footer {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  justify-content: space-between;
}

.purchase-plan-modal__name {
  color: var(--text-muted);
  font-size: 0.84rem;
}

.purchase-plan-modal__submit {
  width: auto;
  min-width: 9rem;
}

.purchase-recommendation__missing {
  display: inline-flex;
  gap: 0.55rem;
  align-items: center;
  margin: 0;
  color: var(--text-muted);
  font-size: 0.84rem;
}

.purchase-recommendation__missing-button {
  padding: 0.14rem 0.5rem;
  color: var(--text-soft);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.25;
  background: rgba(15, 23, 42, 0.42);
  border: 1px solid rgba(149, 161, 186, 0.32);
  border-radius: 999px;
  cursor: pointer;
}

.purchase-recommendation__missing-button:hover,
.purchase-recommendation__missing-button:focus-visible {
  color: var(--text-main);
  background: rgba(30, 41, 59, 0.72);
  outline: none;
}

.search-overview {
  position: sticky;
  top: var(--sticky-progress-top);
  z-index: 30;
  display: grid;
  gap: 0.55rem;
  padding: 0.65rem 0.75rem 0.75rem;
  margin-bottom: 0.9rem;
  background: rgba(23, 32, 51, 0.98);
  border: 1px solid var(--panel-border);
  border-radius: 1.15rem;
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(10px);
}

.search-overview__status-panel {
  display: grid;
  gap: 0.55rem;
}

.search-overview__top {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.75rem;
  align-items: center;
}

.search-overview__status {
  min-width: 0;
  text-align: right;
}

.search-overview__title,
.search-overview__meta,
.search-overview__hint {
  margin: 0;
}

.search-overview__title {
  font-size: 1.28rem;
  line-height: 1.15;
}

.search-overview__status-icon {
  display: inline-block;
  transform-origin: 50% 60%;
}

.search-overview__status-panel--running .search-overview__status-icon,
.search-overview__status-panel--queued .search-overview__status-icon {
  animation: shop-status-hourglass 1.8s ease-in-out infinite;
}

.search-overview__meta,
.search-overview__hint {
  margin-top: 0.25rem;
  color: var(--text-muted);
}

.search-overview__hint--error {
  color: #fca5a5;
}

.search-overview__cards {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-width: 0;
}

.search-overview__cards-text {
  color: var(--text-main);
  font-size: 0.95rem;
  font-weight: 700;
}

.search-overview__view-button {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 1.65rem;
  padding: 0.2rem 0.48rem;
  color: #e0f2fe;
  font-size: 0.78rem;
  font-weight: 700;
  background: rgba(14, 165, 233, 0.14);
  border: 1px solid rgba(125, 211, 252, 0.44);
  border-radius: 999px;
  cursor: pointer;
}

.search-overview__view-button:hover,
.search-overview__view-button:focus-visible {
  color: var(--text-main);
  border-color: rgba(125, 211, 252, 0.68);
}

.search-overview__view-button:focus-visible {
  outline: 3px solid rgba(125, 211, 252, 0.32);
  outline-offset: 0.12rem;
}

.search-overview__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  justify-content: flex-end;
  align-items: center;
  min-width: 0;
}

.search-overview__actions form {
  margin: 0;
}

.search-overview__bar {
  height: 0.9rem;
  overflow: hidden;
  background: #0a1220;
  border: 1px solid var(--panel-border);
  border-radius: 999px;
}

.search-overview__bar-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #38bdf8, var(--accent-end));
  transition: width 180ms ease;
}

.search-overview:has(.search-overview__status-panel--completed) {
  gap: 0.45rem;
  padding-top: 0.5rem;
  padding-bottom: 0.55rem;
}

.search-overview__status-panel--completed .search-overview__title {
  font-size: 1rem;
}

.search-overview__status-panel--completed .search-overview__meta {
  display: none;
}

.search-overview__status-panel--completed .search-overview__bar {
  height: 0.22rem;
  opacity: 0.36;
}

.results-controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 0.75rem;
  align-items: center;
}

.results-controls__field {
  display: flex;
  gap: 0.45rem;
  align-items: center;
  min-width: 0;
}

.results-controls__label {
  flex: 0 0 auto;
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.results-controls__select {
  min-width: 0;
  max-width: min(100%, 18rem);
  min-height: 2.18rem;
  padding: 0.36rem 2.25rem 0.36rem 0.7rem;
  color: var(--text-main);
  font-size: 1rem;
  background: rgba(12, 18, 31, 0.92);
  border: 1px solid var(--panel-border);
  border-radius: 0.75rem;
  cursor: pointer;
}

.results-controls__select:hover,
.results-controls__select:focus {
  border-color: rgba(125, 211, 252, 0.65);
}

.results-controls__select:focus {
  outline: 3px solid rgba(125, 211, 252, 0.32);
  outline-offset: 0.12rem;
}

.results-shell__empty {
  padding: 1rem 1.1rem;
  color: var(--text-muted);
}

.results-shell__stale-callout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  color: #fde68a;
  background: rgba(120, 53, 15, 0.38);
  border: 1px solid rgba(251, 191, 36, 0.32);
  border-radius: 0.75rem;
  font-size: 0.92rem;
  line-height: 1.45;
}

.results-shell__stale-refresh-form {
  margin: 0;
  flex: 0 0 auto;
}

.results-shell__stale-refresh-button {
  white-space: nowrap;
}

.results-shell__empty-title,
.results-shell__empty-copy {
  margin: 0;
}

.results-shell__empty-title {
  color: var(--text-soft);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.35;
}

.results-shell__empty-copy {
  margin-top: 0.35rem;
  line-height: 1.4;
}

.shop-section {
  padding: 1rem 1.1rem 1.15rem;
  scroll-margin-top: calc(var(--sticky-shop-header-top) + 4.5rem);
}

.shop-section__header {
  position: sticky;
  top: var(--sticky-shop-header-top);
  z-index: 20;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
  margin-bottom: 0.85rem;
  background: rgba(23, 32, 51, 0.98);
  border-bottom: 1px solid rgba(73, 97, 132, 0.64);
  backdrop-filter: blur(10px);
  cursor: default;
  list-style: none;
}

.shop-section[data-search-details-locked="true"] .shop-section__header {
  cursor: default;
}

.shop-section__header::-webkit-details-marker {
  display: none;
}

.shop-section__heading {
  flex: 1 1 16rem;
  min-width: 0;
}

.shop-section__header-action {
  display: inline-flex;
  flex: 0 0 auto;
  justify-content: flex-end;
  align-items: center;
  margin-left: auto;
}

.shop-section:not([open]) .shop-section__header {
  margin-bottom: 0;
  border-bottom: 0;
}

.shop-section__title {
  margin: 0;
  font-size: 1.7rem;
  line-height: 1.1;
}

.shop-section__count {
  display: inline-block;
  margin-left: 0.25rem;
  color: var(--text-muted);
  font-size: 1.05rem;
  font-weight: 600;
}

.shop-section__status {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-left: auto;
  padding: 0.38rem 0.62rem;
  color: var(--text-soft);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  line-height: 1.2;
  text-transform: uppercase;
  background: #263248;
  border: 1px solid #35435c;
  border-radius: 0.45rem;
}

.shop-section__status-icon {
  display: inline-block;
  transform-origin: 50% 60%;
}

.shop-section__status--running .shop-section__status-icon,
.shop-section__status--queued .shop-section__status-icon {
  animation: shop-status-hourglass 1.8s ease-in-out infinite;
}

.shop-section__status-dots {
  display: inline-flex;
  width: 1.05em;
  justify-content: flex-start;
}

.shop-section__status-dots span {
  animation: shop-status-dot 1.35s ease-in-out infinite;
  opacity: 0.18;
}

.shop-section__status-dots span:nth-child(2) {
  animation-delay: 0.18s;
}

.shop-section__status-dots span:nth-child(3) {
  animation-delay: 0.36s;
}

@keyframes shop-status-hourglass {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }

  28% {
    transform: translateY(-0.16rem) rotate(0deg);
  }

  52% {
    transform: translateY(0) rotate(180deg);
  }

  78% {
    transform: translateY(-0.1rem) rotate(180deg);
  }
}

@keyframes shop-status-dot {
  0%,
  72%,
  100% {
    opacity: 0.18;
  }

  24%,
  52% {
    opacity: 1;
  }
}

.shop-section__status--completed {
  color: #d8f3e8;
  background: #12382f;
  border-color: #1f6b57;
}

.shop-section__status--running,
.shop-section__status--queued {
  color: #dbeafe;
  background: #1d355f;
  border-color: #315f9c;
}

.shop-section__status--failed {
  color: #fee2e2;
  background: #4a1f25;
  border-color: #8f3942;
}

.shop-section__status--paused {
  color: #fde68a;
  background: #443211;
  border-color: #946f19;
}

@media (prefers-reduced-motion: reduce) {
  .shop-section__status--running .shop-section__status-icon,
  .shop-section__status--queued .shop-section__status-icon,
  .search-overview__status-panel--running .search-overview__status-icon,
  .search-overview__status-panel--queued .search-overview__status-icon,
  .shop-section__status-dots span,
  .plan-preview-status-dots span {
    animation: none;
  }

  .shop-section__status-dots span,
  .plan-preview-status-dots span {
    opacity: 1;
  }
}

.shop-section__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
}

.shop-section__recommendation-heading {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.75rem;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.75rem;
}

.shop-section__recommendation-heading h3,
.shop-section__recommendation-heading p {
  margin: 0;
}

.shop-section__recommendation-heading h3 {
  color: #bbf7d0;
  font-size: 1rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.shop-section__recommendation-heading p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.shop-section__recommendation-cart-form {
  margin: 0;
}

.shop-section__unsupported-cart {
  display: inline-flex;
  gap: 0.45rem;
  align-items: center;
}

.shop-section__unsupported-cart-help {
  position: relative;
  z-index: 30;
  display: inline-grid;
  place-items: center;
  width: 1.35rem;
  height: 1.35rem;
  color: #cbd5e1;
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1;
  cursor: help;
  background: rgba(148, 163, 184, 0.14);
  border: 1px solid rgba(148, 163, 184, 0.36);
  border-radius: 999px;
}

.shop-section__unsupported-cart-help:not([data-floating-tooltip])::after {
  position: absolute;
  right: 0;
  bottom: calc(100% + 0.55rem);
  z-index: 55;
  width: min(16rem, 72vw);
  padding: 0.6rem 0.7rem;
  color: var(--text-main);
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.35;
  text-align: left;
  pointer-events: none;
  content: attr(data-tooltip);
  background: rgba(2, 8, 23, 0.96);
  border: 1px solid var(--panel-border-strong);
  border-radius: 0.65rem;
  box-shadow: var(--shadow-md);
  opacity: 0;
  transform: translateY(0.25rem);
  transition: opacity 140ms ease, transform 140ms ease;
}

.shop-section__unsupported-cart-help:not([data-floating-tooltip]):hover::after,
.shop-section__unsupported-cart-help:not([data-floating-tooltip]):focus-visible::after {
  opacity: 1;
  transform: translateY(0);
}

.floating-tooltip {
  position: fixed;
  z-index: 55;
  width: min(16rem, calc(100vw - 1rem));
  padding: 0.6rem 0.7rem;
  color: var(--text-main);
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.35;
  text-align: left;
  pointer-events: none;
  background: rgba(2, 8, 23, 0.96);
  border: 1px solid var(--panel-border-strong);
  border-radius: 0.65rem;
  box-shadow: var(--shadow-md);
  opacity: 0;
  transform: translateY(0.25rem);
  transition: opacity 140ms ease, transform 140ms ease;
}

.floating-tooltip--visible {
  opacity: 1;
  transform: translateY(0);
}

.floating-tooltip svg {
  display: inline-block;
  width: 0.95rem;
  height: 0.95rem;
  margin: 0 0.12rem;
  color: currentColor;
  vertical-align: -0.18em;
}

.shop-section__grid--recommended {
  margin-bottom: 0.9rem;
}

.shop-section__other-results {
  margin-top: 0.85rem;
  border-top: 1px solid rgba(73, 97, 132, 0.42);
}

.shop-section__other-results--flush {
  margin-top: 0;
  border-top: 0;
}

.shop-section__other-results--flush .shop-section__other-summary {
  padding-top: 0;
}

.shop-section__other-summary {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: center;
  padding: 0.75rem 0 0.15rem;
  color: var(--text-soft);
  font-weight: 800;
  cursor: pointer;
}

.shop-section__other-label {
  display: inline-flex;
  gap: 0.45rem;
  align-items: center;
}

.shop-section__other-caret {
  width: 0;
  height: 0;
  border-top: 0.32rem solid transparent;
  border-bottom: 0.32rem solid transparent;
  border-left: 0.42rem solid var(--text-muted);
  transform-origin: 45% 50%;
  transition: transform 160ms ease;
}

.shop-section__other-results[open] .shop-section__other-caret {
  transform: rotate(90deg);
}

.shop-section__other-summary::marker {
  color: var(--text-muted);
}

.shop-section__grid--other {
  margin-top: 0.75rem;
}

.shop-section__empty,
.shop-section__error {
  margin: 0;
  color: var(--text-muted);
}

.shop-section__pagination-note {
  margin: 0.7rem 0 0;
  color: var(--text-muted);
  font-size: 0.84rem;
  line-height: 1.45;
}

.shop-section__error {
  margin-top: 0.35rem;
  color: #fca5a5;
}

.shop-section__retry {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0.85rem;
  margin: 0 0 0.9rem;
  color: #fecaca;
  background: rgba(127, 29, 29, 0.24);
  border: 1px solid rgba(248, 113, 113, 0.26);
  border-radius: 0.9rem;
}

.shop-section__retry-copy {
  display: grid;
  gap: 0.2rem;
  min-width: min(100%, 24rem);
}

.shop-section__retry-title,
.shop-section__retry-meta {
  margin: 0;
}

.shop-section__retry-meta {
  color: rgba(254, 202, 202, 0.72);
  font-size: 0.92rem;
}

.retry-button {
  display: inline-flex;
  align-items: center;
  min-height: 2.25rem;
  padding: 0.45rem 0.8rem;
  color: #e0f2fe;
  font-size: 0.9rem;
  font-weight: 700;
  background: rgba(14, 165, 233, 0.18);
  border: 1px solid rgba(125, 211, 252, 0.5);
  border-radius: 999px;
  cursor: pointer;
}

.retry-button:hover {
  color: #fff;
  border-color: rgba(125, 211, 252, 0.72);
  filter: brightness(1.08);
}

.retry-button:disabled,
.retry-button--disabled {
  color: rgba(226, 232, 240, 0.62);
  background: rgba(71, 85, 105, 0.24);
  border-color: rgba(148, 163, 184, 0.28);
  cursor: not-allowed;
  filter: none;
}

.retry-button:disabled:hover,
.retry-button--disabled:hover {
  color: rgba(226, 232, 240, 0.62);
  border-color: rgba(148, 163, 184, 0.28);
  filter: none;
}

.retry-button--compact {
  min-height: 2rem;
  padding: 0.38rem 0.65rem;
  font-size: 0.85rem;
}

.result-card {
  display: flex;
  flex-direction: column;
  padding: 1rem;
  background: rgba(12, 18, 31, 0.92);
  border: 1px solid rgba(62, 82, 118, 0.9);
  border-radius: 1.2rem;
}

.result-card--plan-excluded {
  background: rgba(12, 18, 31, 0.72);
  border-color: rgba(148, 163, 184, 0.42);
}

.result-card--plan-excluded > .listing-card {
  opacity: 0.62;
}

.result-card__header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
  margin: 0 -1rem 0.9rem;
  padding: 0 1rem 0.9rem;
  border-bottom: 1px solid rgba(73, 97, 132, 0.42);
}

.result-card__title {
  margin: 0;
  font-size: 1.1rem;
}

.result-card__range {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
  margin: 0.3rem 0 0;
  color: var(--text-muted);
}

.result-card__range-primary {
  color: var(--text-muted);
}

.result-card__range-secondary {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
}

.result-card__cache {
  margin: 0.25rem 0 0;
  color: #fbbf24;
  font-size: 0.85rem;
}

.result-card__plan-status,
.results-modal__plan-status {
  display: inline-flex;
  width: fit-content;
  margin: 0.5rem 0 0;
  padding: 0.22rem 0.48rem;
  color: #cbd5e1;
  background: rgba(148, 163, 184, 0.12);
  border: 1px solid rgba(148, 163, 184, 0.26);
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  line-height: 1.15;
  text-transform: uppercase;
}

.results-modal__plan-status {
  grid-column: 1 / -1;
  margin: 0;
}

.results-modal__success-alert {
  margin: 1rem 1.3rem 0;
  padding: 0.75rem 0.9rem;
  color: #bbf7d0;
  background: rgba(22, 101, 52, 0.22);
  border: 1px solid rgba(74, 222, 128, 0.42);
  border-radius: 0.65rem;
  font-size: 0.9rem;
  font-weight: 750;
  line-height: 1.35;
}

.result-card > .listing-card {
  margin-bottom: 0.8rem;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.result-card__listing-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.75rem;
  align-items: center;
  justify-content: space-between;
  margin: auto -1rem -1rem;
  padding: 0.62rem 1rem;
  background: rgba(18, 28, 47, 0.62);
  border-top: 1px solid rgba(73, 97, 132, 0.42);
  border-radius: 0 0 1.1rem 1.1rem;
}

.result-card__listing-summary {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.78rem;
  font-weight: 400;
  line-height: 1.1;
}

.result-card__listing-copy--mobile {
  display: none;
}

.result-card__listing-action {
  display: inline-flex;
  gap: 0.28rem;
  align-items: center;
  flex: 0 1 auto;
  min-width: 0;
  min-height: 1.5rem;
  padding: 0;
  color: #e0f2fe;
  font-size: 0.78rem;
  font-weight: 650;
  line-height: 1.1;
  text-decoration: none;
  cursor: pointer;
}

.result-card__listing-action--lgs {
  margin-left: auto;
}

.result-card__listing-action--all {
  margin-left: auto;
  color: var(--text-soft);
}

.result-card__listing-action:hover {
  color: var(--text-main);
}

.result-card__listing-action:focus-visible {
  position: relative;
  z-index: 1;
  outline: 3px solid rgba(74, 222, 128, 0.24);
  outline-offset: 0.14rem;
}

.result-card__listing-action span:first-child {
  min-width: 0;
  overflow-wrap: anywhere;
}

.results-modal__close {
  padding: 0;
  color: var(--accent-link);
  background: transparent;
  border: 0;
  cursor: pointer;
}

.listing-card {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 0.95rem;
  background: rgba(21, 31, 50, 0.94);
  border: 1px solid rgba(70, 91, 129, 0.82);
  border-radius: 1.1rem;
}

.listing-card__cart-label {
  display: flex;
  gap: 0.4rem;
  align-items: center;
  margin: -0.95rem -0.95rem 0;
  padding: 0.55rem 0.95rem;
  color: #d1fae5;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  line-height: 1.15;
  text-transform: uppercase;
  background: rgba(16, 185, 129, 0.12);
  border-bottom: 1px solid rgba(52, 211, 153, 0.24);
  border-radius: 1.1rem 1.1rem 0 0;
}

.listing-card__cart-label-icon {
  color: var(--accent-best);
  font-weight: 900;
  line-height: 1;
}

.listing-card--featured {
  box-shadow: inset 0 0 0 1px rgba(53, 211, 153, 0.2);
}

.listing-card--plan-selected {
  border-color: rgba(125, 211, 252, 0.62);
  box-shadow: inset 0 0 0 1px rgba(125, 211, 252, 0.14);
}

.results-modal .listing-card--featured:not(.listing-card--plan-selected) {
  box-shadow: none;
}

.listing-card__image-wrap {
  position: relative;
  width: 100%;
}

.listing-card__image-wrap::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 10px;
  pointer-events: none;
  content: "";
  background: linear-gradient(to bottom, rgba(12, 18, 31, 0), rgba(12, 18, 31, 0.72));
}

.listing-card__image-button {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  background: transparent;
  border: 0;
  cursor: zoom-in;
}

.listing-card__image-button:focus-visible {
  outline: 3px solid rgba(125, 211, 252, 0.6);
  outline-offset: 0.2rem;
  border-radius: 0.7rem;
}

.listing-card__image,
.listing-card__image-placeholder {
  display: block;
  width: 100%;
  aspect-ratio: 68 / 63;
  height: auto;
  object-fit: cover;
  object-position: top center;
  border: 1px solid rgba(77, 90, 120, 0.8);
  border-radius: 0.7rem 0.7rem 0 0;
}

.listing-card__image-placeholder {
  display: grid;
  place-items: center;
  color: var(--text-muted);
  font-size: 0.88rem;
  font-weight: 700;
  background: linear-gradient(180deg, #27324a, #131b2d);
}

.listing-card__image-cue {
  position: absolute;
  top: 0.38rem;
  right: 0.38rem;
  display: grid;
  place-items: center;
  width: 1.35rem;
  height: 1.35rem;
  color: #e0f2fe;
  background: rgba(2, 8, 23, 0.76);
  border: 1px solid rgba(226, 232, 240, 0.36);
  border-radius: 999px;
  box-shadow: 0 0 0 1px rgba(2, 8, 23, 0.42);
}

.listing-card__image-cue svg {
  width: 0.84rem;
  height: 0.84rem;
}

.listing-card__body {
  min-width: 0;
}

.listing-card__title,
.listing-card__price,
.listing-card__comparison,
.listing-card__meta,
.listing-card__match-warning {
  margin: 0;
}

.listing-card__title {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.4rem;
  align-items: baseline;
  font-size: 1rem;
  line-height: 1.28;
}

.listing-card__headline-set,
.listing-card__meta-item {
  display: inline-flex;
  align-items: center;
}

.listing-card__headline-set {
  gap: 0.22rem;
  color: var(--text-main);
}

.listing-card__match-check {
  display: inline-flex;
  align-items: center;
  margin-left: 0.25rem;
  color: var(--accent-best);
  font-size: 0.82em;
  font-weight: 900;
  line-height: 1;
}

.listing-card__price {
  margin-top: 0.3rem;
  font-size: 1.1rem;
  font-weight: 800;
}

.listing-card__comparison {
  margin-top: 0.1rem;
  font-weight: 700;
}

.listing-card__comparison--best {
  color: var(--accent-best);
}

.listing-card__comparison--delta {
  color: var(--accent-warn);
}

.listing-card__meta {
  margin-top: 0.45rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.listing-card__meta-separator {
  margin: 0 0.25rem;
}

.listing-card__meta-item--quantity {
  color: inherit;
}

.listing-card__match-warning {
  position: relative;
  display: inline-flex;
  width: fit-content;
  margin-top: 0.4rem;
  color: #fbbf24;
  font-weight: 700;
  cursor: help;
}

.listing-card__match-warning::after {
  position: absolute;
  bottom: calc(100% + 0.55rem);
  left: 0;
  z-index: 5;
  width: min(18rem, 72vw);
  padding: 0.6rem 0.7rem;
  color: var(--text-main);
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.35;
  text-align: left;
  pointer-events: none;
  content: attr(data-tooltip);
  background: rgba(2, 8, 23, 0.96);
  border: 1px solid var(--panel-border-strong);
  border-radius: 0.65rem;
  box-shadow: var(--shadow-md);
  opacity: 0;
  transform: translateY(0.25rem);
  transition: opacity 140ms ease, transform 140ms ease;
}

.listing-card__match-warning:hover::after,
.listing-card__match-warning:focus-visible::after {
  opacity: 1;
  transform: translateY(0);
}

.listing-card__links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 0.55rem;
}

.listing-card__cart {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  margin-top: 1.5rem;
}

.listing-card__cart-button {
  display: inline-flex;
  align-items: center;
  gap: 0.38rem;
  min-height: 2rem;
  padding: 0.4rem 0.72rem;
  font-size: 0.96rem;
  font-weight: 700;
  border-radius: 999px;
}

.listing-card__cart-button-icon {
  width: 1rem;
  height: 1rem;
  flex: 0 0 auto;
}

.listing-card__cart-button {
  color: #d1fae5;
  background: rgba(16, 185, 129, 0.18);
  border: 1px solid rgba(52, 211, 153, 0.68);
  cursor: pointer;
}

.listing-card__cart-button:hover {
  color: #fff;
  background: rgba(16, 185, 129, 0.26);
  border-color: rgba(52, 211, 153, 0.86);
}

.listing-card__cart-button:disabled {
  cursor: progress;
  opacity: 0.72;
}

.listing-card__cart-button--selected:disabled {
  color: #cbd5e1;
  background: rgba(148, 163, 184, 0.14);
  border-color: rgba(148, 163, 184, 0.36);
  cursor: default;
  opacity: 1;
}

.listing-card__listing-link {
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  color: var(--text-soft);
  font-size: 0.86rem;
  font-weight: 400;
  text-decoration: none;
}

.listing-card__listing-link:hover {
  color: var(--text-main);
}

.listing-card__listing-link-icon {
  width: 0.9rem;
  height: 0.9rem;
  flex: 0 0 auto;
  color: var(--accent-link);
}

.listing-card__listing-link:hover .listing-card__listing-link-icon,
.listing-card__listing-link:focus-visible .listing-card__listing-link-icon,
.result-card__listing-action:hover .purchase-recommendation__breakdown-arrow,
.result-card__listing-action:focus-visible .purchase-recommendation__breakdown-arrow,
.purchase-recommendation__breakdown-store:hover .purchase-recommendation__breakdown-arrow,
.purchase-recommendation__breakdown-store:focus-visible .purchase-recommendation__breakdown-arrow {
  color: #bae6fd;
}

.listing-card__cart-form {
  margin: 0;
}

.results-modal {
  width: min(1280px, calc(100vw - 2rem));
  max-height: calc(100vh - 2rem);
  padding: 0;
  color: var(--text-main);
  background: transparent;
  border: 0;
  overflow: visible;
}

.results-modal::backdrop {
  background: rgba(2, 8, 23, 0.78);
  backdrop-filter: blur(6px);
}

.results-modal__surface {
  max-height: calc(100vh - 2rem);
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  background: rgba(23, 32, 51, 0.99);
  border: 1px solid var(--panel-border);
  border-radius: 1.35rem;
  box-shadow: var(--shadow-lg);
}

.results-modal__header {
  position: sticky;
  top: 0;
  z-index: 4;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.1rem 1.3rem;
  background: rgba(23, 32, 51, 0.99);
  border-bottom: 1px solid rgba(73, 97, 132, 0.68);
}

.results-modal__title {
  margin: 0;
  font-size: 1.25rem;
}

.results-modal__subtitle {
  margin: 0.25rem 0 0;
  color: var(--text-muted);
  font-size: 0.88rem;
  font-weight: 650;
}

.results-modal__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  padding: 1.3rem;
}

.results-modal__grid--plan-selection {
  grid-template-columns: 1fr;
  gap: 1.1rem;
}

.results-modal__store-section {
  display: grid;
  gap: 0.75rem;
}

.results-modal__store-title {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.results-modal__store-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.results-modal__store-groups {
  display: grid;
  gap: 0.65rem;
}

.results-modal__store-group {
  border: 1px solid var(--panel-border);
  border-radius: 0.5rem;
  background: rgba(15, 23, 42, 0.34);
}

.results-modal__store-summary {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.8rem 0.95rem;
  color: var(--text-main);
  font-weight: 800;
  cursor: pointer;
}

.results-modal__store-summary span:last-child {
  color: var(--text-muted);
  font-size: 0.86rem;
  font-weight: 700;
  white-space: nowrap;
}

.results-modal__store-group .results-modal__store-list {
  padding: 0 0.95rem 0.95rem;
}

.results-modal__loading {
  padding: 2rem 1.3rem;
  color: var(--text-muted);
  font-weight: 700;
}

.searched-cards-modal {
  width: min(46rem, calc(100vw - 1.5rem));
  max-height: min(82vh, 48rem);
  padding: 0;
  color: var(--text-main);
  background: transparent;
  border: 0;
}

.searched-cards-modal::backdrop {
  background: rgba(2, 8, 23, 0.78);
  backdrop-filter: blur(6px);
}

.searched-cards-modal[open] {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100vw;
  height: 100vh;
  max-width: none;
  max-height: none;
  padding: 0.75rem;
}

.searched-cards-modal__surface {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  width: min(46rem, calc(100vw - 1.5rem));
  max-height: min(82vh, 48rem);
  overflow: hidden;
  background: rgba(23, 32, 51, 0.99);
  border: 1px solid var(--panel-border);
  border-radius: 1rem;
  box-shadow: var(--shadow-lg);
}

.searched-cards-modal__header,
.searched-cards-modal__footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  padding: 0.9rem 1rem;
}

.searched-cards-modal__header {
  position: sticky;
  top: 0;
  z-index: 4;
  background: rgba(23, 32, 51, 0.99);
  border-bottom: 1px solid rgba(73, 97, 132, 0.68);
}

.searched-cards-modal__footer {
  border-top: 1px solid rgba(73, 97, 132, 0.68);
}

.searched-cards-modal__title,
.searched-cards-modal__meta {
  margin: 0;
}

.searched-cards-modal__title {
  font-size: 1.1rem;
}

.searched-cards-modal__meta {
  margin-top: 0.15rem;
  color: var(--text-muted);
  font-size: 0.86rem;
}

.searched-cards-modal__close {
  padding: 0;
  color: var(--accent-link);
  background: transparent;
  border: 0;
  cursor: pointer;
}

.searched-cards-modal__body {
  min-height: 0;
  padding: 0.9rem 1rem;
  overflow-y: auto;
}

.searched-cards-modal__filter-row {
  margin: 0 0 0.85rem;
  padding: 0.65rem 0.8rem;
  color: var(--text-soft);
  font-size: 0.92rem;
  font-weight: 700;
  background: rgba(12, 18, 31, 0.72);
  border: 1px solid rgba(73, 97, 132, 0.56);
  border-radius: 0.85rem;
}

.searched-cards-modal__new-search {
  padding: 0.46rem 0.7rem;
  color: #e0f2fe;
  font-size: 0.84rem;
  font-weight: 700;
  text-decoration: none;
  background: rgba(14, 165, 233, 0.18);
  border: 1px solid rgba(125, 211, 252, 0.5);
  border-radius: 999px;
}

.card-image-modal {
  width: min(30rem, calc(100vw - 1.5rem));
  padding: 0;
  color: var(--text-main);
  background: transparent;
  border: 0;
}

.card-image-modal::backdrop {
  background: rgba(2, 8, 23, 0.82);
  backdrop-filter: blur(6px);
}

.card-image-modal__surface {
  overflow: hidden;
  background: rgba(23, 32, 51, 0.99);
  border: 1px solid var(--panel-border);
  border-radius: 1rem;
  box-shadow: var(--shadow-lg);
}

.card-image-modal__header {
  position: sticky;
  top: 0;
  z-index: 4;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
  padding: 0.75rem 0.9rem;
  background: rgba(23, 32, 51, 0.99);
  border-bottom: 1px solid rgba(73, 97, 132, 0.68);
}

.card-image-modal__title {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  font-size: 0.95rem;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.card-image-modal__close {
  padding: 0;
  color: var(--accent-link);
  background: transparent;
  border: 0;
  cursor: pointer;
}

.results-modal__close,
.searched-cards-modal__close,
.card-image-modal__close {
  position: relative;
  display: inline-grid;
  flex: 0 0 auto;
  place-items: center;
  width: 2rem;
  height: 2rem;
  margin-left: auto;
  padding: 0;
  overflow: hidden;
  color: var(--accent-link);
  font-size: 0;
  line-height: 1;
  background: rgba(14, 165, 233, 0.12);
  border: 1px solid rgba(125, 211, 252, 0.34);
  border-radius: 999px;
  cursor: pointer;
}

.results-modal__close::before,
.results-modal__close::after,
.searched-cards-modal__close::before,
.searched-cards-modal__close::after,
.card-image-modal__close::before,
.card-image-modal__close::after {
  position: absolute;
  width: 0.9rem;
  height: 0.11rem;
  content: "";
  background: currentColor;
  border-radius: 999px;
}

.results-modal__close::before,
.searched-cards-modal__close::before,
.card-image-modal__close::before {
  transform: rotate(45deg);
}

.results-modal__close::after,
.searched-cards-modal__close::after,
.card-image-modal__close::after {
  transform: rotate(-45deg);
}

.results-modal__close:hover,
.results-modal__close:focus-visible,
.searched-cards-modal__close:hover,
.searched-cards-modal__close:focus-visible,
.card-image-modal__close:hover,
.card-image-modal__close:focus-visible {
  color: var(--text-main);
  background: rgba(14, 165, 233, 0.22);
  border-color: rgba(125, 211, 252, 0.62);
}

.results-modal__close:focus-visible,
.searched-cards-modal__close:focus-visible,
.card-image-modal__close:focus-visible {
  outline: 3px solid rgba(125, 211, 252, 0.28);
  outline-offset: 0.12rem;
}

.card-image-modal__body {
  display: grid;
  place-items: center;
  padding: 1rem;
}

.card-image-modal__image {
  display: block;
  width: auto;
  max-width: min(100%, 24rem);
  max-height: min(76vh, 42rem);
  object-fit: contain;
  border-radius: 0.85rem;
  box-shadow: 0 18px 54px rgba(2, 8, 23, 0.42);
}

@media (max-width: 1024px) {
  :root {
    --sticky-shop-header-top: 7.25rem;
  }

  .search-results-layout {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .search-results-layout__sidebar {
    display: contents;
  }

  .shop-section__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .results-modal__grid,
  .results-modal__store-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .results-modal__grid--plan-selection {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  :root {
    --sticky-progress-top: 0.5rem;
    --sticky-shop-header-top: 6.75rem;
  }

  .search-page[data-search-status="completed"] {
    --sticky-shop-header-top: 6.125rem;
    --sticky-shop-header-overlap: 0.125rem;
  }

  .search-page {
    padding: 1.5rem 1rem 2.5rem;
  }

  .search-page::before {
    position: fixed;
    top: calc(0px - env(safe-area-inset-top, 0px));
    left: 0;
    z-index: 15;
    width: 100vw;
    height: calc(var(--sticky-shop-header-top) + 1rem + env(safe-area-inset-top, 0px));
    pointer-events: none;
    content: "";
    background: linear-gradient(
      180deg,
      rgba(7, 11, 20, 0.3) 0%,
      rgba(7, 11, 20, 0.3) 50%,
      rgba(7, 11, 20, 0) 100%
    );
  }

  .search-page.plan-preview-page:not([data-search-id])::before {
    content: none;
  }

  .search-page.plan-preview-page[data-search-id]::before {
    background: linear-gradient(
      180deg,
      rgba(251, 250, 246, 0.96) 0%,
      rgba(251, 250, 246, 0.86) 50%,
      rgba(251, 250, 246, 0) 100%
    );
  }

  .search-panel,
  .search-onboarding__card,
  .recent-searches,
  .searched-cards,
  .progress-panel,
  .results-shell__empty,
  .shop-section {
    padding-left: 0.9rem;
    padding-right: 0.9rem;
  }

  .searched-cards {
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
    border-radius: 1rem;
  }

  .searched-cards__summary {
    min-height: 1.9rem;
    padding-right: 8.8rem;
  }

  .searched-cards__title {
    font-size: 0.98rem;
  }

  .searched-cards__meta,
  .searched-cards__toggle {
    font-size: 0.78rem;
  }

  .purchase-recommendation__totals {
    grid-template-columns: 1fr;
    gap: 0.45rem;
  }

  .purchase-recommendation__total {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: baseline;
  }

  .purchase-recommendation__header--plans {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.6rem;
    align-items: start;
  }

  .purchase-recommendation__title {
    font-size: 1.15rem;
  }

  .purchase-recommendation__subtitle {
    font-size: 0.82rem;
  }

  .purchase-recommendation__add {
    width: max-content;
    margin-top: 0.05rem;
  }

  .purchase-plans-table th,
  .purchase-plans-table td {
    padding: 0.52rem 0.6rem;
    font-size: 0.86rem;
  }

  .purchase-plans-table th:nth-child(2),
  .purchase-plans-table th:nth-child(3),
  .purchase-plans-table td:nth-child(2),
  .purchase-plans-table td:nth-child(3) {
    width: 5.4rem;
  }

  .purchase-recommendation__selected {
    display: none;
  }

  .purchase-recommendation__store {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.25rem 0.6rem;
  }

  .purchase-recommendation__store span:nth-child(2) {
    text-align: right;
  }

  .purchase-recommendation__store span:nth-child(3) {
    grid-column: 1 / -1;
    color: var(--text-muted);
    font-size: 0.86rem;
  }

  .purchase-plan-modal__footer {
    align-items: stretch;
    flex-direction: column;
  }

  .purchase-plan-modal__submit {
    width: 100%;
  }

  .searched-cards__new-search {
    top: 0.75rem;
    right: 0.9rem;
    padding: 0.38rem 0.56rem;
    font-size: 0.72rem;
  }

  .searched-cards__list {
    grid-template-columns: 1fr;
    gap: 0.1rem;
    margin-top: 0.45rem;
  }

  .searched-cards__item {
    grid-template-columns: 1.65rem minmax(0, 1fr);
    gap: 0.35rem;
    padding: 0.08rem 0;
    font-size: 0.88rem;
  }

  .search-onboarding__card {
    grid-template-columns: 2.25rem minmax(0, 1fr);
    gap: 0.5rem;
    min-height: 0;
    border-radius: 1rem;
  }

  .search-onboarding__media {
    min-height: 2.25rem;
  }

  .search-onboarding__copy {
    font-size: 0.82rem;
  }

  .search-onboarding__icon {
    width: 1.75rem;
    height: 1.75rem;
  }

  .recent-searches {
    border-radius: 1rem;
  }

  .recent-searches__title {
    font-size: 1rem;
  }

  .recent-searches__item {
    gap: 0.65rem;
    padding: 0.65rem 0.7rem;
  }

  .recent-searches__query {
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .recent-searches__meta {
    font-size: 0.78rem;
  }

  .recent-searches__view {
    font-size: 0.72rem;
  }

  .result-card__header,
  .results-modal__header {
    flex-direction: column;
    align-items: flex-start;
  }

  .results-modal__header {
    flex-direction: row;
    align-items: flex-start;
  }

  .progress-panel {
    padding: 0.5rem 0.6rem;
    margin-bottom: 0.8rem;
    border-radius: 0.85rem;
  }

  .progress-panel__header {
    display: none;
  }

  .progress-panel__hint {
    display: none;
  }

  .progress-panel__bar {
    height: 0.55rem;
  }

  .results-shell__empty,
  .shop-section {
    padding-top: 0.65rem;
    padding-bottom: 0.85rem;
    border-radius: 1rem;
  }

  .shop-section__header {
    flex-wrap: nowrap;
    gap: 0.55rem;
    align-items: center;
    padding-top: 0.45rem;
    padding-bottom: 0.45rem;
    margin-bottom: 0.7rem;
  }

  .shop-section__heading {
    flex: 1 1 0;
  }

  .shop-section__title {
    font-size: 1.25rem;
  }

  .shop-section__count {
    display: block;
    margin-top: 0.08rem;
    font-size: 0.82rem;
    line-height: 1.25;
  }

  .shop-section__status {
    flex: 0 0 auto;
    padding: 0.26rem 0.5rem;
    font-size: 0.72rem;
  }

  .shop-section__header-action {
    flex: 0 0 auto;
    margin-left: auto;
  }

  .shop-section__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.55rem;
  }

  .result-card {
    min-width: 0;
    padding: 0.55rem;
    background: rgba(12, 18, 31, 0.8);
    border-color: rgba(62, 82, 118, 0.66);
    border-radius: 0.85rem;
  }

  .result-card__header {
    gap: 0.25rem;
    margin: 0 -0.55rem 0.65rem;
    padding: 0 0.55rem 0.45rem;
  }

  .result-card__title {
    font-size: 0.9rem;
    line-height: 1.2;
  }

  .result-card__range {
    margin-top: 0.18rem;
    font-size: 0.78rem;
    line-height: 1.25;
  }

  .result-card__range-secondary {
    display: block;
  }

  .result-card__cache {
    font-size: 0.78rem;
  }

  .listing-card {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 0;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .listing-card--featured {
    border: 0;
    box-shadow: none;
  }

  .listing-card__cart-label {
    margin: 0 -0.55rem;
    padding: 0.34rem 0.55rem;
    font-size: 0.64rem;
    border-radius: 0;
  }

  .result-card > .listing-card {
    margin-bottom: 0.55rem;
  }

  .listing-card__image-wrap {
    position: relative;
    width: 100%;
  }

  .listing-card__image-wrap::after {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 10px;
    pointer-events: none;
    content: "";
    background: linear-gradient(to bottom, rgba(12, 18, 31, 0), rgba(12, 18, 31, 0.8));
  }

  .listing-card__image-button {
    width: 100%;
  }

  .listing-card__image-button:focus-visible {
    border-radius: 0.5rem;
  }

  .listing-card__image,
  .listing-card__image-placeholder {
    width: 100%;
    aspect-ratio: 68 / 63;
    height: auto;
    object-fit: cover;
    object-position: top center;
    border-bottom: 0;
    border-radius: 0.5rem 0.5rem 0 0;
  }

  .listing-card__body {
    min-width: 0;
  }

  .listing-card__title {
    gap: 0.25rem 0.3rem;
    font-size: 0.8rem;
    line-height: 1.18;
  }

  .listing-card__price {
    margin-top: 0.18rem;
    font-size: 0.9rem;
  }

  .listing-card__comparison {
    font-size: 0.72rem;
    line-height: 1.2;
  }

  .listing-card__meta {
    margin-top: 0.28rem;
    font-size: 0.72rem;
    line-height: 1.2;
  }

  .listing-card__meta-item--quantity {
    display: none;
  }

  .listing-card__match-warning {
    margin-top: 0.18rem;
    font-size: 0.72rem;
    line-height: 1.2;
  }

  .listing-card__match-warning::after {
    width: min(13rem, 58vw);
    font-size: 0.68rem;
  }

  .listing-card__cart {
    justify-content: center;
  }

  .listing-card__cart-button {
    min-height: 1.55rem;
    padding: 0.26rem 0.46rem;
    font-size: 0.78rem;
    white-space: nowrap;
  }

  .listing-card__cart-button-icon {
    width: 0.86rem;
    height: 0.86rem;
  }

  .listing-card__listing-link {
    gap: 0.2rem;
    font-size: 0.72rem;
  }

  .result-card__listing-actions {
    margin: auto -0.55rem -0.55rem;
    padding: 0.48rem 0.55rem;
    gap: 0.3rem 0.55rem;
    border-radius: 0 0 0.8rem 0.8rem;
  }

  .result-card__listing-summary {
    font-size: 0.66rem;
    line-height: 1.15;
  }

  .result-card__listing-copy--desktop {
    display: none;
  }

  .result-card__listing-copy--mobile {
    display: inline;
  }

  .result-card__listing-action {
    min-height: 1.2rem;
    font-size: 0.66rem;
  }

  .result-card__listing-action .listing-card__listing-link-icon {
    width: 0.82rem;
    height: 0.82rem;
  }

  .results-modal {
    width: calc(100vw - 1rem);
  }

  .results-modal .listing-card {
    padding: 0.65rem;
    background: rgba(21, 31, 50, 0.94);
    border: 1px solid rgba(70, 91, 129, 0.82);
    border-radius: 0.85rem;
  }

  .results-modal .listing-card--featured {
    border-color: rgba(70, 91, 129, 0.82);
    box-shadow: none;
  }

  .results-modal .listing-card--plan-selected {
    border-color: rgba(125, 211, 252, 0.62);
    box-shadow: inset 0 0 0 1px rgba(125, 211, 252, 0.14);
  }

  .results-modal__grid,
  .results-modal__store-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.55rem;
  }

  .results-modal__grid {
    padding: 0.75rem;
  }

  .results-modal__grid--plan-selection {
    grid-template-columns: 1fr;
  }

  .search-overview {
    gap: 0.42rem;
    padding: 0.48rem;
    margin-bottom: 1.25rem;
    border-radius: 0.9rem;
  }

  .search-page[data-search-status="completed"] .shop-section__header {
    top: calc(var(--sticky-shop-header-top) - var(--sticky-shop-header-overlap));
  }

  .search-overview__top {
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0.55rem;
    align-items: center;
  }

  .search-overview__title {
    font-size: 0.78rem;
    line-height: 1.2;
  }

  .search-overview__meta,
  .search-overview__hint {
    display: none;
  }

  .search-overview__cards {
    gap: 0.28rem;
  }

  .search-overview__cards-text {
    font-size: 0.7rem;
  }

  .search-overview__view-button {
    min-height: 1.45rem;
    padding: 0.16rem 0.34rem;
    font-size: 0.64rem;
  }

  .search-overview__actions {
    gap: 0.3rem;
  }

  .search-overview__bar {
    height: 0.62rem;
  }

  .search-overview__status-panel--completed .search-overview__bar {
    height: 0.25rem;
  }

  .results-controls {
    gap: 0.45rem;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .results-controls__field {
    gap: 0.3rem;
  }

  .results-controls__field--sort {
    justify-content: flex-end;
  }

  .results-controls__label {
    font-size: 0.76rem;
  }

  .results-controls__select {
    max-width: 100%;
    min-height: 1.9rem;
    padding: 0.26rem 1.45rem 0.26rem 0.44rem;
    font-size: 0.82rem;
    border-radius: 0.62rem;
  }

  .results-modal__loading {
    padding: 1.4rem 1rem;
  }

  .searched-cards-modal {
    width: calc(100vw - 0.75rem);
    max-height: 88vh;
    margin-bottom: 0.35rem;
  }

  .searched-cards-modal__surface {
    max-height: 88vh;
    border-radius: 1rem 1rem 0.8rem 0.8rem;
  }

  .purchase-plan-modal[open] {
    align-items: flex-start;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .purchase-plan-modal__surface {
    max-height: none;
    overflow: visible;
  }

  .searched-cards-modal__body {
    padding: 0.75rem;
  }

  .card-image-modal {
    width: calc(100vw - 1rem);
  }

  .card-image-modal__body {
    padding: 0.75rem;
  }

  .card-image-modal__image {
    max-width: min(100%, 21rem);
    max-height: 72vh;
  }
}

.plan-preview-page {
  --plan-bg: #fbfaf6;
  --plan-surface: #fffefa;
  --plan-surface-soft: #fdf9f2;
  --plan-surface-warm: #faf5ec;
  --plan-border: #eee5d8;
  --plan-border-strong: #ded4c5;
  --plan-text: #1f2430;
  --plan-muted: #6f6a63;
  --plan-muted-strong: #555047;
  --plan-blue: #2563eb;
  --plan-blue-soft: #eff5ff;
  --plan-green: #16803f;
  --plan-green-soft: #edf9ef;
  background: var(--plan-bg);
}

.plan-preview-shell {
  width: min(64rem, calc(100vw - 2rem));
  margin: 0 auto;
  padding: 1.15rem 0 2rem;
}

@media (min-width: 1025px) {
  .plan-preview-shell {
    width: min(64rem, 80vw);
  }
}

.plan-preview-heading {
  position: relative;
  z-index: 16;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin: 1.1rem 0 1rem;
}

.plan-preview-heading h1 {
  margin: 0;
  font-size: clamp(1.55rem, 2.4vw, 2.1rem);
  line-height: 1.1;
  color: #0f172a;
}

.plan-preview-heading p {
  margin: 0.45rem 0 0;
  color: #475569;
}

.plan-preview-heading__eyebrow {
  margin: 0 0 0.25rem !important;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #64748b !important;
}

.plan-preview-ready-badge,
.plan-preview-status {
  display: inline-flex;
  align-items: center;
  gap: 0.22rem;
  min-height: 1.35rem;
  padding: 0.18rem 0.5rem;
  border-radius: 0.35rem;
  font-size: 0.76rem;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

.plan-preview-ready-badge,
.plan-preview-status--completed {
  color: #166534;
  background: #dcfce7;
}

.plan-preview-status--running,
.plan-preview-status--queued {
  color: #075985;
  background: #e0f2fe;
}

.plan-preview-status--skipped {
  color: #854d0e;
  background: #fef3c7;
}

.plan-preview-status--paused,
.plan-preview-status--failed {
  color: #9f1239;
  background: #ffe4e6;
}

.plan-preview-status-dots {
  display: inline-flex;
  width: 1.05em;
  justify-content: flex-start;
}

.plan-preview-status-dots span {
  animation: shop-status-dot 1.35s ease-in-out infinite;
  opacity: 0.18;
}

.plan-preview-status-dots span:nth-child(2) {
  animation-delay: 0.18s;
}

.plan-preview-status-dots span:nth-child(3) {
  animation-delay: 0.36s;
}

.plan-preview-panel,
.plan-preview-store-row,
.plan-preview-store {
  border: 1px solid #dbe3ef;
  border-radius: 0.55rem;
  background: #ffffff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.plan-preview-panel {
  padding: 1.15rem;
}

.plan-preview-panel--recommendation {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(14rem, 1fr);
  gap: 1.2rem;
  align-items: center;
}

.plan-preview-recommendation-status {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.plan-preview-recommendation-status h2 {
  margin: 0;
  color: #0f172a;
  font-size: 1.05rem;
}

.plan-preview-recommendation-status p,
.plan-preview-note,
.plan-preview-muted,
.plan-preview-modal-subtitle {
  color: #64748b;
}

.plan-preview-spinner,
.plan-preview-step-spinner {
  flex: 0 0 auto;
  width: 2.8rem;
  height: 2.8rem;
  border-radius: 999px;
  border: 0.45rem solid #dbeafe;
  border-top-color: #2563eb;
  animation: plan-preview-spin 0.9s linear infinite;
}

.plan-preview-spinner--soft {
  border-color: #e0f2fe;
  border-top-color: #0ea5e9;
}

.plan-preview-step-spinner {
  width: 1rem;
  height: 1rem;
  border-width: 0.18rem;
}

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

.plan-preview-progress {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.plan-preview-progress__bar {
  height: 0.42rem;
  min-width: 10rem;
  flex: 1 1 auto;
  overflow: hidden;
  border-radius: 999px;
  background: #e5e7eb;
}

.plan-preview-progress__bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #2563eb;
}

.plan-preview-loading-overview {
  display: grid;
  gap: 0.65rem;
  margin-bottom: 1rem;
  padding: 0.75rem 0.85rem;
  border: 1px solid var(--plan-border);
  border-radius: 0.85rem;
  color: var(--plan-text);
  background: var(--plan-surface);
  box-shadow: 0 0.35rem 1rem rgba(72, 54, 34, 0.06);
}

.plan-preview-loading-overview__top {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.75rem;
  align-items: center;
}

.plan-preview-loading-overview__status {
  min-width: 0;
}

.plan-preview-loading-overview__status h2,
.plan-preview-loading-overview__status p,
.plan-preview-loading-overview__hint {
  margin: 0;
}

.plan-preview-loading-overview__status h2 {
  color: var(--plan-text);
  font-size: 1.15rem;
  line-height: 1.15;
}

.plan-preview-loading-overview__status p,
.plan-preview-loading-overview__hint {
  margin-top: 0.25rem;
  color: var(--plan-muted);
  font-size: 0.88rem;
  line-height: 1.35;
}

.plan-preview-loading-overview__status-icon {
  display: inline-block;
  transform-origin: 50% 60%;
  animation: shop-status-hourglass 1.8s ease-in-out infinite;
}

.plan-preview-loading-overview__bar {
  height: 0.62rem;
  overflow: hidden;
  border: 1px solid var(--plan-border);
  border-radius: 999px;
  background: var(--plan-surface-warm);
}

.plan-preview-loading-overview__bar-fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #60a5fa, var(--plan-green));
  transition: width 180ms ease;
}

.plan-preview-loading-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.plan-preview-loading-steps li {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 1.6rem;
  padding: 0.2rem 0.55rem;
  border: 1px solid var(--plan-border);
  border-radius: 999px;
  color: var(--plan-muted-strong);
  background: var(--plan-surface-soft);
  font-size: 0.8rem;
  font-weight: 750;
}

.plan-preview-plan-statuses {
  display: grid;
  gap: 0.1rem;
  border-radius: 0.45rem;
  background: #f8fafc;
  overflow: hidden;
}

.plan-preview-plan-statuses span,
.plan-preview-steps li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 0.9rem;
  color: #334155;
}

.plan-preview-plan-statuses strong,
.plan-preview-steps strong {
  color: #64748b;
  font-weight: 600;
}

.plan-preview-steps {
  display: grid;
  gap: 0.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.plan-preview-steps li span:first-child {
  color: #16a34a;
  font-weight: 800;
}

.plan-preview-stores {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.6rem;
  margin-top: 1.25rem;
}

.plan-preview-loading-stores {
  grid-template-columns: 1fr;
  gap: 0;
  overflow: hidden;
  border: 1px solid var(--plan-border);
  border-radius: 0.85rem;
  background: var(--plan-surface);
  box-shadow: 0 0.35rem 1rem rgba(72, 54, 34, 0.06);
}

.plan-preview-section-header {
  display: flex;
  grid-column: 1 / -1;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.plan-preview-section-header h2 {
  margin: 0;
  color: #0f172a;
  font-size: 1rem;
}

.plan-preview-section-header span {
  color: #64748b;
  font-size: 0.85rem;
}

.plan-preview-store-row,
.plan-preview-store__summary {
  display: grid;
  grid-template-columns: minmax(16rem, 1.5fr) minmax(14rem, 1fr) auto;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem 1rem;
}

.plan-preview-store-row + .plan-preview-store-row {
  margin-top: 0.5rem;
}

.plan-preview-loading-stores .plan-preview-store-row {
  grid-template-columns: minmax(0, 1fr) minmax(11rem, 0.45fr);
  min-width: 0;
  border: 0;
  border-radius: 0;
  border-top: 1px solid var(--plan-border);
  background: transparent;
  box-shadow: none;
}

.plan-preview-loading-stores .plan-preview-store-row:first-of-type {
  border-top: 0;
}

.plan-preview-loading-stores .plan-preview-store-row + .plan-preview-store-row {
  margin-top: 0;
}

.plan-preview-store-row__identity,
.plan-preview-store__identity,
.plan-preview-selected-card,
.plan-preview-alternative {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}

.plan-preview-store-row__identity {
  position: relative;
  padding-right: 10.75rem;
}

.plan-preview-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.65rem;
  height: 2.65rem;
  border-radius: 999px;
  color: #ffffff;
  background: #334155;
  font-weight: 800;
}

.plan-preview-store-row h3,
.plan-preview-store__identity h3,
.plan-preview-alternative h4 {
  margin: 0;
  color: #0f172a;
  font-size: 0.98rem;
}

.plan-preview-store-row p,
.plan-preview-store__identity p,
.plan-preview-alternative p {
  margin: 0.2rem 0 0;
  color: #64748b;
  font-size: 0.85rem;
}

.plan-preview-store__summary-short {
  display: none;
}

.plan-preview-store-row__progress {
  display: grid;
  grid-template-columns: auto auto;
  gap: 0.22rem 0.8rem;
  align-items: center;
}

.plan-preview-store-row__progress .plan-preview-progress__bar {
  grid-column: 1 / -1;
}

.plan-preview-store-row__progress .plan-preview-status {
  justify-self: end;
  width: max-content;
}

.plan-preview-store-row__skip-form {
  position: absolute;
  top: 0;
  right: 0;
  margin: 0;
}

.plan-preview-store-row__skip-button {
  min-height: 1.75rem;
  padding: 0.26rem 0.55rem;
  font-size: 0.78rem;
}

.plan-preview-store-row__skip-button[disabled] {
  cursor: wait;
  opacity: 0.68;
}

.plan-preview-store__partial-label {
  display: inline-flex;
  align-items: center;
  width: max-content;
  max-width: 100%;
  padding: 0.12rem 0.4rem;
  border-radius: 0.35rem;
  color: #854d0e;
  background: #fef3c7;
  font-size: 0.78rem;
  font-weight: 750;
}

.plan-preview-secondary-button,
.plan-preview-primary-button,
.plan-preview-icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2rem;
  border-radius: 0.4rem;
  border: 1px solid #dbe3ef;
  padding: 0.38rem 0.7rem;
  font: inherit;
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.plan-preview-secondary-button,
.plan-preview-icon-button {
  color: #0f172a;
  background: #ffffff;
}

.plan-preview-primary-button {
  gap: 0.45rem;
  color: #ffffff;
  border-color: #15803d;
  background: #16a34a;
}

.plan-preview-button-icon {
  width: 1rem;
  height: 1rem;
  flex: 0 0 auto;
}

.plan-preview-icon-button {
  color: #9f1239;
  padding-inline: 0.55rem;
}

.plan-preview-note {
  margin: 0.8rem 0 0;
  padding: 0.75rem 0.9rem;
  border: 1px solid #bfdbfe;
  border-radius: 0.45rem;
  background: #eff6ff;
  font-size: 0.9rem;
}

.plan-preview-failed-stores {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin: 0.8rem 0;
  padding: 0.85rem 0.95rem;
  border: 1px solid #fecdd3;
  border-radius: 0.55rem;
  background: #fff1f2;
}

.plan-preview-failed-stores__body {
  display: grid;
  gap: 0.45rem;
  min-width: 0;
}

.plan-preview-failed-stores h2,
.plan-preview-failed-stores p {
  margin: 0;
}

.plan-preview-failed-stores h2 {
  color: #9f1239;
  font-size: 0.96rem;
}

.plan-preview-failed-stores p {
  color: #475569;
  font-size: 0.9rem;
  line-height: 1.4;
}

.plan-preview-failed-stores__list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  padding: 0;
  margin: 0;
  list-style: none;
}

.plan-preview-failed-stores__list li {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.22rem 0.45rem;
  border: 1px solid #fecdd3;
  border-radius: 999px;
  background: #ffffff;
  color: #0f172a;
  font-size: 0.82rem;
  font-weight: 700;
}

.plan-preview-failed-stores__list small {
  color: #64748b;
  font-size: 0.76rem;
  font-weight: 650;
}

.plan-preview-failed-stores__form {
  flex: 0 0 auto;
  margin: 0;
}

.plan-preview-failed-stores__button {
  border-color: #fda4af;
  color: #9f1239;
}

.plan-preview-summary {
  display: grid;
  gap: 1rem;
}

.plan-preview-ready-layout {
  display: grid;
  grid-template-columns: minmax(18rem, 1fr) minmax(0, 2fr);
  gap: 1rem;
  align-items: start;
}

.plan-preview-ready-layout .plan-preview-summary {
  position: sticky;
  top: 1rem;
}

.plan-preview-ready-stores {
  display: grid;
  gap: 1.25rem;
}

.plan-preview-ready-stores .plan-preview-stores {
  grid-template-columns: 1fr;
  margin-top: 0;
}

.plan-preview-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.plan-preview-tab {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 2.4rem;
  padding: 0.45rem 0.9rem;
  border: 1px solid #dbe3ef;
  border-radius: 0.45rem;
  color: #334155;
  text-decoration: none;
  font-weight: 700;
}

.plan-preview-tab span {
  width: 0.75rem;
  height: 0.75rem;
  border: 1px solid #94a3b8;
  border-radius: 999px;
}

.plan-preview-tab--selected {
  color: #075985;
  border-color: #38bdf8;
  background: #f0f9ff;
}

.plan-preview-tab--selected span {
  border: 0.22rem solid #0ea5e9;
}

.plan-preview-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
}

.plan-preview-ready-layout .plan-preview-metrics {
  grid-template-columns: 1fr;
}

.plan-preview-metrics > div {
  min-width: 0;
  padding: 0.8rem 0.9rem;
  border: 1px solid #e2e8f0;
  border-radius: 0.45rem;
  background: #ffffff;
}

.plan-preview-metrics span,
.plan-preview-metrics small {
  display: block;
  color: #64748b;
}

.plan-preview-metrics strong {
  display: block;
  margin-top: 0.25rem;
  color: #0f172a;
  font-size: 1.25rem;
}

.plan-preview-coverage {
  background: #f0fdf4 !important;
  border-color: #bbf7d0 !important;
}

.plan-preview-store {
  overflow: visible;
}

.plan-preview-store__summary {
  grid-template-columns: auto minmax(13rem, 1fr) minmax(6.5rem, auto) auto;
  position: sticky;
  top: 0;
  z-index: 5;
  background: #ffffff;
  cursor: pointer;
}

.plan-preview-store__summary::marker {
  content: "";
}

.plan-preview-no-cart {
  color: #64748b;
  font-size: 0.82rem;
  font-weight: 700;
}

.plan-preview-no-cart__compact {
  display: none;
}

.plan-preview-store__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.2rem 0.5rem;
}

.plan-preview-store__meta > span + span::before {
  content: "•";
  margin-right: 0.5rem;
  color: #94a3b8;
}

.plan-preview-store__representatives {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.45rem;
  margin-top: 0.32rem;
  color: #334155;
  font-size: 0.82rem;
  line-height: 1.35;
}

.plan-preview-store__representatives span {
  min-width: 0;
}

.plan-preview-store__total span {
  display: block;
  color: #64748b;
  font-size: 0.78rem;
}

.plan-preview-store__total strong {
  color: #0f172a;
  font-size: 1.15rem;
}

.plan-preview-caret {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.6rem;
  height: 1.6rem;
  color: #475569;
  transition: transform 0.16s ease;
}

.plan-preview-caret svg {
  width: 1rem;
  height: 1rem;
}

.plan-preview-store[open] > .plan-preview-store__summary .plan-preview-caret {
  transform: rotate(90deg);
}

.plan-preview-caret--small {
  width: 1.25rem;
  height: 1.25rem;
}

.plan-preview-selected-table {
  border-top: 1px solid #e2e8f0;
  overflow-x: auto;
}

.plan-preview-selected-table__head {
  display: grid;
  grid-template-columns: minmax(17rem, 1fr) minmax(7rem, auto);
  min-width: 28rem;
  gap: 0.8rem;
  align-items: center;
  padding: 0.65rem 0.85rem;
}

.plan-preview-selected-table__head {
  color: #64748b;
  background: #f8fafc;
  font-size: 0.78rem;
  font-weight: 800;
}

.plan-preview-card-row {
  --plan-card-control-width: 1.35rem;
  --plan-card-media-gap: 0.75rem;
  --plan-card-reserved-control-gap: var(--plan-card-media-gap);
  --plan-card-row-x: 0.85rem;
  --plan-card-row-y: 0.65rem;
  --plan-card-image-width: 4.8rem;
  --plan-card-image-height: 4.7rem;

  display: grid;
  grid-template-columns: minmax(17rem, 1fr) minmax(7rem, auto);
  min-width: 28rem;
  gap: 0.8rem;
  align-items: stretch;
  padding: var(--plan-card-row-y) var(--plan-card-row-x) 0;
}

.plan-preview-selected-row {
  border-top: 1px solid #edf2f7;
  color: #1e293b;
}

.plan-preview-other-card.plan-preview-card-row {
  --plan-card-row-x: 0;
  --plan-card-reserved-control-gap: 0.6rem;
  border-bottom: 1px solid #f1f5f9;
}

.plan-preview-selected-row--excluded {
  color: #64748b;
  background: #f8fafc;
}

.plan-preview-selected-row--excluded .plan-preview-selected-card__image-crop,
.plan-preview-selected-row--excluded .plan-preview-selected-card__placeholder {
  opacity: 0.46;
}

.plan-preview-selected-row--excluded .plan-preview-selected-card strong,
.plan-preview-selected-row--excluded .plan-preview-selected-price strong {
  color: #64748b;
}

.plan-preview-card-row__media,
.plan-preview-alternative__image-button,
.plan-preview-alternative__image,
.plan-preview-alternative__placeholder {
  width: var(--plan-card-image-width);
  height: var(--plan-card-image-height);
  flex: 0 0 auto;
  border-radius: 0.35rem 0.35rem 0 0;
  background: #e2e8f0;
}

.plan-preview-image-button {
  padding: 0;
  border: 0;
  color: inherit;
  font: inherit;
  cursor: zoom-in;
}

.plan-preview-image-button:hover,
.plan-preview-image-button:focus-visible {
  outline: 2px solid rgba(37, 99, 235, 0.45);
  outline-offset: 0.12rem;
}

.plan-preview-card-row__media-crop {
  position: relative;
  align-self: end;
  overflow: hidden;
}

.plan-preview-card-row__media-crop::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 1.05rem;
  background: linear-gradient(to bottom, rgba(15, 23, 42, 0), rgba(15, 23, 42, 0.34));
  pointer-events: none;
}

.plan-preview-card-row__image {
  display: block;
  width: 100%;
  height: 7.15rem;
  object-fit: cover;
  object-position: top center;
}

.plan-preview-alternative__image {
  display: block;
  align-self: stretch;
  width: 100%;
  height: 100%;
  min-height: 4.25rem;
  border-radius: 0.25rem;
  object-fit: cover;
  object-position: top center;
}

.plan-preview-alternative__image-button {
  align-self: stretch;
  width: 3.1rem;
  height: 100%;
  min-height: 4.25rem;
  overflow: hidden;
  border-radius: 0.25rem;
}

.plan-preview-alternative__placeholder {
  align-self: stretch;
  width: 3.1rem;
  height: 100%;
  min-height: 4.25rem;
  border-radius: 0.25rem;
}

.plan-preview-card-row__placeholder,
.plan-preview-alternative__placeholder {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #64748b;
  font-size: 0.7rem;
  font-weight: 800;
}

.plan-preview-card-row__main strong,
.plan-preview-card-row__main small,
.plan-preview-selected-row small,
.plan-preview-selected-price strong,
.plan-preview-selected-price small {
  display: block;
}

.plan-preview-card-row__main strong,
.plan-preview-selected-price strong {
  color: #0f172a;
}

.plan-preview-card-row__details small,
.plan-preview-other-card__meta,
.plan-preview-selected-meta,
.plan-preview-selected-price small {
  color: #334155;
}

.plan-preview-card-row__main {
  display: flex;
  align-items: center;
  gap: var(--plan-card-media-gap);
  min-width: 0;
}

.plan-preview-card-row__main--reserve-control {
  box-sizing: border-box;
  padding-left: calc(var(--plan-card-control-width) + var(--plan-card-reserved-control-gap));
}

.plan-preview-card-row__control {
  flex: 0 0 var(--plan-card-control-width);
}

.plan-preview-card-row__details {
  display: grid;
  gap: 0.35rem;
  min-width: 0;
  overflow: hidden;
  padding-bottom: var(--plan-card-row-y);
}

.plan-preview-card-row__price {
  justify-self: start;
  padding-bottom: var(--plan-card-row-y);
}

.plan-preview-selected-price small {
  max-width: 16rem;
  margin-top: 0.18rem;
  color: #64748b;
  font-size: 0.78rem;
  line-height: 1.3;
}

.plan-preview-printing-select {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  box-sizing: border-box;
  width: fit-content;
  min-width: 0;
  max-width: 100%;
  min-height: 1.8rem;
  margin-top: 0.28rem;
  padding: 0.24rem 0.55rem;
  border: 1px solid var(--plan-border-strong);
  border-radius: 0.35rem;
  color: var(--plan-text);
  background: var(--plan-surface);
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.25;
  text-decoration: none;
}

.plan-preview-printing-select__label {
  flex: 0 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.plan-preview-printing-select__label--mobile {
  display: none;
}

.plan-preview-printing-select:hover,
.plan-preview-printing-select:focus-visible {
  border-color: #38bdf8;
  background: #f8fafc;
}

.plan-preview-printing-select:focus-visible {
  outline: 3px solid rgba(56, 189, 248, 0.22);
  outline-offset: 0.08rem;
}

.plan-preview-printing-select__chevron {
  width: 0.42rem;
  height: 0.42rem;
  flex: 0 0 auto;
  margin-left: 0.65rem;
  border-right: 1.5px solid var(--plan-muted);
  border-bottom: 1.5px solid var(--plan-muted);
  transform: translateY(-0.12rem) rotate(45deg);
}

.plan-preview-selected-include {
  flex: 0 0 auto;
}

.plan-preview-checkbox-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  width: 1.35rem;
  height: 1.35rem;
  border: 1px solid #94a3b8;
  border-radius: 0.32rem;
  padding: 0;
  font: inherit;
  color: transparent;
  background: #ffffff;
  font-size: 0.9rem;
  font-weight: 800;
  line-height: 0;
  cursor: pointer;
  vertical-align: top;
}

.plan-preview-checkbox-button--checked {
  color: #ffffff;
  border-color: #16a34a;
  background: #16a34a;
}

.plan-preview-checkbox-button--checked::after {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0.32rem;
  height: 0.58rem;
  content: "";
  border-right: 0.13rem solid currentColor;
  border-bottom: 0.13rem solid currentColor;
  transform: translate(-50%, -58%) rotate(45deg);
}

.plan-preview-checkbox-button span {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.plan-preview-checkbox-button:hover,
.plan-preview-checkbox-button:focus-visible {
  border-color: #38bdf8;
}

.plan-preview-inline-form,
.plan-preview-store__cart-form {
  display: inline-flex;
  margin: 0;
}

.plan-preview-additional-matches {
  border-top: 1px solid #e2e8f0;
  background: #fbfdff;
}

.plan-preview-additional-matches > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem 0.9rem;
  color: #475569;
  cursor: pointer;
  font-size: 0.86rem;
  font-weight: 800;
}

.plan-preview-additional-matches > summary::marker {
  content: "";
}

.plan-preview-additional-matches[open] .plan-preview-caret--small {
  transform: rotate(90deg);
}

.plan-preview-additional-matches__label {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.plan-preview-other-results {
  display: grid;
  gap: 0.35rem;
  padding: 0.85rem 1rem 1rem;
  border-top: 1px solid #e2e8f0;
}

.plan-preview-other-card__body {
  gap: 0.28rem;
}

.plan-preview-other-card__body strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.plan-preview-other-card__body small {
  color: var(--plan-muted);
  font-size: 0.78rem;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.plan-preview-selected-card .plan-preview-cache-note,
.plan-preview-other-card__body .plan-preview-cache-note {
  color: #854d0e;
}

.plan-preview-other-card__listings-link {
  margin-top: 0;
}

.plan-preview-other-card__selected {
  color: var(--plan-muted-strong);
}

.plan-preview-other-card__price-prefix {
  display: inline;
  color: var(--plan-muted);
  font-weight: 700;
}

.plan-preview-other-card__price--muted strong {
  color: var(--plan-muted);
}

.plan-preview-other-card__price strong {
  white-space: nowrap;
}

.plan-preview-empty-store {
  margin: 0;
  padding: 1rem;
  border-top: 1px solid #e2e8f0;
  color: #64748b;
}

.plan-preview-pagination-note {
  margin: 0;
  padding: 0.7rem 1rem;
  border-top: 1px solid var(--plan-border);
  color: #854d0e;
  background: #fffbeb;
  font-size: 0.82rem;
  font-weight: 650;
  line-height: 1.35;
}

.plan-preview-other-results > .plan-preview-pagination-note:last-child {
  margin: 0 -1rem -1rem;
}

.plan-preview-pagination-note--status {
  grid-column: 1 / -1;
  padding: 0.4rem 0 0;
  border-top: 0;
  background: transparent;
}

.plan-preview-alternatives-list {
  display: grid;
  gap: 0.55rem;
  padding: 0.9rem;
}

.plan-preview-alternative-store {
  display: grid;
  gap: 0.55rem;
}

.plan-preview-alternative-store + .plan-preview-alternative-store {
  padding-top: 0.8rem;
  border-top: 1px solid var(--plan-border);
}

.plan-preview-alternative-store__title {
  margin: 0;
  color: var(--plan-text);
  font-size: 0.88rem;
  font-weight: 800;
}

.plan-preview-alternative-store__groups {
  display: grid;
  gap: 0.45rem;
}

.plan-preview-alternative-store__group {
  border: 1px solid var(--plan-border);
  border-radius: 0.55rem;
  background: var(--plan-surface-soft);
  overflow: hidden;
}

.plan-preview-alternative-store__group > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.65rem 0.75rem;
  color: var(--plan-text);
  cursor: pointer;
  font-weight: 750;
}

.plan-preview-alternative-store__group > summary small {
  color: var(--plan-muted);
  font-weight: 650;
  white-space: nowrap;
}

.plan-preview-alternative-store__summary-meta {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-width: 0;
}

.plan-preview-alternative-store__list {
  display: grid;
  gap: 0.45rem;
  padding: 0 0.65rem 0.65rem;
}

.plan-preview-alternative {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) minmax(5.75rem, auto) auto;
  padding: 0.65rem;
  border: 1px solid #e2e8f0;
  border-radius: 0.45rem;
}

.plan-preview-alternative__price {
  display: grid;
  gap: 0.12rem;
  justify-items: end;
}

.plan-preview-alternative__price--muted strong {
  color: var(--plan-muted);
  font-weight: 700;
}

.plan-preview-alternative__price small {
  max-width: 8.5rem;
  color: #64748b;
  font-size: 0.74rem;
  line-height: 1.25;
  text-align: right;
}

.plan-preview-token-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-left: 0.35rem;
  padding: 0.1rem 0.38rem;
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  color: #475569;
  background: #f8fafc;
  font-size: 0.68rem;
  font-weight: 800;
  line-height: 1.15;
  text-transform: uppercase;
  vertical-align: 0.08rem;
}

.plan-preview-alternative--selected {
  border-color: #86efac;
  background: #f0fdf4;
}

@media (max-width: 820px) {
  .plan-preview-shell {
    width: min(100% - 1rem, 96rem);
  }

  .plan-preview-ready-layout {
    grid-template-columns: 1fr;
  }

  .plan-preview-ready-layout .plan-preview-summary {
    position: static;
  }

  .plan-preview-stores {
    grid-template-columns: 1fr;
  }

  .plan-preview-panel--recommendation,
  .plan-preview-store-row,
  .plan-preview-metrics,
  .plan-preview-alternative {
    grid-template-columns: 1fr;
  }

  .plan-preview-store__summary {
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.65rem;
  }

  .plan-preview-store__summary .plan-preview-avatar {
    display: none;
  }

  .plan-preview-store__cart-form,
  .plan-preview-no-cart {
    grid-column: 3;
    grid-row: 1;
  }

  .plan-preview-store__total,
  .plan-preview-store__representatives {
    display: none;
  }

  .plan-preview-primary-button {
    width: auto;
    min-width: 2.25rem;
    min-height: 2.25rem;
    padding: 0.42rem;
  }

  .plan-preview-primary-button span {
    display: none;
  }

  .plan-preview-no-cart__full {
    display: none;
  }

  .plan-preview-no-cart__compact {
    display: inline;
  }

  .plan-preview-section-header {
    align-items: flex-start;
  }

  .plan-preview-section-header span {
    max-width: 11rem;
    text-align: right;
  }

  .plan-preview-selected-table {
    overflow-x: visible;
  }

  .plan-preview-selected-table__head {
    display: none;
  }

  .plan-preview-selected-card strong {
    font-size: 0.98rem;
    line-height: 1.25;
  }

  .plan-preview-printing-select {
    max-width: 100%;
  }

  .plan-preview-printing-select__label--desktop {
    display: none;
  }

  .plan-preview-printing-select__label--mobile {
    display: inline;
  }

  .plan-preview-selected-price {
    margin-left: calc(1.35rem + 4.25rem + 1.3rem);
    justify-self: start;
    font-size: 0.95rem;
    line-height: 1.2;
  }

  .plan-preview-selected-price small {
    max-width: 100%;
  }

  .plan-preview-alternative {
    grid-template-columns: 4.25rem minmax(0, 1fr) auto;
    grid-template-areas:
      "image body action"
      "image price action";
    align-items: start;
  }

  .plan-preview-alternative__image-button,
  .plan-preview-alternative__placeholder {
    grid-area: image;
    width: 4.25rem;
    height: 5.95rem;
    min-height: 5.95rem;
    border-radius: 0.35rem;
  }

  .plan-preview-alternative__image {
    min-height: 0;
    object-fit: contain;
  }

  .plan-preview-alternative > div:not(.plan-preview-alternative__price) {
    grid-area: body;
  }

  .plan-preview-alternative__price {
    grid-area: price;
    justify-items: start;
  }

  .plan-preview-alternative__price small {
    max-width: 100%;
    text-align: left;
  }

  .plan-preview-alternative .plan-preview-status,
  .plan-preview-alternative .plan-preview-inline-form {
    grid-area: action;
  }
}

@media (max-width: 360px) {
  .shop-section__grid,
  .results-modal__grid,
  .results-modal__store-list {
    grid-template-columns: 1fr;
  }
}

.plan-preview-heading__title-row {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.plan-preview-search-summary {
  position: relative;
  z-index: 16;
  display: grid;
  gap: 0.7rem;
  margin: -0.35rem 0 0.9rem;
  padding: 0.75rem 0.85rem;
  border: 1px solid var(--plan-border);
  border-radius: 0.65rem;
  background: var(--plan-surface);
}

.plan-preview-search-summary__main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.plan-preview-search-summary__main > div {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.35rem 0.55rem;
  min-width: 0;
}

.plan-preview-search-summary__main strong {
  color: var(--plan-text);
  font-size: 0.95rem;
}

.plan-preview-search-summary__main span {
  color: var(--plan-muted);
  font-size: 0.84rem;
  font-weight: 700;
}

.plan-preview-search-summary__button {
  flex: 0 0 auto;
  border: 0;
  padding: 0;
  color: var(--plan-blue);
  background: transparent;
  font: inherit;
  font-size: 0.84rem;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
}

.plan-preview-search-summary__button:hover,
.plan-preview-search-summary__button:focus-visible {
  text-decoration: underline;
}

.plan-preview-search-summary__pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.plan-preview-search-summary__pills > span,
.plan-preview-search-summary__pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 1.55rem;
  padding: 0.2rem 0.38rem 0.2rem 0.55rem;
  border: 1px solid var(--plan-border);
  border-radius: 999px;
  color: var(--plan-muted-strong);
  background: var(--plan-surface-soft);
  font-size: 0.8rem;
  font-weight: 650;
}

.plan-preview-search-summary__pills > span:not(.plan-preview-search-summary__pill) {
  padding-right: 0.55rem;
}

.plan-preview-search-summary__pill > span {
  min-width: 0;
}

.plan-preview-search-summary__pill-edit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.25rem;
  height: 1.25rem;
  flex: 0 0 auto;
  border: 1px solid #bfdbfe;
  border-radius: 999px;
  padding: 0;
  color: var(--plan-blue);
  background: var(--plan-blue-soft);
  cursor: pointer;
}

.plan-preview-search-summary__pill-edit:hover,
.plan-preview-search-summary__pill-edit:focus-visible {
  color: #1d4ed8;
  border-color: #93c5fd;
  background: #dbeafe;
}

.plan-preview-search-summary__pill-edit svg {
  width: 0.78rem;
  height: 0.78rem;
}

.plan-preview-search-page .search-shell__header {
  margin: 1.1rem 0 1rem;
}

.plan-preview-search-page .search-panel,
.plan-preview-search-page .recent-searches,
.plan-preview-search-page .search-onboarding__card {
  color: var(--plan-text);
  border-color: var(--plan-border);
  border-radius: 0.85rem;
  background: var(--plan-surface);
  box-shadow: 0 0.55rem 1.4rem rgba(72, 54, 34, 0.06);
}

.plan-preview-search-page .search-panel {
  padding: 1rem;
}

.plan-preview-search-page .search-panel__option-title,
.plan-preview-search-page .search-panel__estimate strong,
.plan-preview-search-page .search-onboarding__title,
.plan-preview-search-page .recent-searches__query,
.plan-preview-search-page .recent-searches__view,
.plan-preview-search-page .recent-searches__title {
  color: var(--plan-text);
}

.plan-preview-search-page .search-panel__option-copy,
.plan-preview-search-page .search-panel__estimate,
.plan-preview-search-page .search-panel__estimate-note,
.plan-preview-search-page .search-panel__identity-example,
.plan-preview-search-page .search-onboarding__heading,
.plan-preview-search-page .search-onboarding__copy,
.plan-preview-search-page .recent-searches__meta {
  color: var(--plan-muted);
}

.plan-preview-search-page .search-onboarding__link {
  color: var(--plan-blue);
}

.plan-preview-search-page .search-onboarding__link:hover {
  color: #1d4ed8;
}

.plan-preview-search-page .search-onboarding__icon {
  color: #9a7a58;
}

.plan-preview-search-page .search-panel__textarea {
  color: var(--plan-text);
  border-color: var(--plan-border-strong);
  background: #ffffff;
  border-radius: 0.75rem;
}

.plan-preview-search-page .search-panel__prefill-chip {
  color: var(--plan-text);
  border-color: var(--plan-border);
  background: var(--plan-surface-soft);
}

.plan-preview-search-page .search-panel__prefill-chip:hover,
.plan-preview-search-page .search-panel__prefill-chip:focus-visible {
  border-color: #bfdbfe;
  background: #eff6ff;
}

.plan-preview-search-page .search-panel__prefill-source {
  color: var(--plan-muted);
}

.plan-preview-search-page .search-panel__textarea:focus {
  border-color: #93c5fd;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

.plan-preview-search-page .search-panel__shop-pill,
.plan-preview-search-page .search-panel__identity-check {
  color: var(--plan-muted-strong);
}

.plan-preview-search-page .search-panel__shop-pill {
  min-height: 2.25rem;
  padding: 0.35rem 0.55rem;
  border: 1px solid var(--plan-border);
  border-radius: 999px;
  background: var(--plan-surface-soft);
}

.plan-preview-search-page .search-panel__shop-pill--disabled {
  color: #9b9489;
  background: #f7f1e8;
}

.plan-preview-search-page .search-panel__shortcut {
  color: var(--plan-blue);
  border-color: var(--plan-border);
  background: var(--plan-surface-soft);
}

.plan-preview-search-page .search-panel__shortcut:hover {
  color: #1d4ed8;
  border-color: #bfdbfe;
}

.plan-preview-search-page .search-panel__identity-option {
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--plan-border);
}

.plan-preview-search-page .search-panel__submit {
  color: #ffffff;
  background: var(--plan-green);
  border-radius: 0.75rem;
  box-shadow: 0 0.55rem 1.2rem rgba(22, 128, 63, 0.16);
}

.plan-preview-search-page .search-panel__submit:hover {
  background: #0f7135;
  filter: none;
}

.plan-preview-search-page .recent-searches__item {
  color: var(--plan-text);
  border-color: var(--plan-border);
  background: var(--plan-surface-soft);
}

.plan-preview-search-page .recent-searches__item:hover,
.plan-preview-search-page .recent-searches__item:focus-visible {
  border-color: #bfdbfe;
  background: #ffffff;
}

.plan-preview-search-page .recent-searches__view::after {
  color: var(--plan-muted);
}

@media (max-width: 720px) {
  .plan-preview-search-page .search-panel__shops {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.55rem 0.9rem;
  }

  .plan-preview-search-page .search-panel__shop-pill {
    min-height: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
  }

  .plan-preview-search-page .search-panel__shop-pill--disabled {
    background: transparent;
  }
}

.plan-preview-search-context {
  margin: -0.4rem 0 0.9rem;
  border: 1px solid var(--plan-border);
  border-radius: 0.55rem;
  background: transparent;
}

.plan-preview-search-context > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.55rem 0.7rem;
  color: var(--plan-muted);
  cursor: pointer;
  font-size: 0.84rem;
  font-weight: 700;
}

.plan-preview-search-context > summary::marker {
  color: var(--plan-muted);
}

.plan-preview-search-context > summary strong {
  color: var(--plan-text);
  white-space: nowrap;
}

.plan-preview-search-context__body {
  display: grid;
  gap: 0.75rem;
  padding: 0 0.7rem 0.7rem;
}

.plan-preview-search-context__chips,
.plan-preview-search-context__query {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.plan-preview-search-context__chips span,
.plan-preview-search-context__query span {
  display: inline-flex;
  align-items: center;
  min-height: 1.55rem;
  padding: 0.2rem 0.55rem;
  border: 1px solid var(--plan-border);
  border-radius: 999px;
  color: var(--plan-muted-strong);
  background: var(--plan-surface-soft);
  font-size: 0.8rem;
  font-weight: 650;
}

.plan-preview-search-context__query span {
  border-radius: 0.4rem;
  background: var(--plan-surface-warm);
}

.plan-preview-card-coverage {
  margin: -0.35rem 0 0.75rem;
  border: 1px solid var(--plan-border);
  border-radius: 0.65rem;
  background: var(--plan-surface);
}

.plan-preview-card-coverage > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.65rem 0.8rem;
  cursor: pointer;
}

.plan-preview-card-coverage > summary::marker {
  color: var(--plan-muted);
}

.plan-preview-card-coverage > summary strong {
  color: var(--plan-text);
}

.plan-preview-card-coverage > summary span {
  color: var(--plan-blue);
  font-size: 0.84rem;
  font-weight: 800;
  white-space: nowrap;
}

.plan-preview-card-coverage__body {
  display: grid;
  gap: 0.8rem;
  padding: 0 0.8rem 0.85rem;
}

.plan-preview-card-coverage__body h3,
.plan-preview-card-coverage__body p {
  margin: 0;
}

.plan-preview-card-coverage__body h3 {
  color: var(--plan-muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.plan-preview-card-coverage__body section {
  display: grid;
  gap: 0.45rem;
}

.plan-preview-card-coverage__body p {
  color: var(--plan-muted-strong);
  font-size: 0.86rem;
}

.plan-preview-card-coverage__list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.plan-preview-card-coverage__list span {
  display: inline-flex;
  align-items: center;
  min-height: 1.55rem;
  padding: 0.2rem 0.55rem;
  border: 1px solid #fecaca;
  border-radius: 0.4rem;
  color: #991b1b;
  background: #fff1f2;
  font-size: 0.8rem;
  font-weight: 700;
}

.plan-preview-searched-cards-modal .plan-preview-card-coverage__body {
  padding: 0.95rem;
}

.plan-preview-card-coverage__body--compact {
  gap: 0.55rem;
}

.plan-preview-searched-cards-form {
  margin: 0;
}

.plan-preview-searched-cards-list {
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  margin-top: 0;
}

.plan-preview-searched-cards-modal .searched-cards__item {
  color: var(--plan-text);
}

.plan-preview-searched-cards-list__item {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  min-height: 2.25rem;
  gap: 0.7rem;
  padding: 0.26rem 0;
  border-top: 1px solid var(--plan-border);
}

.plan-preview-searched-cards-list__item--excluded .searched-cards__name {
  color: var(--plan-muted);
  text-decoration: line-through;
}

.plan-preview-searched-cards-list__item:first-child {
  border-top: 0;
}

.plan-preview-searched-cards-list__line {
  display: flex;
  align-items: baseline;
  gap: 0.34rem;
  min-width: 0;
}

.plan-preview-searched-cards-list__status-label {
  display: inline-flex;
  align-items: center;
  min-height: 1.25rem;
  padding: 0.08rem 0.38rem;
  border: 1px solid #cbd5e1;
  border-radius: 0.35rem;
  color: #475569;
  background: #f8fafc;
  font-size: 0.68rem;
  font-weight: 800;
  line-height: 1;
}

.plan-preview-searched-cards-list__status-label--missing {
  color: #991b1b;
  border-color: #fecaca;
  background: #fff1f2;
}

.plan-preview-searched-cards-list__status-label--excluded {
  color: #475569;
  border-color: #cbd5e1;
  background: #f8fafc;
}

.plan-preview-searched-cards-list__checkbox {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  color: var(--plan-muted-strong);
  font-size: 0.78rem;
  font-weight: 750;
  white-space: nowrap;
}

.plan-preview-searched-cards-list__checkbox input {
  width: 1rem;
  height: 1rem;
  accent-color: var(--plan-blue);
}

.plan-preview-searched-cards-form__footer {
  position: sticky;
  bottom: 0;
  display: flex;
  justify-content: flex-end;
  gap: 0.6rem;
  padding: 0.7rem 0.95rem 0.95rem;
  border-top: 1px solid var(--plan-border);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.88), #ffffff 35%);
}

.plan-preview-searched-cards-form__footer[hidden] {
  display: none;
}

.plan-preview-searched-cards-modal .searched-cards__quantity,
.plan-preview-searched-cards-modal .searched-cards__printing {
  color: var(--plan-muted);
}

.plan-preview-searched-cards-modal .searched-cards__name {
  font-weight: 750;
}

.plan-preview-info-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.35rem;
  height: 1.35rem;
  border: 1px solid #94a3b8;
  border-radius: 999px;
  padding: 0;
  color: #475569;
  background: #ffffff;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1;
}

.plan-preview-plan-selector {
  position: relative;
  display: grid;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.plan-preview-plan-cards {
  position: relative;
  z-index: 16;
  display: grid;
  grid-auto-columns: minmax(17rem, 1fr);
  grid-auto-flow: column;
  gap: 0.85rem;
  overflow-x: auto;
  padding: 0.15rem 0 0.55rem;
  scroll-snap-type: x proximity;
}

.plan-preview-plan-card {
  position: relative;
  display: grid;
  gap: 0.3rem;
  min-height: 6.6rem;
  padding: 0.85rem 2.7rem 0.85rem 0.95rem;
  border: 1px solid var(--plan-border);
  border-radius: 0.85rem;
  color: var(--plan-text);
  background: var(--plan-surface);
  box-shadow: 0 0.55rem 1.4rem rgba(72, 54, 34, 0.06);
  text-decoration: none;
  scroll-snap-align: start;
}

.plan-preview-plan-card--selected {
  border-color: #2563eb;
  background: #fffefa;
  box-shadow: inset 0 0 0 1px #93c5fd;
}

.plan-preview-plan-card > strong {
  align-self: end;
  font-size: 0.95rem;
}

.plan-preview-plan-card__total {
  color: var(--plan-text);
  font-size: 1.45rem;
  font-weight: 850;
  letter-spacing: 0;
  line-height: 1;
}

.plan-preview-plan-card small {
  color: var(--plan-muted);
  font-size: 0.82rem;
  font-weight: 500;
}

.plan-preview-plan-card__radio {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 1.35rem;
  height: 1.35rem;
  border: 2px solid #9d927f;
  border-radius: 999px;
  background: var(--plan-surface);
}

.plan-preview-plan-card--selected .plan-preview-plan-card__radio {
  border: 0.34rem solid #2563eb;
}

.plan-preview-plan-settings-modal {
  width: min(45rem, calc(100vw - 1rem));
}

.plan-preview-plan-settings-modal .results-modal__surface {
  width: 100%;
}

.plan-preview-plan-settings-form {
  display: grid;
  gap: 0.95rem;
  padding: 0.95rem;
}

.plan-preview-plan-settings-warning {
  padding: 0.65rem 0.75rem;
  border: 1px solid #fde68a;
  border-radius: 0.5rem;
  color: #854d0e;
  background: #fffbeb;
  font-size: 0.88rem;
  font-weight: 650;
}

.plan-preview-plan-settings-form .search-panel__section,
.plan-preview-plan-settings-form .search-panel__option {
  margin-bottom: 0;
}

.plan-preview-plan-settings-form .search-panel__option {
  display: grid;
  gap: 0.55rem;
  padding: 0.75rem;
  color: var(--plan-muted-strong);
  border-color: var(--plan-border);
  border-radius: 0.65rem;
  background: var(--plan-surface-soft);
}

.plan-preview-plan-settings-form .search-panel__option-title {
  color: var(--plan-text);
}

.plan-preview-plan-settings-form .search-panel__option-copy,
.plan-preview-plan-settings-form .search-panel__identity-example {
  color: var(--plan-muted);
}

.plan-preview-plan-settings-form .search-panel__identity-checks,
.plan-preview-plan-settings-form .search-panel__shop-shortcuts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.plan-preview-plan-settings-form .search-panel__identity-check,
.plan-preview-plan-settings-form .search-panel__shop-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 2rem;
  padding: 0.35rem 0.55rem;
  border: 1px solid var(--plan-border);
  border-radius: 0.45rem;
  color: var(--plan-text);
  background: var(--plan-surface);
  font-size: 0.86rem;
  font-weight: 700;
}

.plan-preview-plan-settings-form .search-panel__identity-checkbox,
.plan-preview-plan-settings-form .search-panel__shop-checkbox {
  width: 1rem;
  height: 1rem;
  accent-color: #2563eb;
}

.plan-preview-plan-settings-form .search-panel__shops {
  grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
  gap: 0.55rem;
}

.plan-preview-plan-settings-form .search-panel__shortcut {
  min-height: 1.75rem;
  padding: 0.25rem 0.55rem;
  color: var(--plan-blue);
  border-color: #bfdbfe;
  background: var(--plan-blue-soft);
  font-size: 0.8rem;
  font-weight: 800;
}

.plan-preview-plan-settings-form .search-panel__shop-pill--disabled {
  color: var(--plan-muted);
  background: #f4eee4;
  opacity: 0.58;
}

.plan-preview-plan-settings-form__footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.6rem;
  padding: 0 0.95rem 0.95rem;
}

.plan-preview-plan-settings-form__actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.6rem;
}

.plan-preview-plan-settings-form__reset-form {
  margin: 0;
}

.plan-preview-plan-settings-form__reset {
  color: #7f1d1d;
  border-color: #fecaca;
  background: #fff1f2;
}

.plan-preview-summary-bar {
  position: sticky;
  top: 0.5rem;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 3.45rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--plan-border);
  border-radius: 0.85rem;
  color: var(--plan-text);
  background: rgba(255, 254, 250, 0.96);
  box-shadow: 0 0.75rem 1.5rem rgba(72, 54, 34, 0.11);
  backdrop-filter: blur(10px);
}

.plan-preview-summary-bar__label {
  display: flex;
  align-items: center;
  flex: 1 1 auto;
  flex-wrap: nowrap;
  gap: 0.35rem;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
}

.plan-preview-summary-bar__label > span {
  flex: 0 0 auto;
}

.plan-preview-summary-bar__label > span:first-child {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.plan-preview-summary-bar__store-select {
  margin-left: auto;
  flex: 0 0 auto;
}

.plan-preview-summary-bar__store-select select {
  max-width: 12rem;
  min-height: 2.1rem;
  border: 1px solid var(--plan-border-strong);
  border-radius: 0.45rem;
  padding: 0.35rem 1.9rem 0.35rem 0.65rem;
  color: var(--plan-text);
  background: var(--plan-surface);
  font: inherit;
  font-size: 0.86rem;
  font-weight: 700;
  cursor: pointer;
}

.plan-preview-ready-stores {
  display: grid;
  gap: 1.35rem;
}

.plan-preview-ready-stores .plan-preview-stores {
  --plan-store-section-radius: 0.9rem;
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  margin-top: 0;
  overflow: visible;
  border-radius: var(--plan-store-section-radius);
  background: var(--plan-surface);
  box-shadow: 0 0.35rem 1rem rgba(72, 54, 34, 0.06);
}

.plan-preview-ready-stores .plan-preview-stores::after {
  position: absolute;
  inset: 0;
  z-index: 29;
  pointer-events: none;
  content: "";
  border: 1px solid var(--plan-border);
  border-radius: inherit;
}

.plan-preview-section-header {
  position: relative;
  z-index: 18;
  padding: 0.85rem 1rem;
  margin: 0;
  border-radius: 0.9rem 0.9rem 0 0;
  border-bottom: 1px solid var(--plan-border);
  background: var(--plan-surface);
}

.plan-preview-section-header__title {
  display: inline-flex;
  align-items: center;
  min-width: 0;
}

.plan-preview-count-chip {
  display: inline-flex;
  align-items: center;
  min-height: 1.45rem;
  padding: 0.18rem 0.7rem;
  border-radius: 999px;
  color: var(--plan-green) !important;
  background: var(--plan-green-soft);
  font-weight: 800;
}

.plan-preview-count-chip--muted {
  color: var(--plan-muted) !important;
  background: #f4eee4;
}

.plan-preview-store {
  border: 0;
  border-radius: 0;
  box-shadow: none;
  scroll-margin-top: 8rem;
}

.plan-preview-store + .plan-preview-store {
  border-top: 1px solid var(--plan-border);
}

.plan-preview-ready-stores .plan-preview-stores > .plan-preview-store:last-child {
  border-bottom-right-radius: var(--plan-store-section-radius);
  border-bottom-left-radius: var(--plan-store-section-radius);
}

.plan-preview-ready-stores .plan-preview-stores > .plan-preview-store:last-child:not([open]) > .plan-preview-store__summary,
.plan-preview-ready-stores .plan-preview-stores > .plan-preview-store:last-child[open] > .plan-preview-selected-table:last-child,
.plan-preview-ready-stores .plan-preview-stores > .plan-preview-store:last-child[open] > .plan-preview-additional-matches:last-child,
.plan-preview-ready-stores .plan-preview-stores > .plan-preview-store:last-child[open] > .plan-preview-other-results:last-child,
.plan-preview-ready-stores .plan-preview-stores > .plan-preview-store:last-child[open] > .plan-preview-empty-store:last-child {
  border-bottom-right-radius: inherit;
  border-bottom-left-radius: inherit;
}

.plan-preview-ready-stores .plan-preview-stores > .plan-preview-store:last-child:not([open]) > .plan-preview-store__summary {
  border-bottom: 0;
  overflow: hidden;
}

.plan-preview-ready-stores .plan-preview-stores > .plan-preview-store:last-child[open] > .plan-preview-selected-table:last-child,
.plan-preview-ready-stores .plan-preview-stores > .plan-preview-store:last-child[open] > .plan-preview-selected-table:last-child > .plan-preview-selected-row:last-child,
.plan-preview-ready-stores .plan-preview-stores > .plan-preview-store:last-child[open] > .plan-preview-additional-matches:last-child,
.plan-preview-ready-stores .plan-preview-stores > .plan-preview-store:last-child[open] > .plan-preview-additional-matches:last-child > .plan-preview-other-results,
.plan-preview-ready-stores .plan-preview-stores > .plan-preview-store:last-child[open] > .plan-preview-additional-matches:last-child > .plan-preview-other-results > .plan-preview-other-card:last-child,
.plan-preview-ready-stores .plan-preview-stores > .plan-preview-store:last-child[open] > .plan-preview-other-results:last-child,
.plan-preview-ready-stores .plan-preview-stores > .plan-preview-store:last-child[open] > .plan-preview-other-results:last-child > .plan-preview-other-card:last-child {
  overflow: hidden;
  border-bottom-right-radius: inherit;
  border-bottom-left-radius: inherit;
}

.plan-preview-store__summary {
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr) auto auto;
  gap: 0.7rem;
  align-items: center;
  min-height: 4.15rem;
  padding: 0.75rem 1rem;
  top: 0.5rem;
  border-radius: 0;
  box-shadow: none;
}

.plan-preview-store__summary .plan-preview-avatar {
  width: 2.45rem;
  height: 2.45rem;
  border-radius: 0.42rem;
  font-size: 0.8rem;
}

.plan-preview-store__rank {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.35rem;
  height: 1.35rem;
  border: 2px solid #22a653;
  border-radius: 999px;
  color: var(--plan-green);
  background: var(--plan-surface);
  font-size: 0.82rem;
  font-weight: 850;
  line-height: 1;
}

.plan-preview-store__identity {
  display: grid;
  gap: 0.18rem;
}

.plan-preview-store__identity h3 {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 1rem;
}

.plan-preview-store__meta {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  min-width: 0;
  color: var(--plan-muted);
  font-size: 0.9rem;
}

.plan-preview-store__meta strong {
  color: var(--plan-text);
}

.plan-preview-store__meta > span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.plan-preview-store__excluded-label {
  color: #854d0e;
  font-weight: 800;
}

.plan-preview-store__meta > span::before {
  content: "•";
  margin-right: 0.45rem;
  color: #b6ab9a;
}

.plan-preview-store__cost-line {
  display: inline-flex;
  align-items: baseline;
  gap: 0.3rem;
  max-width: 100%;
  white-space: nowrap;
}

.plan-preview-store__meta > .plan-preview-store__cost-line::before,
.plan-preview-store__shipping::before {
  content: none;
  margin-right: 0;
}

.plan-preview-store__summary > .plan-preview-caret {
  justify-self: end;
}

.plan-preview-store[open] > .plan-preview-store__summary > .plan-preview-caret {
  transform: rotate(90deg);
}

.plan-preview-store__cart-form {
  justify-self: end;
}

.plan-preview-store__summary .plan-preview-primary-button {
  min-width: 8.6rem;
  min-height: 2.1rem;
  padding: 0.42rem 0.7rem;
  white-space: nowrap;
}

.plan-preview-store__summary .plan-preview-primary-button span {
  display: inline;
}

.plan-preview-store__summary .plan-preview-button-icon {
  display: inline-block;
}

.plan-preview-no-cart {
  display: inline-flex;
  align-items: center;
  gap: 0.32rem;
  justify-content: center;
  justify-self: end;
  min-width: 9.2rem;
  min-height: 2.1rem;
  padding: 0.42rem 0.7rem;
  border: 1px solid var(--plan-border);
  border-radius: 0.4rem;
  color: var(--plan-muted-strong);
  background: var(--plan-surface-soft);
  font-size: 0.82rem;
  font-weight: 800;
  white-space: nowrap;
  cursor: help;
}

.plan-preview-no-cart__icon {
  display: inline-grid;
  place-items: center;
  width: 1rem;
  height: 1rem;
  flex: 0 0 auto;
  color: var(--plan-muted-strong);
  font-size: 0.72rem;
  font-weight: 900;
  line-height: 1;
  border: 1px solid currentColor;
  border-radius: 999px;
  opacity: 0.78;
}

.plan-preview-no-cart:focus-visible {
  outline: 3px solid rgba(37, 99, 235, 0.22);
  outline-offset: 0.1rem;
}

.plan-preview-selected-table {
  border-top: 1px solid var(--plan-border);
  overflow-x: visible;
}

.plan-preview-selected-table__head {
  display: none;
}

.plan-preview-card-row {
  --plan-card-row-y: 0.7rem;
  --plan-card-row-x: 1rem;
  --plan-card-image-width: 7.1rem;
  --plan-card-image-height: 6.6rem;
  grid-template-columns: minmax(0, 1fr) auto;
  min-width: 0;
  align-items: stretch;
}

.plan-preview-card-row__control {
  padding-bottom: var(--plan-card-row-y);
}

.plan-preview-card-row__media {
  border-radius: 0.28rem 0.28rem 0 0;
}

.plan-preview-card-row__media-crop {
  align-self: end;
}

.plan-preview-card-row__media-crop::after {
  content: none;
}

.plan-preview-card-row__image {
  height: 100%;
}

.plan-preview-card-row__details {
  align-content: center;
}

.plan-preview-card-row__price {
  justify-self: end;
  text-align: right;
}

.plan-preview-selected-price__line {
  display: inline-flex;
  align-items: baseline;
  gap: 0.8rem;
}

.plan-preview-selected-price__line span {
  color: var(--plan-muted);
  font-weight: 700;
}

.plan-preview-linked-name {
  display: block !important;
  max-width: 100%;
}

.plan-preview-external-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1rem;
  height: 1rem;
  flex: 0 0 auto;
  margin-left: 0.28rem;
  color: var(--plan-muted);
  vertical-align: -0.12em;
  text-decoration: none;
}

.plan-preview-external-link:hover,
.plan-preview-external-link:focus-visible {
  color: var(--plan-blue);
}

.plan-preview-external-link svg {
  width: 0.9rem;
  height: 0.9rem;
}

.plan-preview-page .search-shell__header {
  margin-bottom: 1rem;
}

.plan-preview-page .search-shell__title {
  color: var(--plan-text);
  font-size: clamp(1.8rem, 4vw, 2.45rem);
  letter-spacing: 0;
}

.plan-preview-page .search-shell__home-link:hover .search-shell__title {
  color: #2563eb;
}

.plan-preview-page .search-shell__subtitle {
  color: var(--plan-muted);
  font-size: 1rem;
}

.plan-preview-page .search-shell__beta-badge {
  color: #1d4ed8;
  border-color: #bfdbfe;
  background: #eff6ff;
}

.plan-preview-page .results-modal {
  color: var(--plan-text);
}

.plan-preview-page .results-modal::backdrop {
  background: rgba(44, 34, 24, 0.38);
  backdrop-filter: blur(4px);
}

.plan-preview-page .results-modal__surface {
  background: var(--plan-surface);
  border-color: var(--plan-border);
  box-shadow: 0 1.25rem 3rem rgba(72, 54, 34, 0.18);
}

.plan-preview-page .results-modal__header {
  border-bottom-color: var(--plan-border);
  background: var(--plan-surface-soft);
}

.plan-preview-page .results-modal__title,
.plan-preview-page .results-modal__store-summary {
  color: var(--plan-text);
}

.plan-preview-page .results-modal__subtitle,
.plan-preview-page .results-modal__loading,
.plan-preview-page .results-modal__store-summary span:last-child {
  color: var(--plan-muted);
}

.plan-preview-page .results-modal__store-group {
  border-color: var(--plan-border);
  background: var(--plan-surface-soft);
}

.plan-preview-page .searched-cards-modal,
.plan-preview-page .card-image-modal {
  color: var(--plan-text);
}

.plan-preview-page .searched-cards-modal::backdrop,
.plan-preview-page .card-image-modal::backdrop {
  background: rgba(44, 34, 24, 0.38);
  backdrop-filter: blur(4px);
}

.plan-preview-page .searched-cards-modal__surface,
.plan-preview-page .card-image-modal__surface {
  background: var(--plan-surface);
  border-color: var(--plan-border);
  box-shadow: 0 1.25rem 3rem rgba(72, 54, 34, 0.18);
}

.plan-preview-page .searched-cards-modal__header,
.plan-preview-page .searched-cards-modal__footer,
.plan-preview-page .card-image-modal__header {
  background: var(--plan-surface-soft);
  border-color: var(--plan-border);
}

.plan-preview-page .searched-cards-modal__title,
.plan-preview-page .card-image-modal__title {
  color: var(--plan-text);
}

.plan-preview-page .searched-cards-modal__meta {
  color: var(--plan-muted);
}

.plan-preview-page .searched-cards-modal__close,
.plan-preview-page .searched-cards-modal__new-search,
.plan-preview-page .card-image-modal__close {
  color: var(--plan-blue);
}

.plan-preview-page .results-modal__close,
.plan-preview-page .searched-cards-modal__close,
.plan-preview-page .card-image-modal__close {
  color: var(--plan-blue);
  background: var(--plan-blue-soft);
  border-color: #bfdbfe;
}

.plan-preview-page .results-modal__close:hover,
.plan-preview-page .results-modal__close:focus-visible,
.plan-preview-page .searched-cards-modal__close:hover,
.plan-preview-page .searched-cards-modal__close:focus-visible,
.plan-preview-page .card-image-modal__close:hover,
.plan-preview-page .card-image-modal__close:focus-visible {
  color: #1d4ed8;
  background: #dbeafe;
  border-color: #93c5fd;
}

.plan-preview-page .searched-cards-modal__filter-row {
  color: var(--plan-muted-strong);
  background: var(--plan-surface-soft);
  border-color: var(--plan-border);
}

.plan-preview-page .searched-cards-modal__new-search {
  background: var(--plan-blue-soft);
  border-color: #bfdbfe;
}

.plan-preview-page .card-image-modal__body {
  background: var(--plan-surface);
}

.plan-preview-page .card-image-modal__image {
  box-shadow: 0 1rem 2.4rem rgba(72, 54, 34, 0.16);
}

.floating-tooltip--plan-preview {
  color: #1f2430;
  background: rgba(255, 254, 250, 0.98);
  border-color: #ded4c5;
  box-shadow: 0 0.75rem 1.5rem rgba(72, 54, 34, 0.14);
}

.plan-preview-page .results-shell__stale-callout {
  color: #854d0e;
  background: #fffbeb;
  border-color: #fde68a;
}

.plan-preview-page {
  --plan-preview-summary-sticky-gap: 0rem;
  --plan-preview-summary-sticky-height: 3.45rem;
}

.plan-preview-page .plan-preview-summary-bar {
  max-height: 0;
  min-height: 0;
  margin-top: -1rem;
  padding-top: 0;
  padding-bottom: 0;
  border-width: 0;
  opacity: 0;
  overflow: hidden;
  pointer-events: none;
  transform: translateY(-0.35rem);
  transition: opacity 0.16s ease, transform 0.16s ease, max-height 0.16s ease, padding 0.16s ease, border-width 0.16s ease, margin 0.16s ease;
}

.plan-preview-page.plan-preview-page--summary-visible .plan-preview-summary-bar {
  position: fixed;
  top: 0.5rem;
  left: 50%;
  z-index: 30;
  width: min(64rem, calc(100vw - 2rem));
  max-height: 5rem;
  min-height: 3.45rem;
  margin-top: 0;
  padding-top: 0.85rem;
  padding-bottom: 0.85rem;
  border-width: 1px;
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%);
  border-bottom-right-radius: 0;
  border-bottom-left-radius: 0;
  box-shadow: none;
}

.plan-preview-page .plan-preview-store__summary {
  top: calc(0.5rem + var(--plan-preview-summary-sticky-height, 3.45rem) + var(--plan-preview-summary-sticky-gap, 0rem) - 1px);
  z-index: 19;
  border-bottom: 1px solid var(--plan-border);
  background: var(--plan-surface);
}

.plan-preview-page .plan-preview-avatar {
  background: #3d3a34;
}

.plan-preview-page .plan-preview-section-header h2,
.plan-preview-page .plan-preview-store__identity h3 {
  color: var(--plan-text);
}

.plan-preview-page .plan-preview-no-cart {
  color: var(--plan-muted);
}

.plan-preview-page:not(.plan-preview-page--summary-visible) .plan-preview-store__summary {
  top: 0.5rem;
}

.plan-preview-page .plan-preview-selected-table {
  background: var(--plan-surface-warm);
}

.plan-preview-page .plan-preview-selected-row {
  background: transparent;
  color: var(--plan-muted-strong);
}

.plan-preview-page .plan-preview-selected-row + .plan-preview-selected-row {
  border-top-color: var(--plan-border);
}

.plan-preview-page .plan-preview-selected-card strong,
.plan-preview-page .plan-preview-selected-price strong {
  color: var(--plan-text);
  font-weight: 650;
}

.plan-preview-page .plan-preview-selected-card small,
.plan-preview-page .plan-preview-selected-meta,
.plan-preview-page .plan-preview-selected-price small {
  color: var(--plan-muted);
  font-weight: 500;
}

.plan-preview-page .plan-preview-additional-matches {
  background: #f7f0e6;
}

.plan-preview-page .plan-preview-additional-matches > summary {
  color: var(--plan-muted-strong);
}

.plan-preview-page .plan-preview-other-results {
  background: var(--plan-surface-soft);
}

.plan-preview-page .plan-preview-other-card {
  color: var(--plan-muted-strong);
}

.plan-preview-page .plan-preview-other-card strong {
  color: var(--plan-text);
  font-weight: 650;
}

.plan-preview-page .plan-preview-checkbox-button {
  width: 1rem;
  height: 1rem;
  border-radius: 0.2rem;
  border-color: #94a3b8;
  color: transparent;
  background: #ffffff;
  font-size: 0.76rem;
  box-shadow: none;
}

.plan-preview-page .plan-preview-checkbox-button--checked {
  color: #ffffff;
  border-color: #2563eb;
  background: #2563eb;
}

.plan-preview-page .plan-preview-checkbox-button--checked::after {
  width: 0.28rem;
  height: 0.5rem;
  border-right-width: 0.11rem;
  border-bottom-width: 0.11rem;
}

.plan-preview-selected-row--updating {
  opacity: 0.72;
}

@media (min-width: 821px) {
  .plan-preview-plan-cards {
    grid-auto-columns: minmax(18rem, 25rem);
  }
}

@media (max-width: 820px) {
  .plan-preview-shell {
    width: min(100% - 1rem, 96rem);
    padding-top: 0.75rem;
  }

  .plan-preview-heading {
    margin: 0.75rem 0 1rem;
  }

  .plan-preview-heading h1 {
    font-size: 1.45rem;
  }

  .plan-preview-search-summary {
    margin-top: -0.45rem;
    padding: 0.7rem;
  }

  .plan-preview-search-summary__main {
    align-items: flex-start;
  }

  .plan-preview-search-summary__main > div {
    display: grid;
    gap: 0.2rem;
  }

  .plan-preview-search-summary__button {
    padding-top: 0.05rem;
  }

  .plan-preview-loading-overview {
    padding: 0.7rem;
  }

  .plan-preview-loading-overview__top {
    grid-template-columns: 1fr;
    gap: 0.55rem;
  }

  .plan-preview-loading-overview__status {
    text-align: left;
  }

  .plan-preview-loading-overview__status h2 {
    font-size: 1rem;
  }

  .plan-preview-failed-stores {
    flex-direction: column;
    align-items: stretch;
    padding: 0.75rem;
  }

  .plan-preview-failed-stores__button {
    width: 100%;
  }

  .plan-preview-loading-stores .plan-preview-store-row {
    grid-template-columns: 1fr;
    gap: 0.55rem;
    padding: 0.75rem;
  }

  .plan-preview-store-row__identity {
    align-items: flex-start;
    padding-right: 0;
  }

  .plan-preview-store-row__skip-form {
    position: static;
    margin-left: auto;
  }

  .plan-preview-plan-cards {
    grid-auto-columns: minmax(17.5rem, 74vw);
    -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 3rem), transparent);
    mask-image: linear-gradient(to right, #000 calc(100% - 3rem), transparent);
  }

  .plan-preview-plan-card {
    min-height: 6.4rem;
  }

  .plan-preview-ready-stores .plan-preview-stores {
    --plan-store-section-radius: 0.75rem;
  }

  .plan-preview-section-header {
    padding: 0.75rem;
    border-radius: 0.75rem 0.75rem 0 0;
  }

  .plan-preview-store__summary {
    gap: 0.5rem;
    padding: 0.7rem 0.75rem;
  }

  .plan-preview-store:not(.plan-preview-store--other) > .plan-preview-store__summary {
    grid-template-columns: auto auto minmax(0, 1fr) minmax(8.8rem, auto);
    grid-template-areas: "avatar caret identity action";
  }

  .plan-preview-store--other .plan-preview-store__summary {
    grid-template-columns: auto minmax(0, 1fr) auto;
    grid-template-areas: "avatar identity caret";
  }

  .plan-preview-store__rank,
  .plan-preview-store--other .plan-preview-store__cart-form,
  .plan-preview-store--other .plan-preview-no-cart {
    display: none;
  }

  .plan-preview-store__summary .plan-preview-avatar {
    display: inline-flex;
    grid-area: avatar;
    width: 2.3rem;
    height: 2.3rem;
  }

  .plan-preview-store__identity {
    grid-area: identity;
    min-width: 0;
  }

  .plan-preview-store__cart-form,
  .plan-preview-no-cart {
    grid-area: action;
  }

  .plan-preview-store__summary > .plan-preview-caret {
    grid-area: caret;
    justify-self: center;
  }

  .plan-preview-store--other .plan-preview-store__summary > .plan-preview-caret {
    justify-self: end;
  }

  .plan-preview-store__meta {
    font-size: 0.86rem;
  }

  .plan-preview-store__representative {
    display: none;
  }

  .plan-preview-store__summary .plan-preview-primary-button,
  .plan-preview-no-cart {
    min-width: 8.8rem;
    min-height: 2rem;
    padding: 0.38rem 0.5rem;
    font-size: 0.74rem;
  }

  .plan-preview-summary-bar {
    gap: 0.45rem;
    padding-inline: 0.75rem;
  }

  .plan-preview-page.plan-preview-page--summary-visible .plan-preview-summary-bar {
    width: min(64rem, calc(100vw - 3rem));
  }

  .plan-preview-summary-bar__label {
    gap: 0.25rem;
    font-size: 0.88rem;
    line-height: 1.25;
  }

  .plan-preview-summary-bar__store-select select {
    max-width: 7.6rem;
    min-height: 2rem;
    padding-right: 1.45rem;
    font-size: 0.82rem;
  }

  .plan-preview-card-row {
    --plan-card-row-y: 0.8rem;
    --plan-card-row-x: 0.75rem;
    --plan-card-image-width: 4.25rem;
    --plan-card-image-height: 5.95rem;
    grid-template-columns: 1.35rem 4.25rem minmax(0, 1fr);
    grid-template-areas:
      "control image card"
      ". image price";
    gap: 0.35rem 0.65rem;
    padding: var(--plan-card-row-y) var(--plan-card-row-x) 0;
    align-items: start;
  }

  .plan-preview-card-row__main {
    display: contents;
  }

  .plan-preview-card-row__main--reserve-control {
    padding-left: 0;
  }

  .plan-preview-card-row__control {
    grid-area: control;
    margin-top: 0.15rem;
    padding-bottom: var(--plan-card-row-y);
  }

  .plan-preview-card-row__details {
    grid-area: card;
    min-width: 0;
    padding-bottom: 0;
  }

  .plan-preview-card-row__media {
    grid-area: image;
    align-self: start;
    border-radius: 0.35rem;
  }

  .plan-preview-card-row__image {
    object-fit: contain;
  }

  .plan-preview-other-results {
    padding-inline: 0;
  }

  .plan-preview-other-results > .plan-preview-pagination-note:last-child {
    margin-inline: 0;
  }

  .plan-preview-card-row__price {
    grid-area: price;
    justify-self: start;
    text-align: left;
    padding-bottom: var(--plan-card-row-y);
  }

  .plan-preview-selected-price {
    grid-area: price;
    margin-left: 0;
    justify-self: start;
    text-align: left;
  }

  .plan-preview-selected-price__line {
    gap: 0.65rem;
  }
}
