/*
 * Zestia cinematic customer portal
 * -----------------------------------
 * One launch-ready visual language for authentication, account, addresses
 * and order tracking. It is loaded only on customer-portal routes, after the
 * storefront and mobile safety layers, so alternate storefront themes cannot
 * alter the operational hierarchy of these screens.
 */

body.customer-portal {
  --portal-bg: #070808;
  --portal-surface: #0d0e0f;
  --portal-surface-raised: #111213;
  --portal-surface-soft: #171415;
  --portal-text: #f7f4ef;
  --portal-muted: #aaa6a2;
  --portal-line: #29292a;
  --portal-line-strong: #3a3031;
  --portal-red: #cf302f;
  --portal-red-dark: #8f171d;
  --portal-red-soft: #351517;
  --portal-success: #d34a48;
  --portal-radius: 14px;
  --portal-radius-small: 9px;
  --portal-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
  --portal-sans: "Avenir Next", Avenir, "Segoe UI", Helvetica, Arial, sans-serif;
  --portal-display: "Iowan Old Style", "Baskerville", "Times New Roman", serif;
  min-width: 0;
  overflow-x: clip;
  background: var(--portal-bg);
  color: var(--portal-text);
  font-family: var(--portal-sans);
}

/* The pizza_solas runtime may contain light tenant primitives. Portal routes
   are a full-bleed dark surface and must never reveal that page colour around
   a centred content canvas. */
body.app-body.theme-pizza_solas.customer-portal.storefront-shell {
  background: var(--portal-bg);
}

body.app-body.theme-pizza_solas.customer-portal.storefront-shell
  .content.storefront-surface {
  width: 100%;
  max-width: none;
  align-self: stretch;
}

body.app-body.theme-pizza_solas.customer-portal.storefront-shell .site-footer {
  width: 100%;
  margin-top: 0;
}

body.customer-portal,
body.customer-portal :where(button, input, select, textarea) {
  font-family: var(--portal-sans);
}

body.customer-portal .store-context-bar {
  display: none;
}

body.customer-portal .site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  width: 100%;
  min-height: 84px;
  padding: 12px clamp(20px, 3vw, 44px);
  display: grid;
  grid-template-columns: minmax(250px, 0.9fr) minmax(0, 2.1fr);
  align-items: center;
  gap: 28px;
  border-bottom: 1px solid var(--portal-line);
  background: rgba(7, 8, 8, 0.97);
  color: var(--portal-text);
  box-shadow: none;
  backdrop-filter: blur(18px);
}

body.customer-portal .site-header .brand {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 13px;
}

body.customer-portal .site-header .brand-logo {
  width: 56px;
  height: 56px;
  flex: 0 0 56px;
  border: 1px solid var(--portal-line);
  border-radius: 13px;
  object-fit: contain;
}

body.customer-portal .site-header .brand-copy {
  min-width: 0;
}

body.customer-portal .site-header .brand-name {
  color: var(--portal-text);
  font-size: 1.18rem;
  line-height: 1.15;
  white-space: nowrap;
}

body.customer-portal .site-header .brand-tagline {
  max-width: 44ch;
  margin-top: 3px;
  overflow: hidden;
  color: var(--portal-muted);
  font-size: 0.78rem;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.customer-portal .site-header .main-nav {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: nowrap;
  gap: clamp(8px, 1.4vw, 22px);
}

body.customer-portal .site-header :where(.nav-link, .account-name) {
  color: var(--portal-text);
  font-size: 0.78rem;
  font-weight: 760;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

body.customer-portal .site-header .nav-account {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 10px;
}

body.customer-portal .site-header .account-name {
  display: none;
}

body.customer-portal .site-header :where(.ghost-button, .customer-nav-toggle) {
  min-height: 42px;
  border-color: var(--portal-line-strong);
  border-radius: var(--portal-radius-small);
  background: transparent;
  color: var(--portal-text);
  box-shadow: none;
}

body.customer-portal .site-header .cart-link__count {
  background: var(--portal-text);
  color: #090909;
}

body.customer-portal .storefront-surface:not(.storefront-surface--index) {
  width: 100%;
  max-width: none;
  min-height: calc(100svh - 84px);
  margin: 0;
  padding: clamp(24px, 3.2vw, 48px);
  border: 0;
  border-radius: 0;
  background: var(--portal-bg);
  color: var(--portal-text);
}

body.customer-portal .storefront-surface--mydemo {
  padding: 0 0 46px;
}

/* Win against the selected storefront pack without relying on load order. */
body.app-body.customer-portal.storefront-shell .site-header {
  min-height: 84px;
}

body.app-body.customer-portal.storefront-shell .site-header .brand-logo {
  width: 56px;
  height: 56px;
  flex-basis: 56px;
}

body.app-body.customer-portal.storefront-shell .storefront-surface.storefront-surface--mydemo {
  padding: 0 0 46px;
}

body.customer-portal .storefront-surface:not(.storefront-surface--index) :where(
  h1,
  h2,
  h3,
  h4,
  strong,
  label
) {
  color: var(--portal-text);
}

body.customer-portal .storefront-surface:not(.storefront-surface--index) :where(
  .muted,
  p,
  small
) {
  color: var(--portal-muted);
}

body.customer-portal .storefront-surface:not(.storefront-surface--index) :where(
  .card,
  .auth-card,
  .account-section,
  .order-card,
  .address-card
) {
  border: 1px solid var(--portal-line);
  border-radius: var(--portal-radius);
  background: var(--portal-surface);
  color: var(--portal-text);
  box-shadow: none;
}

body.customer-portal .storefront-surface:not(.storefront-surface--index) :where(
  .button,
  button:not(.ghost-button):not(.toggle-button):not(.customer-nav-toggle)
) {
  min-height: 46px;
  padding: 11px 18px;
  border: 1px solid var(--portal-red);
  border-radius: var(--portal-radius-small);
  background: var(--portal-red);
  color: #fff;
  box-shadow: none;
}

body.customer-portal .storefront-surface:not(.storefront-surface--index) :where(
  .button,
  button:not(.ghost-button):not(.toggle-button):not(.customer-nav-toggle)
):hover {
  border-color: #e74441;
  background: #e74441;
  transform: none;
}

body.customer-portal .storefront-surface:not(.storefront-surface--index) .ghost-button {
  min-height: 42px;
  padding: 9px 15px;
  border: 1px solid var(--portal-line-strong);
  border-radius: var(--portal-radius-small);
  background: transparent;
  color: var(--portal-text);
  box-shadow: none;
}

body.customer-portal .storefront-surface:not(.storefront-surface--index) :where(
  .button,
  .ghost-button,
  button,
  a
):focus-visible {
  outline: 3px solid rgba(207, 48, 47, 0.52);
  outline-offset: 3px;
}

body.customer-portal .storefront-surface:not(.storefront-surface--index) :where(
  input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
  select,
  textarea
) {
  width: 100%;
  min-height: 50px;
  padding: 11px 13px;
  border: 1px solid var(--portal-line-strong);
  border-radius: var(--portal-radius-small);
  background: #0b0c0d;
  color: var(--portal-text);
  box-shadow: none;
}

body.customer-portal .storefront-surface:not(.storefront-surface--index) :where(
  input,
  select,
  textarea
):focus {
  border-color: var(--portal-red);
  outline: 2px solid rgba(207, 48, 47, 0.22);
  outline-offset: 1px;
}

body.customer-portal .storefront-surface:not(.storefront-surface--index) .alert {
  border: 1px solid var(--portal-red);
  border-radius: var(--portal-radius-small);
  background: var(--portal-red-soft);
  color: var(--portal-text);
}

/* Account hub ------------------------------------------------------------ */

body.customer-portal .portal-account {
  width: 100%;
  max-width: none;
  margin: 0;
  display: grid;
  gap: 0;
}

body.customer-portal .portal-live-band {
  position: relative;
  isolation: isolate;
  min-height: 218px;
  padding: 36px clamp(230px, 18vw, 300px) 34px clamp(28px, 3vw, 44px);
  display: grid;
  grid-template-columns: minmax(300px, 0.78fr) minmax(440px, 1.82fr) minmax(150px, 0.48fr);
  align-items: center;
  gap: clamp(22px, 3vw, 48px);
  overflow: hidden;
  border-bottom: 1px solid var(--portal-line-strong);
  background: #150c0d;
  color: var(--portal-text);
}

body.customer-portal .portal-live-band .account-header__media {
  position: absolute;
  z-index: -1;
  top: 0;
  right: 0;
  width: clamp(210px, 17vw, 300px);
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.82;
  border-left: 1px solid rgba(255, 255, 255, 0.08);
}

body.customer-portal .portal-live-band__intro {
  min-width: 0;
  display: grid;
  gap: 6px;
}

body.customer-portal .portal-live-band__intro p {
  margin: 0;
  color: #e05a56;
  font-family: var(--portal-display);
  font-size: 1.05rem;
}

body.app-body.customer-portal .portal-live-band__intro p {
  color: #e05a56;
}

body.customer-portal .portal-live-band__intro h1 {
  margin: 0;
  overflow: hidden;
  color: var(--portal-text);
  font-family: var(--portal-display);
  font-size: clamp(2.5rem, 3.4vw, 3.4rem);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 0.98;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.app-body.customer-portal .portal-live-band__intro h1 {
  color: var(--portal-text);
  font-family: var(--portal-display);
}

body.customer-portal .portal-live-band__intro > span {
  max-width: 34ch;
  color: #cbc5c1;
  font-size: 0.98rem;
}

body.customer-portal .portal-live-band__progress {
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(7, minmax(68px, 1fr));
  align-items: start;
}

body.customer-portal .portal-progress-step {
  position: relative;
  min-width: 0;
  padding-top: 33px;
  display: grid;
  justify-items: center;
  gap: 3px;
  color: #858183;
  text-align: center;
}

body.customer-portal .portal-progress-step:not(:last-child)::after {
  content: "";
  position: absolute;
  z-index: -1;
  top: 10px;
  left: 50%;
  width: 100%;
  height: 2px;
  background: #423638;
}

body.customer-portal .portal-progress-step__dot {
  position: absolute;
  top: 2px;
  left: 50%;
  width: 18px;
  height: 18px;
  border: 2px solid #554b4d;
  border-radius: 50%;
  background: #150c0d;
  transform: translateX(-50%);
}

body.customer-portal .portal-progress-step strong {
  max-width: 100%;
  overflow: hidden;
  color: currentColor;
  font-size: clamp(0.55rem, 0.62vw, 0.64rem);
  font-weight: 700;
  letter-spacing: 0.025em;
  line-height: 1.15;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

body.customer-portal .portal-progress-step small {
  color: #918b8d;
  font-size: 0.68rem;
}

body.customer-portal .portal-progress-step.is-complete,
body.customer-portal .portal-progress-step.is-active {
  color: var(--portal-text);
}

body.customer-portal .portal-progress-step.is-complete:not(:last-child)::after,
body.customer-portal .portal-progress-step.is-active:not(:last-child)::after {
  background: var(--portal-red);
}

body.customer-portal .portal-progress-step.is-complete .portal-progress-step__dot {
  border-color: var(--portal-red);
  background: var(--portal-red-dark);
}

body.customer-portal .portal-progress-step.is-active .portal-progress-step__dot {
  top: -3px;
  width: 28px;
  height: 28px;
  border: 5px solid rgba(207, 48, 47, 0.38);
  background: var(--portal-red);
  box-shadow: 0 0 0 7px rgba(207, 48, 47, 0.11), 0 0 28px rgba(207, 48, 47, 0.42);
}

body.customer-portal .portal-progress-step.is-active small {
  color: #ef5d59;
}

body.customer-portal .portal-live-band__eta {
  min-width: 0;
  padding-left: 20px;
  display: grid;
  gap: 6px;
  border-left: 1px solid var(--portal-line-strong);
}

body.customer-portal .portal-live-band__eta > span {
  color: #9e9899;
  font-size: 0.68rem;
  font-weight: 750;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

body.customer-portal .portal-live-band__eta strong {
  color: var(--portal-text);
  font-family: var(--portal-display);
  font-size: clamp(1.8rem, 2.6vw, 2.6rem);
  font-weight: 500;
  line-height: 1;
}

body.customer-portal .portal-live-band__eta a {
  width: max-content;
  color: #ef5d59;
  font-size: 0.76rem;
  font-weight: 750;
  text-decoration: none;
}

body.customer-portal .portal-live-band--idle {
  grid-template-columns: minmax(0, 1fr) auto;
}

body.customer-portal .portal-live-band__idle-action {
  display: grid;
  justify-items: start;
  gap: 12px;
}

body.customer-portal .portal-loyalty-slot {
  width: min(calc(100% - 56px), 1400px);
  margin: 24px auto 0;
}

body.customer-portal .portal-loyalty-slot:empty {
  display: none;
}

body.customer-portal .portal-loyalty-slot .loyalty-wallet {
  margin: 0;
  padding: clamp(22px, 2.8vw, 34px);
}

body.customer-portal .portal-account-workspace {
  width: min(calc(100% - 56px), 1400px);
  margin: 24px auto 0;
  display: grid;
  grid-template-columns: minmax(0, 1.72fr) minmax(330px, 0.92fr);
  gap: 16px;
  align-items: start;
}

body.customer-portal .portal-account > .account-workspace {
  display: contents;
}

body.customer-portal .portal-order-history {
  min-width: 0;
  margin: 0;
  padding: clamp(22px, 2.8vw, 34px);
  overflow: hidden;
}

body.customer-portal .account-section__head,
body.customer-portal .portal-account-panel__head {
  margin: 0 0 18px;
  padding: 0 0 18px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid var(--portal-line);
}

body.customer-portal .portal-section-kicker {
  display: block;
  margin-bottom: 5px;
  color: var(--portal-red);
  font-size: 0.69rem;
  font-weight: 780;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

body.customer-portal :where(.account-section__head, .portal-account-panel__head) h2,
body.customer-portal .portal-account-panel__section > h2 {
  margin: 0;
  color: var(--portal-text);
  font-size: clamp(1.55rem, 2.2vw, 2.2rem);
  letter-spacing: -0.03em;
  line-height: 1.05;
}

body.customer-portal .account-section__counter {
  color: #b9b3b0;
  font-size: 0.67rem;
  font-weight: 750;
  letter-spacing: 0.07em;
  white-space: nowrap;
  text-transform: uppercase;
}

body.customer-portal .portal-order-ledger {
  min-width: 0;
  display: grid;
}

body.customer-portal .portal-order-ledger__labels,
body.customer-portal .portal-order-row {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(112px, 0.72fr) minmax(220px, 1.7fr) minmax(98px, 0.65fr) minmax(150px, 0.82fr);
  gap: 18px;
  align-items: center;
}

body.customer-portal .portal-order-ledger__labels {
  padding: 0 18px 12px;
  color: #918d8b;
  font-size: 0.67rem;
  font-weight: 720;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

body.customer-portal .portal-order-row {
  position: relative;
  min-height: 94px;
  padding: 16px 18px;
  border-top: 1px solid var(--portal-line);
}

body.customer-portal .portal-order-row:last-child {
  border-bottom: 1px solid var(--portal-line);
}

body.customer-portal .portal-order-row.is-active {
  border-left: 3px solid var(--portal-red);
  background: var(--portal-surface-soft);
}

body.customer-portal .portal-order-row__identity,
body.customer-portal .portal-order-row__status,
body.customer-portal .portal-order-row__total {
  min-width: 0;
  display: grid;
  align-content: center;
  gap: 3px;
}

body.customer-portal .portal-order-row__identity strong {
  font-family: var(--portal-display);
  font-size: 1.45rem;
  font-weight: 500;
}

body.customer-portal .portal-order-row__identity span,
body.customer-portal .portal-order-row__status strong,
body.customer-portal .portal-order-row__total strong {
  font-size: 0.88rem;
}

body.customer-portal .portal-order-row small {
  max-width: 100%;
  overflow: hidden;
  color: #96918f;
  font-size: 0.73rem;
  line-height: 1.3;
  text-overflow: ellipsis;
}

body.customer-portal .portal-order-row__status {
  position: relative;
  padding-left: 18px;
}

body.customer-portal .portal-status-dot {
  position: absolute;
  top: 4px;
  left: 0;
  width: 9px;
  height: 9px;
  border: 2px solid rgba(255, 255, 255, 0.13);
  border-radius: 50%;
  background: #666;
}

body.customer-portal .portal-order-row.is-active .portal-status-dot {
  border-color: rgba(207, 48, 47, 0.3);
  background: var(--portal-red);
  box-shadow: 0 0 0 5px rgba(207, 48, 47, 0.11);
}

body.customer-portal .portal-order-row__actions {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
}

body.customer-portal .portal-order-row__actions form {
  margin: 0;
}

body.customer-portal .portal-text-action {
  min-height: 38px !important;
  padding: 7px 10px !important;
  border: 0 !important;
  background: transparent !important;
  color: #e85a56 !important;
  font-size: 0.76rem;
  font-weight: 760;
}

body.customer-portal .portal-empty-state,
body.customer-portal .portal-empty-address {
  padding: clamp(22px, 4vw, 42px) 0;
  display: grid;
  justify-items: start;
  gap: 10px;
}

body.customer-portal .portal-empty-state p,
body.customer-portal .portal-empty-address p {
  margin: 0;
}

body.customer-portal .portal-account-panel {
  overflow: hidden;
  border: 1px solid var(--portal-line);
  border-radius: var(--portal-radius);
  background: var(--portal-surface);
}

body.customer-portal .portal-account-panel__section {
  padding: clamp(22px, 2.7vw, 32px);
  border-bottom: 1px solid var(--portal-line);
}

body.customer-portal .portal-account-panel__section:last-child {
  border-bottom: 0;
}

body.customer-portal .portal-address-summary {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 18px;
}

body.customer-portal .portal-address-summary > div {
  min-width: 0;
  display: grid;
  gap: 5px;
}

body.customer-portal .portal-address-summary strong {
  font-size: 1.05rem;
}

body.customer-portal .portal-address-summary span,
body.customer-portal .portal-address-summary small {
  color: var(--portal-muted);
}

body.customer-portal .portal-address-list {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--portal-line);
}

body.customer-portal :where(.portal-address-list, .portal-address-create) > summary {
  cursor: pointer;
  color: #e55652;
  font-size: 0.78rem;
  font-weight: 760;
  letter-spacing: 0.03em;
  list-style-position: inside;
}

body.customer-portal .portal-address-list .address-grid {
  margin-top: 14px;
}

body.customer-portal .portal-address-list .address-card {
  padding: 15px;
  border-radius: var(--portal-radius-small);
}

body.customer-portal .portal-account-actions {
  margin-top: 14px;
  display: grid;
}

body.customer-portal .portal-account-actions > a,
body.customer-portal .portal-account-actions > .portal-account-action > summary {
  min-width: 0;
  padding: 10px 0;
  display: grid;
  gap: 3px;
  border-bottom: 1px solid var(--portal-line);
  color: var(--portal-text);
  text-decoration: none;
}

body.customer-portal .portal-account-actions > :last-child {
  border-bottom: 0;
}

body.customer-portal .portal-account-actions > a:hover strong,
body.customer-portal .portal-account-actions > .portal-account-action > summary:hover strong {
  color: #ef5d59;
}

body.customer-portal .portal-account-actions strong {
  font-size: 0.92rem;
}

body.customer-portal .portal-account-actions span {
  color: #908b89;
  font-size: 0.76rem;
}

body.customer-portal .portal-address-create {
  scroll-margin-top: 110px;
  border-bottom: 1px solid var(--portal-line);
  background: transparent;
}

body.customer-portal .portal-address-create > summary {
  padding: 10px 0;
  color: var(--portal-text);
  list-style-position: inside;
}

body.customer-portal .portal-address-create[open] > summary {
  border-bottom: 1px solid var(--portal-line);
}

body.customer-portal .portal-address-create > summary > span {
  margin-left: 5px;
  display: inline-grid;
  gap: 3px;
  vertical-align: top;
}

body.customer-portal .portal-address-create > summary small {
  color: #908b89;
  font-size: 0.76rem;
  font-weight: 400;
  letter-spacing: 0;
}

body.customer-portal .portal-address-create .account-address-form {
  padding: 16px 0 4px;
  gap: 13px;
}

body.customer-portal .portal-address-create .account-address-form label {
  display: grid;
  gap: 7px;
  font-size: 0.76rem;
}

body.customer-portal .portal-service-strip {
  width: min(calc(100% - 56px), 1400px);
  margin: 16px auto 0;
  padding: 22px 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
  align-items: center;
  gap: 28px;
  border-top: 1px solid var(--portal-line);
  border-bottom: 1px solid var(--portal-line);
}

body.customer-portal .portal-service-strip > div {
  min-width: 0;
  display: grid;
  gap: 3px;
}

body.customer-portal .portal-service-strip strong {
  font-size: 0.82rem;
}

body.customer-portal .portal-service-strip span {
  overflow: hidden;
  color: #8e8987;
  font-size: 0.73rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Authentication and address forms -------------------------------------- */

body.customer-portal .portal-auth.auth-shell.auth-shell--immersive {
  width: min(100%, 1120px);
  min-height: 600px;
  margin: clamp(10px, 3vw, 38px) auto;
  padding: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(350px, 0.94fr);
  grid-template-areas: "form visual";
  align-items: stretch;
  overflow: hidden;
  border: 1px solid var(--portal-line);
  border-radius: var(--portal-radius);
  background: var(--portal-surface);
  box-shadow: var(--portal-shadow);
}

body.app-body.theme-pizza_solas.customer-portal.storefront-shell
  .storefront-surface--login,
body.app-body.theme-pizza_solas.customer-portal.storefront-shell
  .storefront-surface--register {
  display: grid;
  align-content: center;
}

body.customer-portal .portal-auth .auth-card {
  grid-area: form;
  width: auto;
  min-width: 0;
  max-width: none;
  margin: 0;
  padding: clamp(34px, 5vw, 70px);
  display: grid;
  align-content: center;
  gap: 24px;
  border: 0;
  border-right: 1px solid var(--portal-line);
  border-radius: 0;
  background: var(--portal-surface);
  box-shadow: none;
}

body.customer-portal .portal-auth .auth-card__head {
  display: grid;
  gap: 10px;
}

body.customer-portal .portal-auth .auth-kicker {
  color: var(--portal-red);
  font-size: 0.7rem;
  font-weight: 780;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

body.customer-portal .portal-auth .auth-card__head h1 {
  max-width: 12ch;
  margin: 0;
  color: var(--portal-text);
  font-family: var(--portal-display);
  font-size: clamp(2.75rem, 4.7vw, 4.6rem);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 0.96;
}

body.customer-portal .portal-auth .auth-card__head p {
  max-width: 48ch;
  margin: 0;
  color: var(--portal-muted);
  font-size: 0.94rem;
  line-height: 1.55;
}

body.customer-portal .portal-auth .auth-card form {
  width: 100%;
  display: grid;
  gap: 15px;
}

body.customer-portal .portal-auth .auth-card label {
  display: grid;
  gap: 7px;
  color: var(--portal-text);
  font-size: 0.76rem;
  font-weight: 720;
}

body.customer-portal .portal-auth .auth-card form .button {
  width: 100%;
  min-height: 52px;
  margin-top: 3px;
  justify-content: center;
}

body.customer-portal .portal-auth .auth-card__switch {
  margin: 0;
  color: var(--portal-muted);
  font-size: 0.84rem;
}

body.customer-portal .portal-auth .auth-card__switch a {
  color: #ef5d59;
  font-weight: 760;
}

body.customer-portal .portal-auth .auth-visual {
  position: relative;
  grid-area: visual;
  min-width: 0;
  min-height: 600px;
  overflow: hidden;
  background: #120d0e;
}

body.customer-portal .portal-auth .auth-visual > img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
  opacity: 0.86;
}

body.customer-portal .portal-auth .auth-visual__copy {
  position: absolute;
  right: 22px;
  bottom: 22px;
  left: 22px;
  padding: 22px;
  display: grid;
  gap: 8px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: var(--portal-radius-small);
  background: rgba(7, 8, 8, 0.9);
  color: var(--portal-text);
}

body.customer-portal .portal-auth .auth-visual__copy strong {
  max-width: 13ch;
  color: var(--portal-text);
  font-family: var(--portal-display);
  font-size: clamp(2rem, 3.3vw, 3.2rem);
  font-weight: 500;
  line-height: 0.98;
}

body.customer-portal .portal-auth .auth-visual__copy p {
  max-width: 40ch;
  margin: 0;
  color: #cbc5c1;
  line-height: 1.45;
}

body.customer-portal .portal-auth--address {
  width: min(100%, 1240px) !important;
  grid-template-columns: minmax(0, 0.88fr) minmax(430px, 1.12fr) !important;
}

body.customer-portal .portal-auth--address .auth-card {
  padding-block: clamp(28px, 3vw, 46px);
}

body.customer-portal .portal-auth--address .auth-card__head h1 {
  font-size: clamp(2.5rem, 3.8vw, 3.9rem);
}

/* Order detail ----------------------------------------------------------- */

body.customer-portal .storefront-surface--order-detail,
body.customer-portal .storefront-surface--orders-multi-confirm {
  padding: clamp(24px, 3vw, 44px);
}

body.customer-portal .portal-order-head {
  position: relative;
  isolation: isolate;
  min-height: 252px;
  margin: 0 auto 18px;
  padding: clamp(30px, 3.5vw, 48px) clamp(270px, 22vw, 360px) clamp(30px, 3.5vw, 48px) clamp(26px, 3.4vw, 48px);
  overflow: hidden;
  border-color: var(--portal-line-strong);
  border-left: 3px solid var(--portal-red);
  border-radius: var(--portal-radius);
  background: #140c0d;
  box-shadow: none;
}

body.customer-portal .portal-order-head__media {
  position: absolute;
  z-index: -1;
  top: 0;
  right: 0;
  width: clamp(250px, 21vw, 360px);
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.8;
  border-left: 1px solid rgba(255, 255, 255, 0.08);
}

body.customer-portal .portal-order-head .order-head-card__top,
body.customer-portal .portal-order-head .order-head-card__highlights,
body.customer-portal .portal-order-head .order-head-card__meta,
body.customer-portal .portal-order-head .order-status-hint {
  position: relative;
  z-index: 1;
}

body.customer-portal .portal-order-head .order-head-card__eyebrow {
  color: #e85a56;
}

body.customer-portal .portal-order-head h1 {
  margin: 0;
  color: var(--portal-text);
  font-family: var(--portal-display);
  font-size: clamp(3rem, 5.2vw, 5.2rem);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 0.96;
}

body.customer-portal .portal-order-head .badge {
  border-color: var(--portal-red);
  background: var(--portal-red-soft);
  color: #f3b4b2;
}

body.customer-portal .portal-order-head .order-head-card__highlights {
  margin-top: 22px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

body.customer-portal .portal-order-head .order-kpi {
  min-height: 72px;
  padding: 12px;
  border: 1px solid var(--portal-line-strong);
  border-radius: var(--portal-radius-small);
  background: rgba(10, 10, 11, 0.74);
}

body.customer-portal .portal-order-head .order-head-card__meta {
  margin-top: 14px;
}

body.customer-portal .portal-order-head .order-status-hint {
  margin-top: 14px;
  border-color: var(--portal-line-strong);
  background: rgba(10, 10, 11, 0.78);
  color: var(--portal-text);
}

body.customer-portal .portal-order-head--multi {
  padding-right: clamp(270px, 22vw, 360px);
}

body.customer-portal .order-detail-layout {
  width: 100%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.72fr) minmax(310px, 0.72fr);
  grid-template-areas:
    "status location"
    "ticket notices"
    "ticket review";
  gap: 16px;
  align-items: start;
}

body.customer-portal .order-detail-layout > .card {
  margin: 0;
  padding: clamp(24px, 3vw, 36px);
}

body.customer-portal .order-detail-layout__status {
  grid-area: status;
}

body.customer-portal .order-detail-layout__location {
  grid-area: location;
}

body.customer-portal .order-detail-layout__ticket {
  grid-area: ticket;
}

body.customer-portal .order-detail-layout__notices {
  grid-area: notices;
}

body.customer-portal .order-detail-layout__review {
  grid-area: review;
}

body.customer-portal .order-detail-layout h2 {
  margin-top: 0;
  color: var(--portal-text);
  font-size: clamp(1.45rem, 2.1vw, 2rem);
  letter-spacing: -0.025em;
}

body.customer-portal .order-tracker {
  margin-top: 28px;
}

body.customer-portal .tracker-step::before {
  background: var(--portal-line-strong);
}

body.customer-portal .tracker-step.is-complete::before,
body.customer-portal .tracker-step.is-active::before {
  background: var(--portal-red);
}

body.customer-portal .tracker-dot {
  border-color: var(--portal-line-strong);
  background: var(--portal-surface);
}

body.customer-portal .tracker-step.is-complete .tracker-dot,
body.customer-portal .tracker-step.is-active .tracker-dot {
  border-color: var(--portal-red);
  background: var(--portal-red);
}

body.customer-portal .tracker-step.is-active .tracker-dot {
  box-shadow: 0 0 0 6px rgba(207, 48, 47, 0.14), 0 0 22px rgba(207, 48, 47, 0.32);
}

body.customer-portal .order-ticket__item,
body.customer-portal .order-ticket__totals {
  border-color: var(--portal-line);
}

body.customer-portal .order-location-card__line,
body.customer-portal .order-ticket__item {
  background: #0a0b0c;
}

/* Responsive ------------------------------------------------------------- */

@media (min-width: 1900px) {
  body.customer-portal .portal-account-workspace,
  body.customer-portal .portal-loyalty-slot,
  body.customer-portal .portal-service-strip {
    width: min(calc(100% - 96px), 1760px);
  }

  body.customer-portal .portal-live-band {
    min-height: 250px;
    padding-left: max(48px, calc((100vw - 1760px) / 2));
    grid-template-columns: minmax(320px, 0.8fr) minmax(650px, 2fr) minmax(190px, 0.48fr);
  }

  body.customer-portal .portal-order-ledger__labels,
  body.customer-portal .portal-order-row {
    grid-template-columns: minmax(150px, 0.72fr) minmax(300px, 1.7fr) minmax(120px, 0.65fr) minmax(180px, 0.82fr);
  }
}

@media (max-width: 1180px) {
  body.customer-portal .portal-live-band {
    padding-right: 34px;
    grid-template-columns: minmax(230px, 0.72fr) minmax(430px, 1.7fr) minmax(140px, 0.48fr);
  }

  body.customer-portal .portal-live-band .account-header__media {
    display: none;
  }

  body.customer-portal .portal-account-workspace {
    grid-template-columns: minmax(0, 1.45fr) minmax(310px, 0.8fr);
  }

  body.customer-portal .portal-order-ledger__labels,
  body.customer-portal .portal-order-row {
    grid-template-columns: minmax(98px, 0.65fr) minmax(190px, 1.45fr) minmax(88px, 0.58fr) minmax(128px, 0.75fr);
    gap: 12px;
  }
}

@media (max-width: 980px) {
  body.app-body.customer-portal.storefront-shell .site-header {
    min-height: 72px;
    grid-template-columns: minmax(220px, 0.8fr) minmax(0, 1.8fr);
  }

  body.app-body.customer-portal.storefront-shell .site-header .brand-logo {
    width: 48px;
    height: 48px;
    flex-basis: 48px;
  }

  body.customer-portal .site-header .brand-tagline,
  body.customer-portal .site-header .nav-account .ghost-button {
    display: none;
  }

  body.customer-portal .portal-live-band {
    padding: 28px;
    grid-template-columns: minmax(210px, 0.58fr) minmax(420px, 1.6fr);
  }

  body.customer-portal .portal-live-band__eta {
    grid-column: 1 / -1;
    padding: 16px 0 0;
    grid-template-columns: auto auto 1fr;
    align-items: center;
    border-top: 1px solid var(--portal-line-strong);
    border-left: 0;
  }

  body.customer-portal .portal-live-band__eta a {
    justify-self: end;
  }

  body.customer-portal .portal-account-workspace,
  body.customer-portal .order-detail-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  body.customer-portal .order-detail-layout {
    grid-template-areas:
      "status"
      "location"
      "ticket"
      "notices"
      "review";
  }

  body.customer-portal .portal-account-panel {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.customer-portal .portal-address-create {
    grid-column: 1 / -1;
  }

  body.customer-portal .portal-service-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.customer-portal .portal-service-strip > .ghost-button {
    justify-self: start;
  }

  body.customer-portal .portal-order-head {
    padding-right: clamp(230px, 27vw, 300px);
  }
}

@media (max-width: 820px) {
  body.customer-portal {
    --portal-radius: 12px;
  }

  body.app-body.customer-portal.storefront-shell .site-header {
    min-height: 60px;
    padding: 7px 12px;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: "brand menu";
    gap: 10px;
  }

  body.app-body.customer-portal.storefront-shell .site-header .brand-logo {
    width: 42px;
    height: 42px;
    flex-basis: 42px;
    border-radius: 10px;
  }

  body.customer-portal .site-header .brand-name {
    font-size: 1rem;
  }

  body.customer-portal .site-header .brand-tagline {
    display: -webkit-box;
    max-width: 27ch;
    font-size: 0.66rem;
    white-space: normal;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
  }

  body.customer-portal .site-header .customer-nav-toggle {
    display: inline-flex;
  }

  body.customer-portal .site-header .main-nav {
    display: grid;
  }

  body.customer-portal .storefront-surface:not(.storefront-surface--index) {
    min-height: calc(100svh - 60px);
    margin-top: 0;
    padding: 18px 12px calc(112px + env(safe-area-inset-bottom)) !important;
  }

  body.customer-portal .storefront-surface--mydemo {
    padding: 0 0 calc(112px + env(safe-area-inset-bottom)) !important;
  }

  body.customer-portal .portal-live-band {
    min-height: 0;
    padding: 22px 18px;
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }

  body.customer-portal .portal-live-band .account-header__media {
    display: block;
    width: 112px;
    height: 112px;
    opacity: 0.55;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    border-left: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom-left-radius: 56px;
  }

  body.customer-portal .portal-live-band__intro {
    min-height: 96px;
    padding-right: 90px;
    align-content: center;
  }

  body.customer-portal .portal-live-band__intro p {
    font-size: 0.9rem;
  }

  body.customer-portal .portal-live-band__intro h1 {
    font-size: clamp(2.35rem, 11vw, 3.25rem);
  }

  body.customer-portal .portal-live-band__intro > span {
    max-width: 25ch;
    font-size: 0.84rem;
  }

  body.customer-portal .portal-live-band__progress {
    margin-inline: -18px;
    padding: 4px 18px 8px;
    display: flex;
    gap: 0;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scrollbar-width: none;
  }

  body.customer-portal .portal-live-band__progress::-webkit-scrollbar {
    display: none;
  }

  body.customer-portal .portal-progress-step {
    flex: 0 0 94px;
  }

  body.customer-portal .portal-live-band__eta {
    grid-column: auto;
    padding: 14px 0 0;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 5px 14px;
  }

  body.customer-portal .portal-live-band__eta > span {
    align-self: end;
  }

  body.customer-portal .portal-live-band__eta strong {
    grid-row: 1 / 3;
    grid-column: 2;
    align-self: center;
    font-size: 2rem;
  }

  body.customer-portal .portal-live-band__eta a {
    justify-self: start;
  }

  body.customer-portal .portal-live-band--idle {
    padding-bottom: 24px;
  }

  body.customer-portal .portal-live-band__idle-action {
    justify-items: stretch;
  }

  body.customer-portal .portal-loyalty-slot,
  body.customer-portal .portal-account-workspace,
  body.customer-portal .portal-service-strip {
    width: calc(100% - 24px);
    margin-top: 12px;
  }

  body.customer-portal .portal-account-workspace {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }

  body.customer-portal .portal-order-history {
    padding: 20px;
  }

  body.customer-portal .account-section__head,
  body.customer-portal .portal-account-panel__head {
    align-items: start;
  }

  body.customer-portal .portal-order-ledger__labels {
    display: none;
  }

  body.customer-portal .portal-order-row {
    min-height: 0;
    padding: 18px 0;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px 18px;
    border-left: 0;
  }

  body.customer-portal .portal-order-row.is-active {
    margin-inline: -10px;
    padding-inline: 12px;
    border-left: 3px solid var(--portal-red);
  }

  body.customer-portal .portal-order-row__status {
    align-self: start;
  }

  body.customer-portal .portal-order-row__total {
    grid-column: 1;
  }

  body.customer-portal .portal-order-row__actions {
    grid-column: 2;
    justify-content: flex-end;
  }

  body.customer-portal .portal-account-panel {
    grid-template-columns: minmax(0, 1fr);
  }

  body.customer-portal .portal-address-create {
    grid-column: auto;
  }

  body.customer-portal .portal-service-strip {
    padding: 20px 0;
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }

  body.customer-portal .portal-service-strip > .ghost-button {
    width: 100%;
    justify-content: center;
  }

  body.customer-portal .portal-auth.auth-shell.auth-shell--immersive,
  body.customer-portal .portal-auth--address {
    width: 100% !important;
    min-height: 0;
    margin: 0 auto;
    grid-template-columns: minmax(0, 1fr) !important;
    grid-template-areas:
      "form"
      "visual";
    overflow: hidden;
  }

  body.customer-portal .portal-auth .auth-card {
    min-width: 0;
    padding: 28px 20px 30px;
    border-right: 0;
    border-bottom: 1px solid var(--portal-line);
  }

  body.customer-portal .portal-auth .auth-card__head h1,
  body.customer-portal .portal-auth--address .auth-card__head h1 {
    max-width: 100%;
    font-size: clamp(2.65rem, 12vw, 3.7rem);
  }

  body.customer-portal .portal-auth .auth-visual {
    min-height: 190px;
    max-height: 220px;
  }

  body.customer-portal .portal-auth .auth-visual__copy {
    right: 14px;
    bottom: 14px;
    left: 14px;
    padding: 15px;
  }

  body.customer-portal .portal-auth .auth-visual__copy strong {
    max-width: 22ch;
    font-size: 1.8rem;
  }

  body.customer-portal .portal-auth .auth-visual__copy p {
    display: none;
  }

  body.customer-portal .portal-order-head {
    min-height: 0;
    padding: 26px 18px;
  }

  body.customer-portal .portal-order-head__media {
    z-index: -2;
    width: 116px;
    height: 116px;
    opacity: 0.46;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    border-left: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom-left-radius: 58px;
  }

  body.customer-portal .portal-order-head .order-head-card__title-block {
    padding-right: 80px;
  }

  body.customer-portal .portal-order-head h1 {
    font-size: clamp(2.7rem, 13vw, 4rem);
  }

  body.customer-portal .portal-order-head .order-head-card__top {
    align-items: start;
    flex-direction: column;
    gap: 14px;
  }

  body.customer-portal .portal-order-head .order-head-card__highlights {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.customer-portal .order-detail-layout {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "status"
      "location"
      "ticket"
      "notices"
      "review";
  }

  body.customer-portal .order-detail-layout > .card {
    padding: 20px;
  }

  body.customer-portal .order-tracker {
    min-width: 620px;
  }

  body.customer-portal .order-detail-layout__status {
    overflow-x: auto;
  }

  body.customer-portal .order-detail-layout__status h2,
  body.customer-portal .order-detail-layout__status .order-tracker__live {
    position: sticky;
    left: 0;
    width: calc(100vw - 66px);
  }
}

@media (max-width: 480px) {
  body.customer-portal .storefront-surface:not(.storefront-surface--index) {
    padding-inline: 10px !important;
  }

  body.customer-portal .storefront-surface--mydemo {
    padding-inline: 0 !important;
  }

  body.customer-portal .portal-order-history,
  body.customer-portal .portal-account-panel__section,
  body.customer-portal .portal-address-create .account-address-form {
    padding-right: 16px;
    padding-left: 16px;
  }

  body.customer-portal .portal-address-summary {
    display: grid;
  }

  body.customer-portal .portal-address-summary .ghost-button {
    width: max-content;
  }

  body.customer-portal .portal-auth .auth-card {
    padding-right: 16px;
    padding-left: 16px;
  }

  body.customer-portal .portal-auth .auth-card__head h1,
  body.customer-portal .portal-auth--address .auth-card__head h1 {
    font-size: clamp(2.4rem, 12vw, 3.2rem);
  }

  body.customer-portal .portal-auth--address .row {
    grid-template-columns: minmax(0, 1fr);
  }

  body.customer-portal .portal-order-head .order-head-card__highlights {
    grid-template-columns: minmax(0, 1fr);
  }

  body.customer-portal .portal-order-row__status small {
    max-width: 18ch;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.customer-portal *,
  body.customer-portal *::before,
  body.customer-portal *::after {
    scroll-behavior: auto !important;
  }
}
