:root {
    --commerce-navy: #071f3d;
    --commerce-ink: #10233e;
    --commerce-muted: #66758a;
    --commerce-line: #e6eaf0;
    --commerce-surface: #ffffff;
    --commerce-background: #f7f8fb;
    --commerce-radius-sm: 12px;
    --commerce-radius: 18px;
    --commerce-radius-lg: 24px;
    --commerce-shadow: 0 10px 28px rgba(15, 35, 64, .08);
    --restaurant: #ff5a36;
    --restaurant-deep: #ee4428;
    --services: #18aaa5;
    --services-deep: #078d89;
    --safe-bottom: env(safe-area-inset-bottom, 0px);
}

/* Services closure: public profile media, trusted slots, gated contact and receipt. */
.service-provider-avatar:is(img) {
  object-fit: cover;
  display: block;
}

.service-portfolio {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .65rem;
}

.service-portfolio img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 1rem;
  background: var(--commerce-surface-muted, #f2f6f6);
}

.service-review-list,
.service-dispute-list {
  display: grid;
  gap: .75rem;
}

.service-review-list article,
.service-dispute-list article {
  padding: 1rem;
}

.service-review-list header,
.service-dispute-list header,
.service-contact-card,
.service-receipt > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
}

.service-review-list time,
.service-dispute-list small,
.service-contact-card p,
.service-payment-state,
.service-receipt > p {
  color: var(--commerce-text-muted, #667085);
}

.service-review-list article > div {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
}

.service-review-list article > div span {
  border-radius: 999px;
  background: color-mix(in srgb, var(--service-accent, #18aea9) 12%, white);
  color: var(--service-accent, #147f7b);
  padding: .25rem .55rem;
  font-size: .78rem;
}

.service-contact-policy {
  display: flex;
  align-items: center;
  gap: .55rem;
  color: var(--commerce-text-muted, #667085);
}

.service-contact-policy svg,
.service-contact-card svg {
  width: 1.25rem;
  height: 1.25rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

.service-contact-card.is-locked {
  background: var(--commerce-surface-muted, #f7f9fa);
}

.service-contact-card h2,
.service-contact-card p {
  margin: 0;
}

.service-receipt summary {
  cursor: pointer;
  font-weight: 800;
  min-height: 44px;
  display: flex;
  align-items: center;
}

.service-receipt > div {
  padding-block: .45rem;
  border-bottom: 1px solid var(--commerce-border, #e6eaec);
}

.service-receipt-total {
  font-size: 1.05rem;
  border-bottom: 0 !important;
}

.service-slot-list {
  display: grid;
  gap: .55rem;
}

@media (min-width: 720px) {
  .service-portfolio { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

* { box-sizing: border-box; }

.commerce-app {
    --commerce-accent: var(--restaurant);
    --commerce-accent-deep: var(--restaurant-deep);
    min-height: 100dvh;
    color: var(--commerce-ink);
    background: var(--commerce-background);
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    font-family: Manrope, Cairo, system-ui, sans-serif;
}

.services-app {
    --commerce-accent: var(--services);
    --commerce-accent-deep: var(--services-deep);
}

.commerce-app svg {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.commerce-header {
    position: relative;
    z-index: 20;
    color: white;
    padding: max(12px, env(safe-area-inset-top)) 16px 18px;
    border-radius: 0 0 24px 24px;
    background:
        radial-gradient(circle at 90% -20%, color-mix(in srgb, var(--commerce-accent) 28%, transparent), transparent 45%),
        var(--commerce-navy);
    box-shadow: 0 8px 20px rgba(7, 31, 61, .13);
}

.commerce-header-row {
    min-height: 48px;
    display: grid;
    grid-template-columns: 48px 1fr 48px;
    align-items: center;
    gap: 8px;
}

.commerce-icon-button {
    width: 44px;
    height: 44px;
    display: inline-grid;
    place-items: center;
    color: inherit;
    border: 0;
    border-radius: 14px;
    background: rgba(255, 255, 255, .1);
    text-decoration: none;
    cursor: pointer;
    position: relative;
}

.commerce-icon-button:hover,
.commerce-icon-button:focus-visible {
    color: white;
    background: rgba(255, 255, 255, .18);
    outline: 3px solid rgba(255, 255, 255, .3);
    outline-offset: 2px;
}

.commerce-brand {
    justify-self: center;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 9px;
    color: white;
    text-decoration: none;
}

.commerce-brand img {
    width: 92px;
    height: 31px;
    object-fit: contain;
}

.commerce-brand span {
    padding-inline-start: 9px;
    border-inline-start: 1px solid rgba(255,255,255,.35);
    font-size: .82rem;
    font-weight: 700;
    letter-spacing: .01em;
}

.commerce-count {
    position: absolute;
    inset-block-start: -4px;
    inset-inline-end: -4px;
    min-width: 20px;
    height: 20px;
    padding: 0 5px;
    display: grid;
    place-items: center;
    color: white;
    background: var(--commerce-accent);
    border: 2px solid var(--commerce-navy);
    border-radius: 999px;
    font-size: .68rem;
    font-weight: 800;
}

.commerce-location {
    width: min(100%, 430px);
    min-height: 50px;
    margin: 12px auto -42px;
    padding: 7px 12px;
    display: grid;
    grid-template-columns: 30px minmax(0, 1fr) 20px;
    align-items: center;
    gap: 8px;
    color: var(--commerce-ink);
    background: white;
    border: 1px solid rgba(16, 35, 62, .05);
    border-radius: 999px;
    box-shadow: 0 10px 26px rgba(7, 31, 61, .14);
    text-decoration: none;
}

.commerce-location > svg:first-child { color: var(--commerce-accent); }
.commerce-location .commerce-chevron { width: 18px; height: 18px; color: #708096; }
.commerce-location span { min-width: 0; display: flex; flex-direction: column; }
.commerce-location small { color: var(--commerce-muted); font-size: .65rem; font-weight: 600; }
.commerce-location strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .84rem; }

.commerce-main {
    width: min(100%, 760px);
    min-width: 0;
    margin: 0 auto;
    padding: 26px 16px 28px;
}

.commerce-header:has(.commerce-location) + .commerce-main { padding-top: 47px; }

.commerce-intro { margin: 8px 0 18px; }
.commerce-eyebrow {
    margin: 0 0 4px;
    color: var(--commerce-accent-deep);
    font-size: .76rem;
    font-weight: 800;
    letter-spacing: .11em;
    text-transform: uppercase;
}
.commerce-intro h1,
.commerce-page-heading h1,
.restaurant-dish-copy h1,
.commerce-success h1 {
    margin: 0;
    color: var(--commerce-ink);
    font-size: clamp(1.65rem, 7vw, 2.5rem);
    line-height: 1.06;
    letter-spacing: -.045em;
    font-weight: 800;
}
.commerce-intro > p:last-child,
.commerce-page-heading p,
.restaurant-dish-copy p,
.commerce-success p {
    margin: 8px 0 0;
    color: var(--commerce-muted);
    font-size: .91rem;
    line-height: 1.5;
}

.commerce-search {
    min-height: 52px;
    display: grid;
    grid-template-columns: 24px minmax(0, 1fr) 40px;
    align-items: center;
    gap: 9px;
    padding: 5px 6px 5px 16px;
    color: #77869a;
    background: var(--commerce-surface);
    border: 1px solid var(--commerce-line);
    border-radius: 16px;
    box-shadow: 0 6px 18px rgba(15, 35, 64, .05);
}
.commerce-search input {
    min-width: 0;
    width: 100%;
    border: 0;
    outline: 0;
    color: var(--commerce-ink);
    background: transparent;
    font: inherit;
    font-size: .87rem;
}
.commerce-search button {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 12px;
    color: white;
    background: var(--commerce-accent);
}
.restaurant-search-history {
    margin-top: 8px;
    padding: 10px 12px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    align-items: center;
    background: var(--commerce-surface);
    border: 1px solid var(--commerce-line);
    border-radius: 14px;
}
.restaurant-search-history > span { grid-column: 1 / -1; color: var(--commerce-muted); font-size: .68rem; font-weight: 800; }
.restaurant-search-history > div { min-width: 0; display: flex; gap: 7px; overflow-x: auto; scrollbar-width: none; }
.restaurant-search-history > div::-webkit-scrollbar { display: none; }
.restaurant-search-history button {
    min-height: 44px;
    padding: 8px 12px;
    flex: 0 0 auto;
    color: var(--commerce-accent-deep);
    background: color-mix(in srgb, var(--commerce-accent) 9%, white);
    border: 0;
    border-radius: 999px;
    font: inherit;
    font-size: .68rem;
    font-weight: 800;
}
.restaurant-search-history > button { color: var(--commerce-muted); background: transparent; }

.commerce-section { margin-top: 24px; scroll-margin-top: 12px; }
.commerce-section-heading {
    margin-bottom: 12px;
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
}
.commerce-section-heading h2,
.commerce-card h2,
.commerce-summary h2,
.restaurant-menu-group > h2 {
    margin: 0;
    color: var(--commerce-ink);
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: -.02em;
}
.commerce-section-heading a {
    color: var(--commerce-accent-deep);
    font-size: .78rem;
    font-weight: 750;
    text-decoration: none;
}
.commerce-section-heading > span { color: var(--commerce-muted); font-size: .75rem; }

.commerce-chip-row {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 84px;
    gap: 10px;
    overflow-x: auto;
    padding: 2px 1px 8px;
    scrollbar-width: none;
    scroll-snap-type: x proximity;
}
.commerce-chip-row::-webkit-scrollbar { display: none; }
.commerce-chip {
    min-height: 88px;
    padding: 9px 6px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 7px;
    color: var(--commerce-ink);
    background: white;
    border: 1px solid var(--commerce-line);
    border-radius: 16px;
    text-align: center;
    text-decoration: none;
    scroll-snap-align: start;
}
.commerce-chip-icon {
    width: 39px;
    height: 39px;
    display: grid;
    place-items: center;
    color: var(--commerce-accent-deep);
    background: color-mix(in srgb, var(--commerce-accent) 12%, white);
    border-radius: 13px;
}
.commerce-chip-icon svg { width: 22px; height: 22px; }
.commerce-chip > span:last-child { font-size: .68rem; font-weight: 700; line-height: 1.2; }

.restaurant-grid { display: grid; gap: 14px; }
.restaurant-card {
    overflow: hidden;
    display: grid;
    grid-template-columns: 42% minmax(0, 1fr);
    min-height: 132px;
    color: inherit;
    background: white;
    border: 1px solid var(--commerce-line);
    border-radius: var(--commerce-radius);
    box-shadow: var(--commerce-shadow);
    text-decoration: none;
}
.restaurant-card-cover,
.restaurant-profile-hero,
.restaurant-menu-image,
.restaurant-dish-image {
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(145deg, color-mix(in srgb, var(--commerce-accent) 22%, white), #fff4ef);
}
.restaurant-card-cover img,
.restaurant-profile-hero > img,
.restaurant-menu-image > img,
.restaurant-dish-image > img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}
.restaurant-card-cover.is-placeholder,
.restaurant-menu-image.is-placeholder,
.restaurant-dish-image.is-placeholder {
    display: grid;
    place-items: center;
    color: color-mix(in srgb, var(--commerce-accent) 70%, var(--commerce-ink));
}
.restaurant-card-cover.is-placeholder > svg,
.restaurant-menu-image.is-placeholder > svg,
.restaurant-dish-image.is-placeholder > svg {
    width: 54%;
    height: 54%;
    stroke-width: 1.35;
}
.restaurant-open-state {
    display: inline-flex;
    align-items: center;
    min-height: 25px;
    padding: 4px 8px;
    color: #167749;
    background: rgba(255,255,255,.94);
    border-radius: 999px;
    font-size: .63rem;
    font-weight: 800;
}
.restaurant-card-cover .restaurant-open-state {
    position: absolute;
    inset-inline-start: 8px;
    inset-block-end: 8px;
}
.restaurant-open-state.is-closed { color: #a1443a; }
.restaurant-card-copy {
    min-width: 0;
    padding: 13px 12px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}
.restaurant-card-copy > strong { font-size: .97rem; line-height: 1.25; }
.restaurant-card-copy > small {
    margin-top: 4px;
    color: var(--commerce-muted);
    font-size: .74rem;
    line-height: 1.35;
}
.restaurant-card-meta {
    margin-top: auto;
    padding-top: 9px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 5px 10px;
    color: #536278;
    font-size: .68rem;
    font-weight: 650;
}
.restaurant-card-meta span { display: inline-flex; align-items: center; gap: 3px; }
.restaurant-card-meta svg { width: 14px; height: 14px; color: #f5a623; fill: currentColor; stroke-width: 0; }

.commerce-state {
    min-height: 260px;
    padding: 28px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: var(--commerce-muted);
    background: white;
    border: 1px dashed #d9dfe8;
    border-radius: var(--commerce-radius);
    text-align: center;
}
.commerce-state svg { width: 42px; height: 42px; color: var(--commerce-accent); }
.commerce-state h1 { margin: 0; color: var(--commerce-ink); font-size: 1.2rem; }
.commerce-state p { max-width: 34rem; margin: 0; font-size: .84rem; line-height: 1.5; }
.commerce-state a { color: var(--commerce-accent-deep); font-weight: 750; }
.commerce-state-compact { min-height: 112px; padding: 18px; }
.commerce-state-error { border-style: solid; border-color: #f3c9c3; }

.restaurant-profile-hero {
    height: clamp(180px, 48vw, 310px);
    margin: -26px -16px 0;
}
.restaurant-profile-hero.is-placeholder::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #ff856a, var(--restaurant-deep));
}
.restaurant-profile-overlay {
    position: absolute;
    inset: 0;
    padding: 14px 16px;
    display: flex;
    align-items: flex-end;
    background: linear-gradient(0deg, rgba(7, 31, 61, .48), transparent 55%);
}
.restaurant-profile-copy {
    padding: 18px 0 7px;
    border-bottom: 1px solid var(--commerce-line);
}
.restaurant-profile-copy h1 { margin: 0; font-size: 1.55rem; font-weight: 850; letter-spacing: -.04em; }
.restaurant-profile-copy > p { margin: 6px 0 0; color: var(--commerce-muted); font-size: .83rem; line-height: 1.45; }
.commerce-anchor-tabs {
    position: sticky;
    top: 0;
    z-index: 10;
    margin: 0 -16px;
    padding: 10px 16px;
    display: flex;
    gap: 8px;
    overflow-x: auto;
    background: rgba(247, 248, 251, .94);
    border-bottom: 1px solid var(--commerce-line);
    backdrop-filter: blur(10px);
    scrollbar-width: none;
}
.commerce-anchor-tabs::-webkit-scrollbar { display: none; }
.commerce-anchor-tabs a {
    flex: none;
    min-height: 38px;
    padding: 8px 13px;
    color: var(--commerce-ink);
    background: white;
    border: 1px solid var(--commerce-line);
    border-radius: 999px;
    font-size: .73rem;
    font-weight: 750;
    text-decoration: none;
}
.restaurant-menu-group { margin-top: 19px; }
.restaurant-menu-list {
    margin-top: 10px;
    display: grid;
    gap: 9px;
}
.restaurant-menu-item {
    position: relative;
    min-height: 118px;
    padding: 12px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 105px;
    gap: 12px;
    color: inherit;
    background: white;
    border: 1px solid var(--commerce-line);
    border-radius: 16px;
    text-decoration: none;
}
.restaurant-menu-copy { min-width: 0; display: flex; flex-direction: column; align-items: flex-start; color: inherit; text-decoration: none; }
.restaurant-menu-copy strong { font-size: .87rem; line-height: 1.3; }
.restaurant-menu-copy small {
    margin: 5px 0;
    display: -webkit-box;
    overflow: hidden;
    color: var(--commerce-muted);
    font-size: .7rem;
    line-height: 1.35;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}
.restaurant-menu-copy b { margin-top: auto; color: var(--commerce-accent-deep); font-size: .8rem; }
.restaurant-menu-image { min-height: 92px; border-radius: 13px; }
.restaurant-add-badge {
    position: absolute;
    inset-inline-end: 7px;
    inset-block-end: 7px;
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    color: white;
    background: var(--commerce-accent);
    border: 3px solid white;
    border-radius: 13px;
    font-size: 1.2rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
}
.restaurant-add-badge:focus-visible { outline: 3px solid color-mix(in srgb, var(--commerce-accent) 28%, transparent); outline-offset: 2px; }
.restaurant-dish-search-results { display: grid; gap: 9px; }
.restaurant-dish-search-card {
    min-height: 94px;
    padding: 10px;
    display: grid;
    grid-template-columns: 86px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    color: inherit;
    background: white;
    border: 1px solid var(--commerce-line);
    border-radius: 15px;
    text-decoration: none;
}
.restaurant-dish-search-card .restaurant-menu-image { min-height: 74px; }
.restaurant-dish-search-card > span:last-child { min-width: 0; display: grid; gap: 3px; }
.restaurant-dish-search-card strong { font-size: .82rem; }
.restaurant-dish-search-card small { color: var(--commerce-muted); font-size: .68rem; }
.restaurant-dish-search-card b { color: var(--commerce-accent-deep); font-size: .76rem; }
.commerce-sticky-cta {
    position: sticky;
    inset-block-end: calc(72px + var(--safe-bottom));
    z-index: 15;
    min-height: 54px;
    margin-top: 18px;
    padding: 8px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: white;
    background: var(--commerce-accent);
    border-radius: 16px;
    box-shadow: 0 12px 30px color-mix(in srgb, var(--commerce-accent) 28%, transparent);
    text-decoration: none;
}

.restaurant-dish-image {
    height: clamp(220px, 64vw, 430px);
    margin: -26px -16px 0;
}
.restaurant-dish-copy { padding: 18px 0; border-bottom: 1px solid var(--commerce-line); }
.restaurant-dish-copy > strong { display: block; margin-top: 9px; color: var(--commerce-accent-deep); font-size: 1.05rem; }
.commerce-option-group {
    margin: 16px 0 0;
    padding: 0;
    background: white;
    border: 1px solid var(--commerce-line);
    border-radius: 16px;
}
.commerce-option-group legend {
    width: 100%;
    margin: 0;
    padding: 13px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    color: var(--commerce-ink);
    border-bottom: 1px solid var(--commerce-line);
    font-size: .85rem;
    font-weight: 800;
}
.commerce-option-group legend small { color: var(--commerce-muted); font-size: .62rem; font-weight: 650; }
.commerce-choice {
    min-height: 52px;
    margin: 0;
    padding: 10px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: var(--commerce-ink);
    border-bottom: 1px solid var(--commerce-line);
    cursor: pointer;
}
.commerce-choice:last-child { border-bottom: 0; }
.commerce-choice > span { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.commerce-choice strong { font-size: .79rem; line-height: 1.3; }
.commerce-choice small { color: var(--commerce-muted); font-size: .66rem; line-height: 1.35; }
.commerce-choice input[type="radio"],
.commerce-choice input[type="checkbox"] {
    flex: none;
    width: 21px;
    height: 21px;
    accent-color: var(--commerce-accent);
}
.commerce-field {
    margin-top: 14px;
    display: grid;
    gap: 7px;
    color: var(--commerce-ink);
    font-size: .76rem;
    font-weight: 750;
}
.commerce-field input,
.commerce-field textarea,
.commerce-field select {
    width: 100%;
    min-height: 48px;
    padding: 11px 12px;
    color: var(--commerce-ink);
    background: white;
    border: 1px solid var(--commerce-line);
    border-radius: 13px;
    outline: none;
    font: inherit;
    font-weight: 500;
}
.commerce-field textarea { min-height: 88px; resize: vertical; }
.commerce-field input:focus,
.commerce-field textarea:focus,
.commerce-field select:focus { border-color: var(--commerce-accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--commerce-accent) 16%, transparent); }
.restaurant-dish-actions {
    position: sticky;
    inset-block-end: calc(70px + var(--safe-bottom));
    z-index: 15;
    margin: 18px -8px 0;
    padding: 8px;
    display: grid;
    grid-template-columns: 108px minmax(0, 1fr);
    gap: 8px;
    background: rgba(255,255,255,.94);
    border: 1px solid var(--commerce-line);
    border-radius: 17px;
    box-shadow: var(--commerce-shadow);
    backdrop-filter: blur(10px);
}
.commerce-stepper {
    min-height: 50px;
    display: grid;
    grid-template-columns: 36px 1fr 36px;
    place-items: center;
    background: var(--commerce-background);
    border-radius: 13px;
}
.commerce-stepper button { width: 36px; height: 44px; border: 0; color: var(--commerce-accent-deep); background: transparent; font-size: 1.25rem; }
.commerce-stepper output { font-size: .85rem; font-weight: 850; }

.commerce-primary-button,
.commerce-secondary-button,
.commerce-danger-button {
    min-height: 48px;
    padding: 11px 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: 0;
    border-radius: 13px;
    font: inherit;
    font-size: .8rem;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
}
.commerce-primary-button { color: white; background: var(--commerce-accent); }
.commerce-primary-button:hover, .commerce-primary-button:focus-visible { color: white; background: var(--commerce-accent-deep); }
.commerce-secondary-button { color: var(--commerce-accent-deep); background: color-mix(in srgb, var(--commerce-accent) 12%, white); border: 1px solid color-mix(in srgb, var(--commerce-accent) 24%, white); }
.commerce-danger-button { color: #a52b22; background: #fff1ef; border: 1px solid #f5cbc5; }
.commerce-full-button { width: 100%; margin-top: 16px; }
.commerce-primary-button:focus-visible,
.commerce-secondary-button:focus-visible,
.commerce-danger-button:focus-visible { outline: 3px solid color-mix(in srgb, var(--commerce-accent) 28%, transparent); outline-offset: 2px; }

.commerce-page-heading { margin: 2px 0 18px; }
.commerce-progress { margin: -6px 0 20px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.commerce-progress span { height: 4px; background: #dfe4eb; border-radius: 999px; }
.commerce-progress .is-done,
.commerce-progress .is-current { background: var(--commerce-accent); }
.commerce-form { display: grid; gap: 14px; }
.commerce-card,
.commerce-summary {
    padding: 15px;
    background: white;
    border: 1px solid var(--commerce-line);
    border-radius: 16px;
}
.commerce-summary { display: grid; gap: 10px; }
.commerce-summary h2 { padding-bottom: 10px; border-bottom: 1px solid var(--commerce-line); }
.commerce-summary > div {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    color: var(--commerce-muted);
    font-size: .75rem;
}
.commerce-summary > div strong { color: var(--commerce-ink); }
.commerce-summary .commerce-summary-total {
    margin-top: 2px;
    padding-top: 11px;
    color: var(--commerce-ink);
    border-top: 1px solid var(--commerce-line);
    font-size: .92rem;
    font-weight: 800;
}
.commerce-summary-total strong { color: var(--commerce-accent-deep) !important; }
.commerce-quote-state {
    min-height: 18px;
    margin: 0;
    color: var(--commerce-muted);
    font-size: .7rem;
    line-height: 1.4;
}
.commerce-validation:empty { display: none; }
.commerce-validation {
    padding: 12px;
    color: #9b2b21;
    background: #fff2f0;
    border: 1px solid #f3c6c0;
    border-radius: 12px;
    font-size: .72rem;
}
.commerce-alert {
    padding: 11px 13px;
    margin-bottom: 12px;
    border: 1px solid;
    border-radius: 12px;
    font-size: .72rem;
    line-height: 1.45;
}
.commerce-alert.is-success { color: #126842; border-color: #b8e5cf; background: #edf9f3; }
.commerce-alert.is-error { color: #982c24; border-color: #f0c6c2; background: #fff2f0; }
.commerce-validation ul { margin: 0; padding-inline-start: 18px; }
.commerce-address-choice { min-height: 64px; }
.commerce-toggle { background: white; border: 1px solid var(--commerce-line); border-radius: 14px; }

.restaurant-cart-lines,
.commerce-history-list { display: grid; gap: 10px; }
.restaurant-cart-line {
    min-height: 84px;
    padding: 12px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
    background: white;
    border: 1px solid var(--commerce-line);
    border-radius: 15px;
}
.restaurant-cart-line strong { display: block; font-size: .83rem; }
.restaurant-cart-line small { display: block; margin-top: 3px; color: var(--commerce-muted); font-size: .66rem; }
.restaurant-cart-line-actions { display: flex; align-items: center; gap: 7px; }
.restaurant-cart-line-actions button { width: 44px; height: 44px; border: 1px solid var(--commerce-line); border-radius: 11px; color: var(--commerce-accent-deep); background: white; }
.restaurant-cart-line-actions button.is-remove { color: #a43b32; }
.restaurant-cart-line-actions output { min-width: 20px; text-align: center; font-size: .76rem; font-weight: 800; }
.restaurant-cart-edit { display: inline-flex; min-height: 32px; margin-top: 2px; align-items: center; color: var(--commerce-accent-deep); font-size: .68rem; font-weight: 800; text-decoration: none; }
.restaurant-cart-undo {
    min-height: 48px;
    margin-bottom: 10px;
    padding: 7px 9px 7px 13px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    color: var(--commerce-ink);
    background: #fff7f4;
    border: 1px solid #ffd2c7;
    border-radius: 13px;
    font-size: .72rem;
    font-weight: 700;
}
.restaurant-cart-undo button { min-height: 44px; padding: 7px 12px; color: var(--commerce-accent-deep); background: white; border: 1px solid #ffd2c7; border-radius: 10px; font: inherit; font-weight: 800; }

.commerce-success { padding: 18px 8px 24px; text-align: center; }
.commerce-success-icon {
    width: 68px;
    height: 68px;
    margin: 0 auto 14px;
    display: grid;
    place-items: center;
    color: white;
    background: var(--commerce-accent);
    border-radius: 50%;
    box-shadow: 0 10px 28px color-mix(in srgb, var(--commerce-accent) 25%, transparent);
}
.commerce-success-icon svg { width: 34px; height: 34px; stroke-width: 2.4; }
.commerce-success > strong { display: block; margin-top: 12px; color: var(--commerce-accent-deep); font-size: .78rem; }
.commerce-status-badge {
    width: fit-content;
    min-height: 25px;
    padding: 5px 9px;
    display: inline-flex;
    align-items: center;
    color: var(--commerce-accent-deep);
    background: color-mix(in srgb, var(--commerce-accent) 12%, white);
    border-radius: 999px;
    font-size: .64rem;
    font-weight: 800;
}
.commerce-timeline { margin: 16px 0 0; padding: 0; list-style: none; }
.commerce-timeline li { min-height: 54px; display: grid; grid-template-columns: 20px 1fr; gap: 10px; text-align: start; }
.commerce-timeline li > span { width: 10px; height: 10px; margin: 4px 0 0 5px; background: var(--commerce-accent); border: 3px solid color-mix(in srgb, var(--commerce-accent) 18%, white); border-radius: 50%; box-sizing: content-box; position: relative; }
.commerce-timeline li:not(:last-child) > span::after { content: ""; position: absolute; inset-inline-start: 4px; inset-block-start: 13px; width: 2px; height: 38px; background: #dfe4eb; }
.commerce-timeline li div { display: flex; flex-direction: column; }
.commerce-timeline strong { font-size: .76rem; }
.commerce-timeline time { color: var(--commerce-muted); font-size: .64rem; }
.commerce-history-card {
    padding: 14px;
    background: white;
    border: 1px solid var(--commerce-line);
    border-radius: 16px;
}
.commerce-history-card > a { display: flex; justify-content: space-between; gap: 12px; color: inherit; text-decoration: none; }
.commerce-history-card > a > span { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.commerce-history-card strong { font-size: .82rem; }
.commerce-history-card small { color: var(--commerce-muted); font-size: .64rem; }
.service-category-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}
.service-category-card {
    min-height: 146px;
    padding: 14px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    color: inherit;
    background: white;
    border: 1px solid var(--commerce-line);
    border-radius: 17px;
    box-shadow: 0 8px 22px rgba(15,35,64,.055);
    text-decoration: none;
}
.service-category-icon {
    width: 44px;
    height: 44px;
    margin-bottom: 12px;
    display: grid;
    place-items: center;
    color: var(--services-deep);
    background: color-mix(in srgb, var(--services) 13%, white);
    border-radius: 14px;
}
.service-category-icon svg { width: 25px; height: 25px; }
.service-category-card strong { font-size: .85rem; line-height: 1.3; }
.service-category-card small {
    margin-top: 4px;
    display: -webkit-box;
    overflow: hidden;
    color: var(--commerce-muted);
    font-size: .66rem;
    line-height: 1.4;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}
.service-definition-list,
.service-provider-list,
.service-offer-list { display: grid; gap: 10px; }
.service-definition-card {
    min-height: 74px;
    padding: 12px 13px;
    display: grid;
    grid-template-columns: minmax(0,1fr) auto auto;
    align-items: center;
    gap: 10px;
    color: inherit;
    background: white;
    border: 1px solid var(--commerce-line);
    border-radius: 15px;
    text-decoration: none;
}
.service-definition-card > span { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.service-definition-card strong { font-size: .8rem; }
.service-definition-card small { color: var(--commerce-muted); font-size: .65rem; line-height: 1.4; }
.service-definition-card b { color: var(--services-deep); font-size: .7rem; white-space: nowrap; }
.service-definition-card > svg { width: 19px; height: 19px; color: #7a8798; }
.service-provider-card {
    padding: 14px;
    display: grid;
    grid-template-columns: 54px minmax(0,1fr) auto;
    gap: 11px;
    align-items: center;
    background: white;
    border: 1px solid var(--commerce-line);
    border-radius: 17px;
    box-shadow: 0 8px 22px rgba(15,35,64,.05);
}
.service-provider-avatar {
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    color: white;
    background: linear-gradient(145deg, var(--services), var(--services-deep));
    border: 3px solid #e7f7f6;
    border-radius: 50%;
    font-size: .82rem;
    font-weight: 850;
}
.service-provider-copy { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.service-provider-copy strong { font-size: .82rem; }
.service-provider-copy small { color: var(--commerce-muted); font-size: .67rem; }
.service-provider-copy > span { color: #637188; font-size: .62rem; }
.service-provider-copy b { color: #df9b11; }
.service-verified {
    align-self: start;
    display: inline-flex;
    align-items: center;
    gap: 3px;
    color: var(--services-deep);
    font-size: .57rem;
    font-weight: 800;
}
.service-verified svg { width: 15px; height: 15px; }
.service-provider-card > a {
    grid-column: 2 / -1;
    width: fit-content;
    color: var(--services-deep);
    font-size: .69rem;
    font-weight: 800;
    text-decoration: none;
}
.service-provider-facts {
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.service-provider-facts span {
    min-height: 28px;
    padding: 6px 8px;
    display: inline-flex;
    align-items: center;
    color: var(--services-deep);
    background: #eaf9f8;
    border-radius: 999px;
    font-size: .6rem;
    font-weight: 750;
}
.service-results-summary {
    margin: -7px 0 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    color: var(--commerce-muted);
    font-size: .68rem;
}
.service-directory-proof,
.service-profile-badges {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--services-deep);
    font-weight: 800;
}
.service-directory-proof svg { width: 16px; height: 16px; }
.service-profile-badges { margin-top: 8px; flex-wrap: wrap; justify-content: center; }
.service-profile-hero,
.service-intervention-hero {
    margin: -6px -4px 0;
    padding: 22px 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background: linear-gradient(150deg, #e8faf8, white);
    border: 1px solid #d8efed;
    border-radius: 22px;
}
.service-provider-avatar.is-large { width: 82px; height: 82px; font-size: 1.12rem; border-width: 4px; }
.service-profile-hero h1,
.service-intervention-hero h1 { margin: 12px 0 2px; font-size: 1.4rem; font-weight: 850; letter-spacing: -.035em; }
.service-profile-hero > p,
.service-intervention-hero > p { margin: 0; color: var(--commerce-muted); font-size: .75rem; }
.service-profile-stats {
    width: 100%;
    margin-top: 17px;
    padding-top: 14px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(70px,1fr));
    border-top: 1px solid #d8efed;
}
.service-profile-stats > span { min-width: 0; padding: 0 6px; display: flex; flex-direction: column; gap: 2px; border-inline-end: 1px solid #d8efed; }
.service-profile-stats > span:last-child { border-inline-end: 0; }
.service-profile-stats strong { font-size: .75rem; }
.service-profile-stats small { color: var(--commerce-muted); font-size: .54rem; line-height: 1.25; }
.service-copy { margin: 9px 0 0; color: var(--commerce-muted); font-size: .75rem; line-height: 1.6; }
.service-private-note { position: relative; padding-inline-end: 58px; }
.service-private-note p { margin: 7px 0 0; color: var(--commerce-muted); font-size: .68rem; line-height: 1.45; }
.service-private-note > svg { position: absolute; inset-inline-end: 15px; inset-block-start: 16px; width: 30px; height: 30px; color: var(--services-deep); }
.service-private-files input[type="file"] { padding: 7px; }
.service-private-file-summary { color: var(--services-deep); font-size: .66rem; font-weight: 800; }
.service-private-file-list { margin: 0; padding-inline-start: 18px; color: var(--commerce-muted); font-size: .62rem; line-height: 1.55; overflow-wrap: anywhere; }
.service-field-pair { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
.service-offer-card {
    padding: 15px;
    background: white;
    border: 1px solid var(--commerce-line);
    border-radius: 17px;
    box-shadow: 0 8px 24px rgba(15,35,64,.055);
}
.service-offer-card > header {
    display: grid;
    grid-template-columns: 48px minmax(0,1fr) auto;
    align-items: center;
    gap: 10px;
}
.service-offer-card .service-provider-avatar { width: 46px; height: 46px; }
.service-offer-card header > span:nth-child(2) { min-width: 0; display: flex; flex-direction: column; }
.service-offer-card header strong { font-size: .8rem; }
.service-offer-card header small { color: var(--commerce-muted); font-size: .62rem; }
.service-offer-card header > b { color: var(--services-deep); font-size: .9rem; }
.service-offer-meta { margin: 12px 0 8px; display: flex; flex-wrap: wrap; gap: 6px; }
.service-offer-meta span { padding: 5px 8px; color: var(--services-deep); background: #eaf9f8; border-radius: 999px; font-size: .6rem; font-weight: 750; }
.service-offer-card > p { margin: 0 0 8px; color: var(--commerce-muted); font-size: .7rem; line-height: 1.45; }
.service-offer-copy { margin: 8px 0; }
.service-offer-copy strong { display: block; color: var(--commerce-ink); font-size: .65rem; }
.service-offer-copy p { margin: 3px 0 0; color: var(--commerce-muted); font-size: .68rem; line-height: 1.45; }
.service-offer-card > small { color: #7b8798; font-size: .6rem; }
.service-offer-card details { margin: 8px 0; padding: 8px 0; border-block: 1px solid var(--commerce-line); }
.service-offer-card details summary { color: var(--services-deep); font-size: .65rem; font-weight: 800; cursor: pointer; }
.service-offer-card details div { padding-top: 6px; display: flex; justify-content: space-between; gap: 10px; color: var(--commerce-muted); font-size: .62rem; }
.service-intervention-hero { margin-bottom: 14px; }
.service-intervention-hero .commerce-eyebrow { margin-top: 10px; }
.service-intervention-hero > strong { margin: 4px 0 10px; font-size: .8rem; }
.service-safety-code {
    margin-top: 14px;
    padding: 18px;
    color: white;
    background: var(--commerce-navy);
    border-radius: 17px;
    text-align: center;
}
.service-safety-code > span { display: block; color: #a8c0d7; font-size: .7rem; font-weight: 700; }
.service-safety-code > strong { display: block; margin: 8px 0; font-size: 1.9rem; letter-spacing: .18em; }
.service-safety-code p { margin: 0; color: #bfd0df; font-size: .62rem; line-height: 1.45; }
.service-customer-command { margin-top: 12px; padding: 13px; background: white; border: 1px solid var(--commerce-line); border-radius: 15px; }
.service-customer-command p { margin: 0; color: var(--commerce-muted); font-size: .68rem; line-height: 1.45; }
.service-history-tabs {
    margin: -6px -2px 15px;
    padding: 2px;
    display: flex;
    gap: 6px;
    overflow-x: auto;
    scrollbar-width: none;
}
.service-history-tabs::-webkit-scrollbar { display: none; }
.service-history-tabs a {
    min-height: 44px;
    padding: 9px 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    color: var(--commerce-muted);
    background: white;
    border: 1px solid var(--commerce-line);
    border-radius: 999px;
    font-size: .68rem;
    font-weight: 800;
    text-decoration: none;
}
.service-history-tabs a.is-active { color: white; background: var(--services-deep); border-color: var(--services-deep); }
.service-rebook-link { margin-top: 9px; color: var(--services-deep) !important; font-size: .68rem; font-weight: 800; text-decoration: none; }
.commerce-review { margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--commerce-line); }
.commerce-review summary { color: var(--commerce-accent-deep); font-size: .72rem; font-weight: 800; cursor: pointer; }
.commerce-review form { margin-top: 10px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.commerce-review label { display: grid; gap: 4px; font-size: .65rem; font-weight: 700; }
.commerce-review input, .commerce-review textarea { min-height: 42px; padding: 8px; border: 1px solid var(--commerce-line); border-radius: 10px; }
.commerce-review textarea, .commerce-review button { grid-column: 1 / -1; }
.commerce-review .restaurant-review-tags { grid-column: 1 / -1; margin: 0; padding: 9px; display: flex; gap: 7px; flex-wrap: wrap; border: 1px solid var(--commerce-line); border-radius: 11px; }
.restaurant-review-tags legend { width: 100%; color: var(--commerce-muted); font-size: .65rem; font-weight: 800; }
.commerce-review .restaurant-review-tags label { min-height: 40px; padding: 6px 9px; display: flex; grid: none; flex-direction: row; align-items: center; gap: 6px; background: #f7f9fb; border-radius: 999px; }
.commerce-review .restaurant-review-tags input { width: 18px; min-height: 18px; margin: 0; padding: 0; accent-color: var(--commerce-accent); }

.commerce-bottom-nav {
    position: sticky;
    inset-block-end: 0;
    z-index: 30;
    min-height: calc(66px + var(--safe-bottom));
    padding: 6px 8px var(--safe-bottom);
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    align-items: start;
    background: rgba(255, 255, 255, .97);
    border-top: 1px solid var(--commerce-line);
    box-shadow: 0 -8px 24px rgba(15, 35, 64, .05);
    backdrop-filter: blur(12px);
}
.commerce-bottom-nav a {
    min-width: 0;
    min-height: 54px;
    padding: 5px 2px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    color: #536278;
    border-radius: 11px;
    text-decoration: none;
}
.commerce-bottom-nav a.is-active { color: var(--commerce-accent-deep); }
.commerce-bottom-nav a:focus-visible { outline: 3px solid color-mix(in srgb, var(--commerce-accent) 20%, transparent); }
.commerce-bottom-nav svg { width: 22px; height: 22px; stroke-width: 1.8; }
.commerce-bottom-nav span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .58rem; font-weight: 700; }

.commerce-filter-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-block: 10px 18px;
    padding: 12px;
    border: 1px solid var(--commerce-line);
    border-radius: 16px;
    background: var(--commerce-surface);
    box-shadow: var(--commerce-shadow-soft);
}
.commerce-filter-grid label { min-width: 0; color: var(--commerce-muted); font-size: .66rem; font-weight: 800; }
.commerce-filter-grid label > span { display: block; margin-block-end: 4px; }
.commerce-filter-grid select {
    width: 100%; min-height: 44px; padding: 8px 10px; border: 1px solid var(--commerce-line);
    border-radius: 11px; color: var(--commerce-navy); background: #fff; font: inherit;
}
.commerce-filter-grid input {
    width: 100%; min-height: 44px; padding: 8px 10px; border: 1px solid var(--commerce-line);
    border-radius: 11px; color: var(--commerce-navy); background: #fff; font: inherit;
}
.commerce-filter-grid select:focus,
.commerce-filter-grid input:focus { border-color: var(--commerce-accent); outline: 3px solid color-mix(in srgb, var(--commerce-accent) 14%, transparent); }
.commerce-filter-grid .service-filter-wide { grid-column: 1 / -1; }
.commerce-filter-grid .commerce-filter-toggle { display: flex; align-items: center; gap: 8px; min-height: 44px; }
.commerce-filter-grid .commerce-filter-toggle > span { margin: 0; }
.commerce-filter-grid .commerce-filter-toggle input { width: 20px; height: 20px; accent-color: var(--commerce-accent); }
.commerce-filter-grid > button { align-self: end; min-height: 44px; }
.commerce-pagination { display: flex; align-items: center; justify-content: center; gap: 10px; margin-block: 14px 8px; }
.commerce-pagination a,
.commerce-pagination span { display: inline-flex; min-height: 44px; align-items: center; justify-content: center; padding: 8px 12px; border-radius: 11px; font-size: .72rem; font-weight: 800; }
.commerce-pagination a { color: var(--commerce-accent-deep); background: color-mix(in srgb, var(--commerce-accent) 10%, #fff); text-decoration: none; }
.commerce-pagination span { color: var(--commerce-muted); }

[dir="rtl"] .commerce-app { font-family: Cairo, Manrope, system-ui, sans-serif; }
[dir="rtl"] .commerce-icon-button svg,
[dir="rtl"] .commerce-chevron { transform: scaleX(-1); }
[dir="rtl"] .commerce-search button svg { transform: scaleX(-1); }

@media (min-width: 700px) {
    .commerce-app { min-height: 100dvh; }
    .commerce-header { border-radius: 0 0 28px 28px; }
    .commerce-header-row { width: min(100%, 760px); margin: 0 auto; }
    .commerce-main { padding-inline: 28px; }
    .commerce-header:has(.commerce-location) + .commerce-main { padding-top: 52px; }
    .restaurant-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .restaurant-card { grid-template-columns: 45% minmax(0,1fr); min-height: 154px; }
    .restaurant-menu-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .service-category-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .service-provider-list,
    .service-offer-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .commerce-filter-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .commerce-bottom-nav { width: min(100%, 760px); margin: 0 auto; border-inline: 1px solid var(--commerce-line); border-radius: 20px 20px 0 0; }
}

@media (min-width: 1024px) {
    .commerce-app {
        width: min(100%, 1120px);
        margin: 0 auto;
        border-inline: 1px solid var(--commerce-line);
        box-shadow: 0 0 46px rgba(15,35,64,.08);
    }
    .commerce-main,
    .commerce-header-row { width: min(100%, 920px); }
    .commerce-location { width: 430px; }
    .restaurant-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .commerce-bottom-nav { width: min(100%, 920px); }
}

@media (prefers-reduced-motion: no-preference) {
    .restaurant-card,
    .restaurant-menu-item,
    .commerce-chip,
    .commerce-primary-button { transition: transform .16s ease, box-shadow .16s ease, background-color .16s ease; }
    .restaurant-card:hover,
    .restaurant-menu-item:hover,
    .commerce-chip:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(15,35,64,.1); }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
