.store-shell {
  min-height: 100dvh;
  background: var(--bg);
}

.store-frame {
  width: min(100% - clamp(32px, 7vw, 88px), 1180px);
  margin-inline: auto;
}

.store-header {
  position: sticky;
  top: 0;
  z-index: 5;
  background: var(--panel);
  border-bottom: 1px solid var(--line);
}

.store-header-inner {
  min-height: 74px;
  display: grid;
  grid-template-columns: minmax(0,1fr) auto minmax(0,1fr);
  align-items: center;
  gap: 6px 16px;
}

.store-header .store-brand {
  min-width: 0;
  min-height: 50px;
  padding: 4px;
  border-radius: var(--menu-radius);
  justify-self: start;
  white-space: normal;
}

.store-header .store-brand:hover { background:var(--panel-soft); }
.store-header .store-brand strong { line-height:1.2; overflow-wrap:anywhere; letter-spacing:-.025em; }
.store-nav { display:flex; align-items:center; }
.store-nav-link { display:inline-flex; align-items:center; justify-content:center; gap:8px; min-height:43px; padding:8px 14px; color:var(--accent-strong); background:transparent; border:1px solid transparent; border-radius:var(--menu-radius); font-size:.875rem; font-weight:650; }
.store-nav-link:hover { background:var(--panel-soft); }
.store-nav-link[aria-current="page"] { background:var(--accent-tint); border-color:var(--accent-line); }
.store-header-actions { justify-self:end; }
.store-erp {
  flex: 0 0 auto;
  min-height: 42px;
  border-radius: var(--menu-radius);
  white-space: nowrap;
}

.store-main {
  padding-block: clamp(20px, 4vw, 44px) max(42px, env(safe-area-inset-bottom));
}

.store-main :is(h1, h2, h3) {
  overflow-wrap: anywhere;
}

.store-main #store-heading:focus {
  outline: none;
}

.store-intro {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: clamp(18px, 4vw, 42px);
  padding: clamp(23px, 5.5vw, 60px);
  color: var(--accent-strong);
  background: linear-gradient(116deg, var(--panel-soft), var(--accent-tint));
  border: 1px solid var(--accent-line);
  border-radius: 18px;
}

.store-intro h1 {
  font-size: clamp(2rem, 5.1vw, 3.6rem);
  line-height: 1.13;
  letter-spacing: -.05em;
  margin-top: 6px;
}

.store-clinic {
  font-size: .94rem;
  font-weight: 630;
}

.store-site {
  min-width: min(100%, 190px);
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 13px 16px;
  border: 1px solid var(--accent-line);
  border-radius: 12px;
  background: var(--panel);
}

.store-site > div {
  display: grid;
  gap: 2px;
  font-size: .875rem;
  line-height: 1.35;
}

.store-site strong {
  font-weight: 660;
}

.store-site span {
  color: var(--muted);
}

.store-catalog {
  margin-top: clamp(23px, 3.8vw, 37px);
}

.store-catalog-bar {
  padding: 9px;
  margin-bottom: 15px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
}

.store-search-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.store-search,.store-specialties {
  position: relative;
  display: flex;
  align-items: center;
  min-width: 0;
}

.store-search > svg,.store-specialties > svg {
  position: absolute;
  left: 12px;
  color: var(--muted);
  pointer-events: none;
}

.store-search { flex:1 1 auto; }
.store-search input,.store-specialties select {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  padding-inline-start: 36px;
  border-radius: var(--menu-radius);
  background-color: var(--panel-soft);
}
.store-specialties { flex:0 1 260px; }

.store-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.store-card {
  display: flex;
  flex-direction: column;
  gap: 13px;
  padding: clamp(15px, 2.1vw, 23px);
  border-radius: 14px;
}

.store-card-top {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 11px;
}

.store-card-icon {
  display: grid;
  place-items: center;
  width: 43px;
  height: 43px;
  flex: 0 0 auto;
  border-radius: 11px;
  background: var(--accent-tint);
  color: var(--accent-strong);
}

.store-category {
  color: var(--muted);
  font-size: .8125rem;
  line-height: 1.25;
  margin-bottom: 3px;
}

.store-card h3 {
  font-size: 1rem;
  font-weight: 670;
  letter-spacing: -.012em;
}

.store-service-description {
  font-size: .9rem;
  color: var(--muted);
  overflow-wrap: anywhere;
}

.store-card-footer {
  margin-top: auto;
  border-top: 1px solid var(--line);
  padding-top: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.store-card-rate {
  display: grid;
  gap: 3px;
  line-height: 1.2;
}

.store-card-rate strong {
  font-size: clamp(.95rem, 1.6vw, 1.19rem);
  font-weight: 670;
  letter-spacing: -.03em;
  font-variant-numeric: tabular-nums;
}

.store-card-rate > span {
  font-size: .8125rem;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}

.store-card-footer button {
  flex: 0 0 auto;
  color: var(--accent-strong);
  border-color: var(--accent-line);
}

.store-card-footer button:hover {
  background: var(--accent-tint);
}

.store-catalog-status {
  padding: 30px 0;
  text-align: center;
  color: var(--muted);
}

.store-book {
  max-width: 960px;
  margin-inline: auto;
}

.store-back {
  margin-bottom: 7px;
  padding-inline-end: 8px;
}

.store-book h1 {
  font-size: clamp(1.6rem, 3.1vw, 2.3rem);
  letter-spacing: -.04em;
}

.store-stepper {
  list-style: none;
  display: flex;
  gap: 7px;
  padding: 0;
  margin: 15px 0;
}

.store-stepper li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 10px;
  color: var(--muted);
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-size: .875rem;
  font-weight: 550;
}

.store-stepper [aria-current="step"] {
  background: var(--accent-tint);
  color: var(--accent-strong);
  border-color: var(--accent-line);
  font-weight: 650;
}

.store-book-grid {
  display: grid;
  align-items: start;
  gap: 17px;
  grid-template-columns: minmax(0, 1.85fr) minmax(245px, 1fr);
}

.store-book-panel {
  padding: clamp(17px, 3vw, 26px);
}

.store-schedule,
.store-checkout {
  display: grid;
  gap: 18px;
}

.store-schedule h2,
.store-checkout h2 {
  font-size: 1.14rem;
  letter-spacing: -.019em;
}

.store-date-fields {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 145px), 1fr));
  gap: 12px;
}

.store-date-fields label,
.store-date-fields input {
  min-width: 0;
}

.store-date-fields input {
  min-inline-size: 0;
  inline-size: 100%;
}

.store-availability {
  display: grid;
  gap: 10px;
}

.store-availability h3,
.store-payment legend {
  font-size: .875rem;
  font-weight: 650;
}

.store-times {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 74px), 1fr));
  gap: 7px;
}

.store-time {
  min-height: 43px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  font-size: .875rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.store-time:hover {
  background: var(--panel-soft);
  border-color: var(--accent-line);
}

.store-time[aria-pressed="true"] {
  border-color: var(--accent);
  color: var(--accent-strong);
  background: var(--accent-tint);
  box-shadow: inset 0 0 0 1px var(--accent);
}

.store-inline-status,
.store-slot-empty p {
  font-size: .875rem;
  color: var(--muted);
}

.store-slot-empty {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 9px 10px;
  border-radius: var(--radius);
  background: var(--panel-soft);
}

.store-slot-empty p[role="alert"] {
  color: var(--red);
}

.store-form-actions {
  display: flex;
  justify-content: end;
  gap: 8px;
  padding-top: 13px;
  border-top: 1px solid var(--line);
}

.store-form-actions > .primary {
  min-width: 132px;
  min-height: 46px;
}

.store-form-actions button:disabled {
  cursor: default;
}

.store-summary {
  position: sticky;
  top: 86px;
  padding: clamp(16px, 2.4vw, 22px);
}

.store-summary .store-card-icon {
  margin-bottom: 10px;
}

.store-summary h2 {
  line-height: 1.35;
  letter-spacing: -.019em;
  font-weight: 680;
  font-size: 1.125rem;
}

.store-summary ul,
.store-success ul {
  list-style: none;
  display: grid;
  gap: 9px;
  padding: 0;
  margin: 15px 0;
}

.store-summary li,
.store-success li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .875rem;
}

.store-summary li svg,
.store-success li svg {
  color: var(--accent);
}

.store-summary li span::first-letter,
.store-success li span::first-letter {
  text-transform: uppercase;
}

.store-summary-price {
  border-top: 1px solid var(--line);
  padding-top: 13px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: .9rem;
}

.store-summary-price strong {
  color: var(--accent-strong);
  font-size: 1.24rem;
  font-weight: 710;
  letter-spacing: -.03em;
  font-variant-numeric: tabular-nums;
}

.store-deposit-summary {
  grid-column: 1 / -1;
  margin: 0;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  font-size: .875rem;
}

.store-deposit-summary div { display: flex; justify-content: space-between; gap: 10px; }
.store-deposit-summary div + div { margin-top: 6px; }
.store-deposit-summary dt { color: var(--muted); }
.store-deposit-summary dd { margin: 0; font-weight: 650; white-space: nowrap; }
.store-payment p { margin: 0; }

.store-section-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.store-email {
  grid-column: 1 / -1;
}

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

.store-payment {
  min-width: 0;
  display: grid;
  gap: 7px;
  margin: 0;
  padding: 0;
  border: 0;
}

.store-payment legend {
  margin-bottom: 6px;
}

.store-payment label {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 45px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--text);
  font-size: .875rem;
  cursor: pointer;
}

.store-payment label:has(:checked) {
  border-color: var(--accent-line);
  background: var(--accent-tint);
  color: var(--accent-strong);
  font-weight: 600;
}

.store-payment input {
  flex-shrink: 0;
  width: 17px;
  height: 17px;
  margin: 0;
  accent-color: var(--accent);
}

.store-checkout .form-error {
  margin: 0;
}

.store-success {
  width: min(100%, 480px);
  padding: clamp(20px, 5vw, 36px);
  margin: clamp(12px, 4vw, 42px) auto 0;
}

.store-success-icon {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: var(--success-bg);
  color: var(--positive);
  margin-bottom: 14px;
}

.store-success h2 {
  margin-top: 5px;
  font-size: 1.05rem;
  font-weight: 610;
}

.store-success ul {
  border-top: 1px solid var(--line);
  margin-top: 18px;
  padding-top: 17px;
}

.store-reference {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
  color: var(--accent-strong);
  background: var(--accent-tint);
  border-radius: var(--radius);
  font-size: .9rem;
  padding: 10px 12px;
}

.store-reference strong {
  font-variant-numeric: tabular-nums;
  letter-spacing: .03em;
}

@media (max-width: 935px) {
  .store-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 710px) {
  .store-frame {
    width: calc(100% - 32px);
  }

  .store-grid,
  .store-book-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .store-book-grid > [data-store-summary] {
    grid-row: 1;
  }

  .store-summary {
    display: grid;
    align-items: center;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 9px;
  }

  .store-summary .store-card-icon {
    margin: 0;
  }

  .store-summary ul {
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: wrap;
    gap: 6px 12px;
    margin: 0;
    padding-top: 8px;
    border-top: 1px solid var(--line);
  }

  .store-summary-price {
    grid-column: 3;
    grid-row: 1;
    flex-direction: column;
    align-items: end;
    gap: 2px;
    border: 0;
    padding: 0;
    line-height: 1.2;
  }

  .store-summary-price span {
    color: var(--muted);
    font-size: .8125rem;
  }
}

@media (max-width: 540px) {
  .store-header-inner {
    grid-template-columns:minmax(0,1fr) auto;
    padding-block:7px 6px;
  }

  .store-nav {
    grid-column:1/-1;
    grid-row:2;
    padding-top:6px;
    border-top:1px solid var(--line);
  }

  .store-nav-link {
    width:100%;
    justify-content:flex-start;
    min-height:40px;
  }

  .store-intro,
  .store-catalog-bar {
    flex-direction: column;
    align-items: stretch;
  }

  .store-intro {
    gap: 13px;
  }

  .store-site {
    width: fit-content;
    min-width: 0;
    padding: 9px 12px;
  }

  .store-search-controls {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
  }

  .store-search input,
  .store-search-controls select {
    width: 100%;
  }

  .store-search-controls input,
  .store-search-controls select,
  .store-book input,
  .store-book select {
    font-size: 16px;
  }

  .store-times {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .store-time {
    min-height: 45px;
  }
}

@media (max-width: 370px) {
  .store-frame {
    width: calc(100% - 24px);
  }

  .store-header .store-brand strong {
    font-size: 1rem;
  }

  .store-erp {
    gap: 5px;
    padding-inline: 8px;
  }

  .store-date-fields,
  .store-contacts {
    grid-template-columns: minmax(0, 1fr);
  }

  .store-summary h2 {
    font-size: 1rem;
  }

  .store-summary-price strong {
    font-size: 1.05rem;
  }

  .store-times {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .store-form-actions {
    flex-wrap: wrap;
  }
}

.store-estimate-main { width: min(100%, 740px); margin-inline: auto; display: grid; gap: 16px; }
.store-estimate-summary, .store-estimate-payment { padding: clamp(18px, 4vw, 32px); display: grid; gap: 14px; }
.store-estimate-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.store-estimate-heading h1 { margin: 2px 0 0; font-size: clamp(1.35rem, 5vw, 2rem); }
.store-estimate-heading p { margin: 0; font-size: .875rem; }
.store-estimate-items, .store-estimate-amounts { margin: 0; padding: 0; }
.store-estimate-items { list-style: none; border-block: 1px solid var(--line); }
.store-estimate-items li, .store-estimate-amounts > div { display: flex; justify-content: space-between; gap: 14px; padding: 10px 0; }
.store-estimate-items li + li { border-top: 1px solid var(--line); }
.store-estimate-items li span { overflow-wrap: anywhere; }
.store-estimate-items li strong, .store-estimate-amounts dd { white-space: nowrap; font-variant-numeric: tabular-nums; }
.store-estimate-items small { color: var(--muted); white-space: nowrap; }
.store-estimate-amounts dd { margin: 0; font-weight: 650; }
.store-estimate-amounts .store-estimate-due { background: var(--accent-tint); color: var(--accent-strong); border-radius: 8px; padding-inline: 10px; }
.store-estimate-payment > p, .store-estimate-payment h2 { margin: 0; }
.store-estimate-payment form { display: grid; justify-items: start; gap: 12px; }
.store-estimate-payment .field { width: min(100%, 280px); }
.store-estimate-shortcuts { display: flex; flex-wrap: wrap; gap: 8px; }
.store-estimate-payment input { font-size: 1rem; min-height: 44px; }
.store-estimate-receipt { display: flex; align-items: flex-start; gap: 10px; color: var(--positive); }
.store-estimate-receipt p { margin: 3px 0 0; }
@media (max-width: 520px) {
  .store-estimate-heading { flex-wrap: wrap; }
  .store-estimate-payment .primary { width: 100%; min-height: 46px; }
}

.dental-site {
  background: var(--dental-surface);
}
.dental-landing {
  display: grid;
  align-items: center;
  min-height: clamp(165px, 26vw, 320px);
  padding: clamp(22px, 6vw, 72px);
  margin-bottom: clamp(16px, 3vw, 28px);
  color: var(--dental-ink);
  background: var(--dental-surface);
  border: 1px solid color-mix(in srgb, var(--dental-accent) 34%, var(--dental-surface));
  border-radius: 16px;
}
.dental-landing-content {
  display: grid;
  justify-items: start;
  gap: clamp(12px, 2vw, 20px);
}
.dental-landing h1 {
  margin: 0;
  max-width: 20ch;
  overflow-wrap: anywhere;
  font-size: clamp(1.9rem, 4.7vw, 3.65rem);
  font-weight: 720;
  letter-spacing: -.038em;
  line-height: 1.12;
}
.dental-landing p {
  max-width: 58ch;
  margin: 0;
  color: var(--dental-ink);
  line-height: 1.6;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.dental-booking-button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 44px;
  padding: 9px 16px;
  color: var(--dental-on-accent);
  background: var(--dental-accent);
  border: 1px solid color-mix(in srgb, var(--dental-ink) 25%, var(--dental-accent));
  border-radius: 8px;
  font-weight: 650;
}
.dental-booking-button:focus-visible { outline-color: var(--dental-ink); }
.dental-booking-button:hover { box-shadow: 0 1px 6px color-mix(in srgb, var(--dental-ink) 22%, transparent); }
.dental-site[data-dental-style="editorial"] .dental-landing {
  border-inline-start: 5px solid var(--dental-accent);
  border-radius: 8px 16px 16px 8px;
}
.dental-site[data-dental-style="editorial"] .dental-landing h1 {
  max-width: 16ch;
  line-height: 1.16;
  font-weight: 630;
}
.dental-site[data-dental-style="soft"] .dental-landing-content {
  justify-items: center;
  text-align: center;
}
.dental-site[data-dental-style="soft"] .dental-landing {
  justify-items: center;
  border-radius: 26px;
}
.dental-site[data-dental-style="soft"] .dental-booking-button { border-radius: 99px; }


.dental-site .store-main .primary {
  color: var(--dental-on-accent);
  background: var(--dental-accent);
  border-color: var(--dental-accent);
}
.dental-site .store-main .primary:hover:enabled {
  box-shadow: 0 1px 6px color-mix(in srgb, var(--dental-ink) 22%, transparent);
}
