:root {
  color-scheme: dark;
  --portal-accent: #8ff1df;
  --portal-accent-hover: #b0f7e9;
  --portal-button-text: #101513;
  --portal-ink: rgba(245, 247, 250, 0.96);
  --portal-muted: rgba(234, 239, 245, 0.66);
  --portal-border: rgba(255, 255, 255, 0.075);
  --portal-bg: #0c0b0d;
  --portal-card: #161215;
  --portal-card-soft: rgba(255, 255, 255, 0.03);
}

* {
  box-sizing: border-box;
}

body.order-portal-page {
  min-height: 100vh;
  margin: 0;
  color: var(--portal-ink);
  background: var(--portal-bg);
  font-family: Manrope, Arial, sans-serif;
}

body.order-portal-page.is-login {
  background: #09090a;
}

body.order-portal-page.is-login .order-portal-shell {
  width: min(1210px, calc(100% - 2rem));
}

.order-portal-shell {
  width: min(1040px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 1rem 0 4rem;
}

.order-portal-header,
.order-portal-line,
.order-portal-ticket,
.order-portal-ticket > div {
  display: flex;
  align-items: center;
}

.order-portal-ticket > .order-portal-ticket-actions {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 0.45rem;
  width: 100%;
}

.order-portal-ticket-qr {
  display: block;
  width: 8.5rem;
  height: 8.5rem;
  padding: 0.45rem;
  border-radius: 10px;
  background: #ffffff;
  object-fit: contain;
}

.order-portal-ticket-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 0.45rem;
}

.order-portal-ticket-meta {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.65rem;
}

.order-portal-ticket-actions .button,
.order-portal-download-actions .button {
  border-color: var(--portal-border);
  border-radius: 7px;
  background: var(--portal-card-soft);
  color: var(--portal-ink);
  font-weight: 800;
}

.order-portal-header {
  justify-content: space-between;
  padding: 0.75rem 0;
  color: var(--portal-muted);
  font-weight: 700;
}

.order-portal-header-actions,
.order-portal-header-actions form {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.order-portal-navigation > summary {
  display: none;
}

.order-portal-navigation > summary,
.order-portal-header-actions {
  border-radius: 7px;
}

.order-portal-header-actions > a,
.order-portal-logout {
  color: var(--portal-muted);
  text-decoration: none;
  transition: color 140ms ease;
}

.order-portal-header-actions > a:hover,
.order-portal-header-actions > a:focus-visible,
.order-portal-logout:hover,
.order-portal-logout:focus-visible {
  color: var(--portal-ink);
}

.order-portal-header-actions > a[aria-current="page"] {
  color: var(--portal-accent);
}

.order-portal-logout {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--portal-muted);
  font: inherit;
  cursor: pointer;
}

.order-portal-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--portal-ink);
  font-weight: 850;
  text-decoration: none;
}

.order-portal-brand img {
  display: block;
  width: 2rem;
  height: 2rem;
  object-fit: contain;
}

.order-portal-staff-preview {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 1rem;
  border: 1px solid color-mix(in srgb, var(--portal-accent) 55%, var(--portal-border));
  border-radius: 8px;
  background: color-mix(in srgb, var(--portal-accent) 10%, var(--portal-card));
  color: var(--portal-ink);
  font-size: 0.82rem;
}
.order-portal-staff-preview span { display: flex; align-items: center; gap: 0.45rem; }
.order-portal-staff-preview i { color: var(--portal-accent); }
.order-portal-staff-preview strong { color: var(--portal-ink); }
.order-portal-staff-preview button {
  padding: 0.45rem 0.65rem;
  border: 1px solid var(--portal-border);
  border-radius: 6px;
  background: var(--portal-card);
  color: var(--portal-ink);
  cursor: pointer;
  font: inherit;
  font-weight: 800;
}

.order-portal-card,
.order-portal-hero {
  border: 1px solid var(--portal-border);
  border-radius: 9px;
  background: var(--portal-card);
  box-shadow: none;
}

.order-portal-card {
  padding: clamp(1.2rem, 4vw, 2rem);
}

.order-portal-login {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 2rem;
  min-height: calc(100vh - 8rem);
  padding: clamp(2.5rem, 8vh, 6rem) 0;
}

.order-portal-login-ticket {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 1px minmax(24rem, 1fr);
  width: 100%;
  min-height: 33rem;
  overflow: hidden;
  border: 1px solid rgba(218, 188, 190, 0.32);
  border-top: 0;
  border-bottom: 0;
  border-left: 0;
  border-radius: 7px;
  background:
    linear-gradient(rgba(218, 188, 190, 0.32), rgba(218, 188, 190, 0.32)) left top / calc(50% - 1.35rem) 1px no-repeat,
    linear-gradient(rgba(218, 188, 190, 0.32), rgba(218, 188, 190, 0.32)) right top / calc(50% - 1.35rem) 1px no-repeat,
    linear-gradient(rgba(218, 188, 190, 0.32), rgba(218, 188, 190, 0.32)) left bottom / calc(50% - 1.35rem) 1px no-repeat,
    linear-gradient(rgba(218, 188, 190, 0.32), rgba(218, 188, 190, 0.32)) right bottom / calc(50% - 1.35rem) 1px no-repeat,
    #151214;
}

.order-portal-login-ticket::before,
.order-portal-login-ticket::after {
  position: absolute;
  left: 50%;
  z-index: 3;
  width: 2.7rem;
  height: 2.7rem;
  border: 0;
  border-radius: 50%;
  background: var(--portal-bg);
  box-shadow: 0 0 0 1px var(--portal-bg);
  content: '';
  transform: translateX(-50%);
}

.order-portal-login-ticket::before { top: -1.45rem; }
.order-portal-login-ticket::after { bottom: -1.45rem; }

.order-portal-login-intro,
.order-portal-login-card {
  position: relative;
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: flex-start;
  padding: clamp(2.6rem, 4vw, 3.6rem);
}

.order-portal-login-intro {
  overflow: hidden;
  background:
    linear-gradient(rgba(218, 188, 190, 0.32), rgba(218, 188, 190, 0.32)) left top / 1px calc(50% - 2.5rem) no-repeat,
    linear-gradient(rgba(218, 188, 190, 0.32), rgba(218, 188, 190, 0.32)) left bottom / 1px calc(50% - 2.5rem) no-repeat,
    linear-gradient(135deg, rgba(91, 48, 51, 0.4), rgba(30, 20, 23, 0.16)),
    repeating-linear-gradient(118deg, transparent 0 38px, rgba(255, 255, 255, 0.018) 39px 40px);
}

.order-portal-login-intro::before {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 5.5rem;
  border-right: 1px solid rgba(218, 188, 190, 0.18);
  content: '';
}

.order-portal-login-intro::after {
  position: absolute;
  top: 50%;
  left: -2.5rem;
  z-index: 2;
  width: 5rem;
  height: 5rem;
  border: 0;
  border-radius: 50%;
  background: var(--portal-bg);
  box-shadow: 0 0 0 1px var(--portal-bg);
  content: '';
  transform: translateY(-50%);
}

.order-portal-ticket-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.35rem 2rem;
  margin: 0 0 3rem 4.5rem;
}

.order-portal-ticket-facts div { min-width: 0; }

.order-portal-ticket-facts dt {
  margin-bottom: 0.3rem;
  color: var(--portal-accent);
  font-size: 0.67rem;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.order-portal-ticket-facts dd {
  margin: 0;
  overflow-wrap: anywhere;
  color: var(--portal-ink);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.9rem;
}

.order-portal-ticket-number {
  position: absolute;
  top: 2.2rem;
  left: 1.45rem;
  color: rgba(218, 188, 190, 0.22);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 1.65rem;
  letter-spacing: 0.18em;
  transform: rotate(-90deg) translateX(-100%);
  transform-origin: left top;
  white-space: nowrap;
}

.order-portal-login-intro h1 {
  position: relative;
  z-index: 1;
  max-width: 11.5ch;
  margin: 0 0 0 4.5rem;
  color: var(--portal-ink);
  font-size: clamp(3rem, 4.6vw, 3.75rem);
  font-weight: 850;
  line-height: 1.04;
}

.order-portal-ticket-graphic {
  position: absolute;
  bottom: 2.2rem;
  left: -1.4rem;
  width: 9rem;
  height: 14rem;
  opacity: 0.16;
  background: #b9979b;
  clip-path: polygon(0 0, 100% 22%, 35% 40%, 96% 59%, 28% 75%, 100% 100%, 0 100%);
}

.order-portal-ticket-mark {
  display: grid;
  grid-template-columns: repeat(3, 0.35rem);
  gap: 0.32rem;
  margin: 2.2rem 0 0 4.5rem;
}

.order-portal-ticket-mark span {
  width: 0.35rem;
  height: 0.35rem;
  border-radius: 50%;
  background: rgba(143, 241, 223, 0.45);
}

.order-portal-login-separator {
  width: 1px;
  margin: 1.7rem 0;
  background: repeating-linear-gradient(to bottom, rgba(218, 188, 190, 0.38) 0 7px, transparent 7px 14px);
}

.order-portal-login-card h2 {
  margin: 0.35rem 0 0.65rem;
  color: var(--portal-ink);
  font-size: clamp(1.7rem, 3vw, 2.25rem);
  font-weight: 850;
  line-height: 1.12;
}

.order-portal-login-card { padding-top: 3.6rem; }

.order-portal-login-card > p {
  margin: 0;
  color: var(--portal-muted);
  line-height: 1.6;
}

.order-portal-form {
  margin-top: 1.5rem;
}

.order-portal-field-help,
.order-portal-login-security {
  color: var(--portal-muted);
  font-size: 0.72rem;
  line-height: 1.45;
}

.order-portal-field-help {
  margin: 0.38rem 0 0;
}

.order-portal-login-security {
  margin: 0.75rem 0 0;
  text-align: center;
}

.order-portal-login-security i {
  margin-right: 0.3rem;
  color: var(--portal-accent);
}

.order-portal-login-services {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin: 0;
  color: var(--portal-muted);
  font-size: 0.82rem;
}

.order-portal-login-services i {
  width: 0.25rem;
  height: 0.25rem;
  border-radius: 50%;
  background: var(--portal-accent);
}

.order-portal-page .button.is-primary {
  min-height: 3rem;
  border-color: var(--portal-accent);
  border-radius: 7px;
  background: var(--portal-accent);
  color: var(--portal-button-text);
  font-weight: 800;
}

.order-portal-page .button.is-primary:hover,
.order-portal-page .button.is-primary:focus-visible {
  border-color: var(--portal-accent-hover);
  background: var(--portal-accent-hover);
  color: var(--portal-button-text);
}

.order-portal-page .input {
  min-height: 3rem;
  border-color: var(--portal-border);
  border-radius: 10px;
  background: var(--portal-card-soft);
  color: var(--portal-ink);
  box-shadow: none;
}

.order-portal-page .select,
.order-portal-page .select select {
  width: 100%;
}

.order-portal-page .select select {
  min-height: 2.75rem;
  border-color: var(--portal-border);
  border-radius: 7px;
  background: #211c20;
  color: var(--portal-ink);
  box-shadow: none;
}

.order-portal-page .select:not(.is-multiple):not(.is-loading)::after {
  border-color: var(--portal-accent);
}

.order-portal-page .input::placeholder {
  color: var(--portal-muted);
  opacity: 0.72;
}

.order-portal-page .label {
  color: var(--portal-ink);
}

.order-portal-kicker {
  color: var(--portal-accent);
  font-size: 0.75rem;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.order-portal-hero {
  margin-bottom: 1rem;
  padding: clamp(1.5rem, 5vw, 3rem);
}

.order-portal-hero.has-event-image {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(180px, 34%);
  gap: clamp(1.25rem, 4vw, 2.5rem);
  overflow: hidden;
  padding: 0;
}

.order-portal-hero-copy {
  align-self: center;
}

.order-portal-hero.has-event-image .order-portal-hero-copy {
  padding: clamp(1.5rem, 5vw, 3rem) 0 clamp(1.5rem, 5vw, 3rem) clamp(1.5rem, 5vw, 3rem);
}

.order-portal-hero-media {
  min-height: 16rem;
}

.order-portal-hero-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.order-portal-hero p,
.order-portal-card p {
  color: var(--portal-muted);
}

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

.order-portal-card h2 {
  margin: 0 0 1rem;
  font-size: 1.25rem;
  font-weight: 850;
  color: var(--portal-ink);
}

.order-portal-line {
  justify-content: space-between;
  gap: 1rem;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--portal-border);
}

.order-portal-line strong,
.order-portal-ticket strong,
.order-portal-order strong {
  color: var(--portal-ink);
}

.order-portal-line.is-total {
  margin-top: 0.5rem;
  border-bottom: 0;
  font-size: 1.12rem;
}

.order-portal-ticket {
  display: grid;
  grid-template-columns: 1fr;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--portal-border);
}

.order-portal-ticket-edit {
  grid-column: 1 / -1;
  width: 100%;
}

.order-portal-ticket-edit details {
  margin-top: 0.45rem;
  border-top: 1px solid var(--portal-border);
  padding-top: 0.75rem;
}

.order-portal-ticket-edit summary {
  color: var(--portal-accent);
  cursor: pointer;
  font-size: 0.86rem;
  font-weight: 800;
  list-style-position: inside;
}

.order-portal-ticket-edit summary i {
  margin-right: 0.35rem;
}

.order-portal-attendee-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
  margin-top: 1rem;
  padding: 1rem;
  border: 1px solid var(--portal-border);
  border-radius: 12px;
  background: var(--portal-card-soft);
}

.order-portal-attendee-form .field {
  margin: 0;
}

.order-portal-attendee-form .field:nth-of-type(3),
.order-portal-attendee-form .button,
.order-portal-edit-deadline {
  grid-column: 1 / -1;
}

.order-portal-attendee-form .label span {
  color: var(--portal-muted);
  font-size: 0.78rem;
  font-weight: 600;
}

.order-portal-attendee-form .button {
  justify-self: start;
}

.order-portal-edit-deadline,
.order-portal-edit-locked {
  margin: 0;
  color: var(--portal-muted);
  font-size: 0.78rem;
}

.order-portal-ticket > div {
  min-width: 0;
  flex-direction: column;
  align-items: flex-start;
}

.order-portal-ticket span {
  color: var(--portal-muted);
  font-size: 0.85rem;
}

.order-portal-ticket code {
  max-width: 100%;
  overflow-wrap: anywhere;
  text-align: left;
}

.order-portal-next {
  margin-top: 1rem;
}

.order-portal-wallet,
.order-portal-readonly-note {
  margin-top: 1rem;
}

.order-portal-grid.is-single {
  grid-template-columns: 1fr;
}

.order-portal-addon-form {
  display: grid;
  gap: 1rem;
  margin-top: 1.25rem;
}

.order-portal-addon-list {
  display: grid;
  gap: 0.7rem;
}

.order-portal-addon-option {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 0.9rem;
  padding: 1rem;
  border: 1px solid var(--portal-border);
  border-radius: 12px;
  background: var(--portal-card-soft);
  cursor: pointer;
  transition: border-color 160ms ease, transform 160ms ease;
}

.order-portal-addon-option:has(.order-portal-addon-image) {
  grid-template-columns: 5.5rem minmax(0, 1fr) auto auto;
}

.order-portal-addon-image-button {
  position: relative;
  display: block;
  width: 5.5rem;
  height: 5.5rem;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--portal-border);
  border-radius: 7px;
  background: transparent;
  cursor: zoom-in;
  grid-column: 1;
  grid-row: 1 / 3;
}

.order-portal-addon-image-button > i {
  position: absolute;
  right: 0.35rem;
  bottom: 0.35rem;
  display: grid;
  width: 1.6rem;
  height: 1.6rem;
  place-items: center;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.72);
  color: #fff;
  font-size: 0.72rem;
}

.order-portal-addon-image {
  width: 5.5rem;
  height: 5.5rem;
  border-radius: 6px;
  object-fit: cover;
}

.order-portal-lightbox {
  width: min(900px, calc(100% - 2rem));
  height: min(760px, calc(100% - 2rem));
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--portal-border);
  border-radius: 9px;
  background: #111012;
  color: var(--portal-ink);
}

.order-portal-lightbox::backdrop { background: rgba(0, 0, 0, 0.86); }
.order-portal-lightbox-toolbar {
  display: flex;
  min-height: 3.5rem;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.65rem 0.8rem 0.65rem 1rem;
  border-bottom: 1px solid var(--portal-border);
  font-weight: 800;
}
.order-portal-lightbox-toolbar > div { display: flex; gap: 0.35rem; }
.order-portal-lightbox-toolbar button {
  display: grid;
  width: 2.5rem;
  height: 2.5rem;
  place-items: center;
  border: 1px solid var(--portal-border);
  border-radius: 6px;
  background: var(--portal-card-soft);
  color: var(--portal-ink);
  cursor: pointer;
}
.order-portal-lightbox-stage {
  display: grid;
  height: calc(100% - 3.5rem);
  place-items: center;
  overflow: auto;
  padding: 1rem;
}
.order-portal-lightbox-stage img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: transform 140ms ease;
}

.order-portal-addon-option:hover,
.order-portal-addon-option:focus-within {
  border-color: var(--portal-accent);
  transform: translateY(-1px);
}

.order-portal-event-shop.is-readonly .order-portal-addon-option {
  cursor: default;
}

.order-portal-event-shop.is-readonly .order-portal-addon-option:hover,
.order-portal-event-shop.is-readonly .order-portal-addon-option:focus-within {
  border-color: var(--portal-border);
  transform: none;
}

.order-portal-event-shop.is-readonly .order-portal-addon-toggle:disabled {
  cursor: default;
  opacity: 0.72;
}

.order-portal-addon-option:has(> input:checked) {
  border-color: var(--portal-accent);
  background: color-mix(in srgb, var(--portal-accent) 9%, var(--portal-card-soft));
  box-shadow: inset 3px 0 0 var(--portal-accent);
}

.order-portal-addon-option input {
  width: 1.15rem;
  height: 1.15rem;
  accent-color: var(--portal-accent);
}

.order-portal-addon-option > .order-portal-addon-checkbox {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.order-portal-addon-toggle {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--portal-border);
  border-radius: 9px;
  background: var(--portal-card);
  color: var(--portal-ink);
  cursor: pointer;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 800;
}

.order-portal-addon-toggle[aria-pressed="true"] {
  border-color: var(--portal-accent);
  background: var(--portal-accent);
  color: var(--portal-accent-contrast);
}

.order-portal-addon-copy {
  display: grid;
  min-width: 0;
  gap: 0.2rem;
  cursor: pointer;
}

.order-portal-addon-option em {
  width: max-content;
  max-width: 100%;
  padding: 0.18rem 0.5rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--portal-accent) 14%, transparent);
  color: var(--portal-accent);
  font-size: 0.7rem;
  font-style: normal;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.order-portal-addon-option small {
  color: var(--portal-muted);
}

.order-portal-addon-option > b {
  white-space: nowrap;
}

.order-portal-addon-quantity {
  display: flex;
  grid-row: 2;
  align-items: center;
  justify-content: flex-start;
  gap: 0.55rem;
}

.order-portal-addon-option > .order-portal-addon-quantity.is-quantity {
  grid-column: 2;
}

.order-portal-addon-option > .order-portal-addon-quantity.is-variant {
  grid-column: 3 / -1;
}

.order-portal-addon-option:has(.order-portal-addon-image) > .order-portal-addon-quantity.is-quantity {
  grid-column: 3;
}

.order-portal-addon-option:has(.order-portal-addon-image) > .order-portal-addon-quantity.is-variant {
  grid-column: 4;
}

.order-portal-addon-quantity label {
  color: var(--portal-muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.order-portal-addon-quantity .input {
  width: 5rem;
}

.order-portal-addon-option > .order-portal-addon-quantity.is-fixed {
  grid-column: 2;
  flex-wrap: wrap;
  justify-content: flex-end;
  color: var(--portal-ink);
  font-size: 0.8rem;
  font-weight: 800;
}

.order-portal-addon-option > .order-portal-addon-quantity.is-fixed small {
  font-weight: 600;
}

.order-portal-addon-form > .button {
  min-height: 2.75rem;
  justify-self: start;
}

@media (min-width: 880px) {
  .order-portal-addon-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .order-portal-addon-option.is-type-merch {
    grid-column: 1 / -1;
  }

  .order-portal-addon-list:has(> .is-type-merch:first-child) > .order-portal-addon-option:last-child:nth-child(even),
  .order-portal-addon-list:not(:has(> .is-type-merch:first-child)) > .order-portal-addon-option:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    width: calc((100% - 0.7rem) / 2);
    justify-self: center;
  }

  .order-portal-addon-option:not(.is-type-merch) {
    grid-template-columns: minmax(0, 1fr) auto auto;
    align-content: start;
    gap: 0.65rem 0.85rem;
    padding: 0.9rem;
  }

  .order-portal-addon-option:not(.is-type-merch) > .order-portal-addon-copy {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-column: 1 / -1;
    align-items: start;
    gap: 0.25rem 0.5rem;
  }

  .order-portal-addon-option:not(.is-type-merch) > .order-portal-addon-copy > em {
    grid-column: 2;
    grid-row: 1;
  }

  .order-portal-addon-option:not(.is-type-merch) > .order-portal-addon-copy > small {
    grid-column: 1 / -1;
  }

  .order-portal-addon-option:not(.is-type-merch) > b {
    grid-column: 1;
    grid-row: 2;
    align-self: center;
  }

  .order-portal-addon-option:not(.is-type-merch) > .order-portal-addon-toggle {
    grid-column: 3;
    grid-row: 2;
  }

  .order-portal-addon-option:not(.is-type-merch) > .order-portal-addon-quantity.is-quantity {
    grid-column: 2;
    grid-row: 2;
    justify-content: flex-end;
  }

  .order-portal-addon-option:not(.is-type-merch) > .order-portal-addon-quantity.is-fixed {
    grid-column: 2;
    grid-row: 2;
  }

  .order-portal-addon-option:not(.is-type-merch) > .order-portal-addon-quantity.is-variant {
    grid-column: 1 / -1;
    grid-row: 3;
    justify-content: flex-end;
  }
}

.order-portal-addon-summary {
  display: grid;
  gap: 0.7rem;
  padding: 0.9rem 1rem;
  border-block: 1px solid var(--portal-border);
}

.order-portal-addon-summary-head,
.order-portal-addon-summary-total,
.order-portal-addon-summary li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.order-portal-addon-summary-head span,
.order-portal-addon-summary-total strong { color: var(--portal-ink); font-weight: 800; }
.order-portal-addon-summary-head small,
.order-portal-addon-summary li span { color: var(--portal-muted); }
.order-portal-addon-summary ul { display: grid; gap: 0.4rem; margin: 0; padding: 0; list-style: none; }
.order-portal-addon-summary li { font-size: 0.82rem; }
.order-portal-addon-summary li strong { flex: 0 0 auto; color: var(--portal-ink); }
.order-portal-addon-summary-total { padding-top: 0.7rem; border-top: 1px solid var(--portal-border); }

.order-portal-addon-summary[hidden] { display: none; }

.order-portal-shipping {
  min-width: 0;
  padding: 1rem;
  border: 1px solid var(--portal-border);
  border-radius: 12px;
  background: var(--portal-card-soft);
}

.order-portal-shipping[hidden] {
  display: none;
}

.order-portal-shipping legend {
  padding: 0 0.35rem;
  color: var(--portal-ink);
  font-weight: 800;
}

.order-portal-shipping > p {
  margin: 0 0 0.85rem;
  color: var(--portal-muted);
  font-size: 0.82rem;
}

.order-portal-shipping-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
}

.order-portal-shipping-grid .field,
.order-portal-shipping-grid .help {
  margin: 0;
}

.order-portal-shipping-grid .is-wide {
  grid-column: 1 / -1;
}

.order-portal-shipping-grid .select,
.order-portal-shipping-grid .select select {
  width: 100%;
}

.order-portal-shipping-grid .select select {
  min-height: 3rem;
  border-color: var(--portal-border);
  border-radius: 10px;
  background: var(--portal-card);
  color: var(--portal-ink);
}

.order-portal-downloads {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1rem;
}

.order-portal-download-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.55rem;
}

.order-portal-download-actions .button {
  min-width: 9rem;
  justify-content: center;
}

.order-portal-download-actions .button.is-primary {
  border-color: var(--portal-accent);
  background: var(--portal-accent);
  color: var(--portal-button-text);
}

.order-portal-history {
  margin-top: 1rem;
}

.order-portal-dashboard-hero {
  padding: clamp(0.9rem, 2.5vw, 1.6rem) 0 1.1rem;
}

.order-portal-dashboard-hero h1 {
  margin: 0.3rem 0 0.55rem;
  color: var(--portal-ink);
  font-size: clamp(2rem, 6vw, 3.6rem);
  font-weight: 850;
  line-height: 1.04;
}

.order-portal-dashboard-hero p {
  margin: 0;
  color: var(--portal-muted);
}

.order-portal-dashboard-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin-bottom: 1rem;
  border-block: 1px solid var(--portal-border);
}

.order-portal-dashboard-stats .order-portal-card {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  padding: 0.9rem 1rem;
  border: 0;
  border-right: 1px solid var(--portal-border);
  border-radius: 0;
  background: transparent;
}

.order-portal-dashboard-stats .order-portal-card:last-child { border-right: 0; }

.order-portal-dashboard-stats span {
  color: var(--portal-muted);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.order-portal-dashboard-stats strong {
  color: var(--portal-ink);
  font-size: 1.25rem;
}

.order-portal-dashboard-orders,
.order-portal-dashboard-next {
  margin-top: 1rem;
}

.order-portal-events {
  margin: 1.25rem 0;
}

.order-portal-event-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.order-portal-event-card {
  display: grid;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--portal-border);
  border-radius: 9px;
  background: var(--portal-card);
  color: var(--portal-ink);
  text-decoration: none;
  transition: border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.order-portal-event-card:hover,
.order-portal-event-card:focus-visible {
  border-color: var(--portal-accent);
  color: var(--portal-ink);
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.2);
}

.order-portal-past-events {
  margin-top: 1rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--portal-border);
}

.order-portal-past-events > summary {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--portal-muted);
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 800;
  list-style: none;
}

.order-portal-past-events > summary::-webkit-details-marker { display: none; }
.order-portal-past-events > summary small { margin-left: auto; }
.order-portal-past-events[open] > summary i { transform: rotate(180deg); }
.order-portal-past-events > .order-portal-event-list { margin-top: 0.75rem; }

.order-portal-event-card.is-past {
  grid-template-columns: 8rem minmax(0, 1fr);
  opacity: 0.58;
}

.order-portal-event-card.is-past:hover,
.order-portal-event-card.is-past:focus-visible { opacity: 0.82; }
.order-portal-event-card.is-past .order-portal-event-media { min-height: 7.5rem; }
.order-portal-event-card.is-past .order-portal-event-copy { padding: 0.85rem; }
.order-portal-event-card.is-past .order-portal-event-copy > strong { font-size: 0.95rem; }
.order-portal-event-card.is-past .order-portal-event-open { font-size: 0.75rem; }

.order-portal-event-card:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--portal-accent) 45%, transparent);
  outline-offset: 3px;
}

.order-portal-event-media {
  position: relative;
  display: grid;
  min-height: 11rem;
  place-items: center;
  overflow: hidden;
  background: var(--portal-card-soft);
}

.order-portal-event-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.order-portal-event-media > i {
  color: var(--portal-muted);
  font-size: 2rem;
}

.order-portal-event-media em {
  position: absolute;
  top: 0.8rem;
  left: 0.8rem;
  padding: 0.38rem 0.62rem;
  border: 1px solid color-mix(in srgb, var(--portal-border) 74%, transparent);
  border-radius: 5px;
  background: color-mix(in srgb, var(--portal-card) 88%, transparent);
  color: var(--portal-ink);
  font-size: 0.7rem;
  font-style: normal;
  font-weight: 800;
  letter-spacing: 0.04em;
  backdrop-filter: blur(10px);
}

.order-portal-event-copy {
  display: grid;
  gap: 0.55rem;
  padding: 1.15rem;
}

.order-portal-event-copy > small {
  color: var(--portal-muted);
  font-size: 0.76rem;
  font-weight: 700;
}

.order-portal-event-copy > strong {
  overflow-wrap: anywhere;
  font-family: "Sora", sans-serif;
  font-size: 1.18rem;
  line-height: 1.25;
}

.order-portal-event-products {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.order-portal-event-products b {
  padding: 0.35rem 0.55rem;
  border-radius: 8px;
  background: var(--portal-card-soft);
  color: var(--portal-muted);
  font-size: 0.72rem;
  font-weight: 750;
}

.order-portal-event-open {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 0.25rem;
  color: var(--portal-accent);
  font-size: 0.82rem;
  font-weight: 800;
}

.order-portal-breadcrumb {
  margin: 1rem 0;
}

.order-portal-breadcrumb a {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  gap: 0.5rem;
  color: var(--portal-muted);
  font-size: 0.82rem;
  font-weight: 800;
  text-decoration: none;
}

.order-portal-breadcrumb a:hover,
.order-portal-breadcrumb a:focus-visible {
  color: var(--portal-accent);
}

.order-portal-event-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1rem;
  margin-top: 1rem;
}

.order-portal-event-facts span {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--portal-muted);
  font-size: 0.84rem;
}

.order-portal-event-facts i {
  color: var(--portal-accent);
}

.order-portal-event-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 1rem 0;
}

.order-portal-event-summary article {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 0.75rem;
  padding: 0.95rem 1rem;
  border: 1px solid var(--portal-border);
  border-radius: 7px;
  background: var(--portal-card-soft);
}

.order-portal-event-summary article > i {
  display: grid;
  width: 2.4rem;
  height: 2.4rem;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 10px;
  background: color-mix(in srgb, var(--portal-accent) 14%, var(--portal-card-soft));
  color: var(--portal-accent);
}

.order-portal-event-summary span,
.order-portal-event-summary strong {
  display: block;
}

.order-portal-event-summary span {
  color: var(--portal-muted);
  font-size: 0.78rem;
}

.order-portal-event-summary strong {
  color: var(--portal-ink);
  font-size: 1.15rem;
}

.order-portal-event-passes,
.order-portal-event-purchases,
.order-portal-event-orders {
  margin-top: 1rem;
}

.order-portal-pass-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.order-portal-pass {
  display: grid;
  grid-template-columns: 5.5rem minmax(0, 1fr);
  gap: 1rem;
  padding: 1rem;
  border: 1px solid var(--portal-border);
  border-radius: 12px;
  background: var(--portal-card-soft);
}

.order-portal-pass > img {
  width: 5.5rem;
  height: 5.5rem;
  padding: 0.3rem;
  border-radius: 10px;
  background: #fff;
  object-fit: contain;
}

.order-portal-pass h3 {
  margin: 0.2rem 0 0.25rem;
  color: var(--portal-ink);
  font-size: 1rem;
}

.order-portal-pass p {
  margin: 0;
  color: var(--portal-muted);
  font-size: 0.78rem;
}

.order-portal-pass code {
  display: inline-block;
  max-width: 100%;
  margin-top: 0.55rem;
  overflow-wrap: anywhere;
  padding: 0.25rem 0.4rem;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.32);
  color: var(--portal-ink);
  font-size: 0.7rem;
}

.order-portal-pass-type {
  color: var(--portal-accent);
  font-size: 0.66rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.order-portal-pass-actions {
  display: flex;
  grid-column: 1 / -1;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.25rem;
}

.order-portal-pass-actions .button {
  min-height: 2.75rem;
  border-color: var(--portal-border);
  background: var(--portal-card);
  color: var(--portal-ink);
}

.order-portal-pass.is-inactive {
  opacity: 0.58;
}

.order-portal-purchase-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
}

.order-portal-purchase-list > div {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.8rem 0.9rem;
  border: 1px solid var(--portal-border);
  border-radius: 10px;
  background: var(--portal-card-soft);
}

.order-portal-purchase-list span {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 0.55rem;
}

.order-portal-purchase-list i {
  color: var(--portal-accent);
}

.order-portal-purchase-list strong {
  overflow-wrap: anywhere;
  color: var(--portal-ink);
}

.order-portal-purchase-list small {
  flex: 0 0 auto;
  color: var(--portal-muted);
}

.order-portal-order-with-actions {
  cursor: default;
}

.order-portal-inline-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  margin-top: 0.35rem;
}

.order-portal-inline-actions a {
  color: var(--portal-accent);
  font-size: 0.76rem;
  font-weight: 800;
}

.order-portal-secondary-details > summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 1rem;
  cursor: pointer;
  list-style: none;
}

.order-portal-secondary-details > summary::-webkit-details-marker {
  display: none;
}

.order-portal-secondary-details > summary strong,
.order-portal-secondary-details > summary span {
  display: block;
  color: var(--portal-ink);
}

.order-portal-secondary-details > summary > small {
  color: var(--portal-muted);
  font-size: 0.78rem;
}

.order-portal-secondary-details[open] > summary {
  margin-bottom: 1rem;
}

.order-portal-secondary-details[open] > summary > i {
  transform: rotate(180deg);
}

.order-portal-profile {
  scroll-margin-top: 1rem;
}

.order-portal-profile-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.order-portal-profile-summary > span:first-child { display: grid; gap: 0.2rem; min-width: 0; }
.order-portal-profile-summary strong { color: var(--portal-ink); font-size: 1.05rem; }
.order-portal-profile-summary small { overflow-wrap: anywhere; color: var(--portal-muted); }
.order-portal-profile-edit {
  display: inline-flex;
  min-height: 2.5rem;
  flex: 0 0 auto;
  align-items: center;
  gap: 0.45rem;
  padding: 0 0.8rem;
  border: 1px solid var(--portal-border);
  border-radius: 6px;
  color: var(--portal-ink);
  font-size: 0.78rem;
  font-weight: 800;
  cursor: pointer;
}

.order-portal-profile-dialog {
  width: min(760px, calc(100% - 2rem));
  max-height: min(820px, calc(100% - 2rem));
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--portal-border);
  border-radius: 9px;
  background: #161215;
  color: var(--portal-ink);
}
.order-portal-profile-dialog::backdrop { background: rgba(0, 0, 0, 0.82); }
.order-portal-profile-dialog > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.15rem;
  border-bottom: 1px solid var(--portal-border);
}
.order-portal-profile-dialog h2 { margin: 0.15rem 0 0; color: var(--portal-ink); font-size: 1.25rem; }
.order-portal-profile-dialog > header > button {
  display: grid;
  width: 2.5rem;
  height: 2.5rem;
  place-items: center;
  border: 1px solid var(--portal-border);
  border-radius: 6px;
  background: var(--portal-card-soft);
  color: var(--portal-ink);
  cursor: pointer;
}
.order-portal-profile-dialog .order-portal-profile-form {
  max-height: calc(100vh - 8rem);
  overflow-y: auto;
  padding: 1.15rem;
}

.order-portal-profile-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem 1rem;
}

.order-portal-addon-copy strong,
.order-portal-addon-option > b { color: var(--portal-ink); }

.order-portal-profile-form .field,
.order-portal-profile-form .help {
  margin: 0;
}

.order-portal-profile-form .label span,
.order-portal-profile-form .help {
  color: var(--portal-muted);
  font-size: 0.76rem;
}

.order-portal-profile-form .select,
.order-portal-profile-form .select select {
  width: 100%;
}

.order-portal-profile-form .select select {
  min-height: 3rem;
  border-color: var(--portal-border);
  border-radius: 10px;
  background: var(--portal-card-soft);
  color: var(--portal-ink);
}

.order-portal-profile-street,
.order-portal-profile-actions {
  grid-column: 1 / -1;
}

.order-portal-profile-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 0.25rem;
}

.order-portal-profile-actions .button { gap: 0.45rem; }

.order-portal-dashboard-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.order-portal-dashboard-section-head h2 {
  margin-bottom: 0;
}

.order-portal-dashboard-section-head p {
  max-width: 46rem;
  margin: 0.35rem 0 0;
  color: var(--portal-muted);
  font-size: 0.78rem;
}

.order-portal-dashboard-section-head small,
.order-portal-dashboard-section-head a {
  color: var(--portal-muted);
  font-size: 0.8rem;
  font-weight: 700;
}

.order-portal-dashboard-section-head a:hover,
.order-portal-dashboard-section-head a:focus-visible {
  color: var(--portal-accent);
}

.order-portal-order-meta em {
  display: block;
  margin-top: 0.35rem;
  color: var(--portal-accent);
  font-size: 0.76rem;
  font-style: normal;
  font-weight: 800;
}

.order-portal-empty {
  margin: 0;
}

.order-portal-order-list {
  display: grid;
  gap: 0.55rem;
}

.order-portal-order {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--portal-border);
  border-radius: 10px;
  background: var(--portal-card-soft);
  color: var(--portal-ink);
  text-decoration: none;
}

.order-portal-order:hover,
.order-portal-order:focus-visible,
.order-portal-order.is-current {
  border-color: var(--portal-accent);
  color: var(--portal-ink);
}

.order-portal-order > span,
.order-portal-order small {
  display: block;
}

.order-portal-order small {
  margin-top: 0.16rem;
  color: var(--portal-muted);
}

.order-portal-wallet {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(18rem, 0.85fr);
  gap: 1.5rem;
}

.order-portal-wallet-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 1rem;
}

.order-portal-wallet-main h2 { margin: 0.15rem 0 0; }
.order-portal-wallet-status { padding: 0.28rem 0.55rem; border: 1px solid var(--portal-border); border-radius: 999px; color: var(--portal-muted); font-size: 0.7rem; font-weight: 800; }
.order-portal-wallet-status.is-active { color: var(--portal-accent); }
.order-portal-wallet-status.is-locked { color: #ff9f9f; }
.order-portal-wallet-balance { display: grid; grid-column: 1 / -1; gap: 0.15rem; padding-top: 0.9rem; border-top: 1px solid var(--portal-border); }
.order-portal-wallet-balance small,
.order-portal-wallet-balance span,
.order-portal-wallet-history small { color: var(--portal-muted); }
.order-portal-wallet-balance strong { color: var(--portal-ink); font-family: Sora, Manrope, sans-serif; font-size: clamp(2rem, 5vw, 3.2rem); line-height: 1.05; }
.order-portal-wallet-code { display: flex; grid-column: 1 / -1; align-items: center; gap: 0.85rem; }
.order-portal-wallet-code img { width: 6rem; height: 6rem; padding: 0.35rem; border-radius: 7px; background: #fff; }
.order-portal-wallet-code > span { display: grid; min-width: 0; gap: 0.25rem; }
.order-portal-wallet-code small { color: var(--portal-muted); font-size: 0.72rem; font-weight: 800; text-transform: uppercase; }
.order-portal-wallet-code code { overflow-wrap: anywhere; padding: 0; background: transparent; color: var(--portal-ink); font-size: 0.78rem; }
.order-portal-wallet-code a { width: max-content; color: var(--portal-accent); font-size: 0.76rem; font-weight: 800; text-decoration: none; }
.order-portal-wallet-history { align-self: stretch; padding-left: 1.5rem; border-left: 1px solid var(--portal-border); }
.order-portal-wallet-history > summary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; color: var(--portal-ink); cursor: pointer; font-weight: 800; list-style: none; }
.order-portal-wallet-history > summary::-webkit-details-marker { display: none; }
.order-portal-wallet-history[open] > summary i { transform: rotate(180deg); }
.order-portal-wallet-history > div { display: grid; gap: 0.55rem; margin-top: 0.85rem; }
.order-portal-wallet-history article { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.order-portal-wallet-history article > span { display: grid; min-width: 0; }
.order-portal-wallet-history article strong { overflow-wrap: anywhere; color: var(--portal-ink); font-size: 0.82rem; }
.order-portal-wallet-history article b { flex: 0 0 auto; font-size: 0.82rem; }
.order-portal-wallet-history article b.is-credit { color: var(--portal-accent); }
.order-portal-wallet-history article b.is-debit { color: #ffb1b1; }

.order-portal-order-meta {
  flex: 0 0 auto;
  text-align: right;
}

@media (max-width: 720px) {
  .order-portal-staff-preview { align-items: stretch; flex-direction: column; }
  .order-portal-staff-preview span { align-items: flex-start; }
  .order-portal-staff-preview button { width: 100%; }
  .order-portal-login {
    gap: 1.2rem;
    min-height: 0;
    padding: 2rem 0 1rem;
  }

  .order-portal-login-ticket {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .order-portal-login-ticket::before,
  .order-portal-login-ticket::after { display: none; }

  .order-portal-login-intro,
  .order-portal-login-card {
    padding: 1.5rem;
  }

  .order-portal-login-intro::before,
  .order-portal-login-intro::after,
  .order-portal-ticket-number,
  .order-portal-ticket-graphic { display: none; }

  .order-portal-ticket-facts {
    gap: 1rem;
    margin: 0 0 1.75rem;
  }

  .order-portal-login-intro h1 {
    max-width: 11ch;
    margin: 0;
    font-size: clamp(2.3rem, 11vw, 3.2rem);
  }

  .order-portal-ticket-mark { margin-left: 0; }

  .order-portal-login-separator {
    width: auto;
    height: 1px;
    margin: 0 1.5rem;
    background: repeating-linear-gradient(to right, rgba(218, 188, 190, 0.38) 0 7px, transparent 7px 14px);
  }

  .order-portal-login-services {
    gap: 0.55rem;
    font-size: 0.72rem;
  }

  .order-portal-dashboard-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .order-portal-dashboard-stats .order-portal-card {
    align-items: center;
    flex-direction: column-reverse;
    gap: 0.15rem;
    padding: 0.7rem 0.25rem;
    text-align: center;
  }

  .order-portal-dashboard-stats span { font-size: 0.61rem; letter-spacing: 0.035em; }

  .order-portal-event-list {
    grid-template-columns: 1fr;
  }

  .order-portal-event-summary,
  .order-portal-pass-list,
  .order-portal-purchase-list {
    grid-template-columns: 1fr;
  }

  .order-portal-event-summary {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
    border-block: 1px solid var(--portal-border);
  }

  .order-portal-event-summary article {
    justify-content: center;
    gap: 0.35rem;
    padding: 0.7rem 0.2rem;
    border: 0;
    border-right: 1px solid var(--portal-border);
    border-radius: 0;
    background: transparent;
    text-align: center;
  }

  .order-portal-event-summary article:last-child { border-right: 0; }
  .order-portal-event-summary article > i { display: none; }
  .order-portal-event-summary span { font-size: 0.65rem; }
  .order-portal-event-summary strong { font-size: 1rem; }

  .order-portal-wallet {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .order-portal-wallet-history {
    padding: 1rem 0 0;
    border-top: 1px solid var(--portal-border);
    border-left: 0;
  }

  .order-portal-event-facts {
    align-items: flex-start;
    flex-direction: column;
  }

  .order-portal-pass {
    grid-template-columns: 4.5rem minmax(0, 1fr);
  }

  .order-portal-pass > img {
    width: 4.5rem;
    height: 4.5rem;
  }

  .order-portal-event-media {
    min-height: 0;
    aspect-ratio: 16 / 8;
  }

  .order-portal-secondary-details > summary {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .order-portal-secondary-details > summary > small {
    display: none;
  }

  .order-portal-dashboard-section-head {
    align-items: flex-start;
    flex-direction: column;
  }
  .order-portal-hero.has-event-image {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .order-portal-hero.has-event-image .order-portal-hero-copy {
    order: 2;
    padding: 1.5rem;
  }

  .order-portal-hero-media {
    min-height: 0;
    aspect-ratio: 16 / 8;
  }

  .order-portal-grid {
    grid-template-columns: 1fr;
  }

  .order-portal-ticket {
    align-items: flex-start;
    grid-template-columns: 1fr;
  }

  .order-portal-ticket-edit {
    grid-column: 1;
  }

  .order-portal-ticket code {
    max-width: 100%;
    text-align: left;
  }

  .order-portal-ticket-actions,
  .order-portal-ticket-buttons {
    align-items: flex-start;
    justify-content: flex-start;
  }

  .order-portal-ticket > .order-portal-ticket-actions {
    grid-template-columns: 1fr;
  }

  .order-portal-attendee-form {
    grid-template-columns: 1fr;
  }

  .order-portal-profile-form {
    grid-template-columns: 1fr;
  }

  .order-portal-profile-summary { align-items: flex-start; }
  .order-portal-profile-edit { min-height: 2.35rem; padding-inline: 0.65rem; }

  .order-portal-profile-dialog .order-portal-profile-form { grid-template-columns: 1fr; }

  .order-portal-profile-dialog[open] {
    display: grid;
    width: calc(100% - 1rem);
    max-height: calc(100dvh - 1rem);
    grid-template-rows: auto minmax(0, 1fr);
  }

  .order-portal-profile-dialog .order-portal-profile-form {
    min-height: 0;
    max-height: none;
    overscroll-behavior: contain;
  }

  .order-portal-profile-street,
  .order-portal-profile-actions {
    grid-column: 1;
  }

  .order-portal-profile-actions {
    position: sticky;
    bottom: -1.15rem;
    z-index: 1;
    margin: 0 -1.15rem -1.15rem;
    padding: 0.85rem 1.15rem max(0.85rem, env(safe-area-inset-bottom));
    border-top: 1px solid var(--portal-border);
    background: #161215;
  }

  .order-portal-profile-actions .button {
    width: 100%;
  }

  .order-portal-addon-option {
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
  }

  .order-portal-addon-option:has(.order-portal-addon-image) {
    grid-template-columns: 4.5rem minmax(0, 1fr);
  }

  .order-portal-addon-image {
    width: 4.5rem;
    height: 4.5rem;
  }

  .order-portal-addon-image-button {
    width: 4.5rem;
    height: 4.5rem;
  }

  .order-portal-addon-option:has(.order-portal-addon-image) > b {
    grid-column: 2;
  }

  .order-portal-addon-option > b {
    grid-column: 1;
  }

  .order-portal-addon-option:has(.order-portal-addon-image) > .order-portal-addon-copy,
  .order-portal-addon-option:has(.order-portal-addon-image) > b {
    grid-column: 2;
  }

  .order-portal-addon-toggle,
  .order-portal-addon-option > .order-portal-addon-quantity.is-quantity,
  .order-portal-addon-option > .order-portal-addon-quantity.is-variant,
  .order-portal-addon-option:has(.order-portal-addon-image) > .order-portal-addon-quantity.is-quantity,
  .order-portal-addon-option:has(.order-portal-addon-image) > .order-portal-addon-quantity.is-variant {
    grid-column: 1 / -1;
    grid-row: auto;
    width: 100%;
  }

  .order-portal-addon-quantity .select,
  .order-portal-addon-quantity select,
  .order-portal-addon-quantity input {
    min-width: 0;
    max-width: 100%;
  }

  .order-portal-addon-quantity .input { width: 7rem; }

  .order-portal-addon-form > .button {
    width: 100%;
  }

  .order-portal-shipping-grid {
    grid-template-columns: 1fr;
  }

  .order-portal-shipping-grid .is-wide {
    grid-column: 1;
  }

  .order-portal-attendee-form .field:nth-of-type(3),
  .order-portal-attendee-form .button,
  .order-portal-edit-deadline {
    grid-column: 1;
  }

  .order-portal-downloads {
    align-items: stretch;
    flex-direction: column;
  }

  .order-portal-download-actions,
  .order-portal-download-actions .button {
    width: 100%;
  }

  .order-portal-event-card.is-past {
    grid-template-columns: 6.5rem minmax(0, 1fr);
  }

  .order-portal-header-actions,
  .order-portal-order {
    align-items: flex-start;
    flex-direction: column;
  }

  .order-portal-header {
    position: relative;
    align-items: center;
    gap: 1rem;
  }

  .order-portal-navigation {
    position: relative;
    margin-left: auto;
  }

  .order-portal-navigation > summary {
    display: inline-flex;
    min-height: 2.75rem;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    padding: 0.65rem 0.85rem;
    border: 1px solid var(--portal-border);
    border-radius: 7px;
    background: var(--portal-card-soft);
    color: var(--portal-ink);
    cursor: pointer;
    font-weight: 800;
    list-style: none;
  }

  .order-portal-navigation > summary::-webkit-details-marker {
    display: none;
  }

  .order-portal-navigation > summary:focus-visible {
    border-color: var(--portal-accent);
    outline: 2px solid color-mix(in srgb, var(--portal-accent) 45%, transparent);
    outline-offset: 2px;
  }

  .order-portal-navigation[open] > summary i::before {
    content: "\f00d";
  }

  .order-portal-navigation .order-portal-header-actions {
    position: absolute;
    z-index: 20;
    top: calc(100% + 0.55rem);
    right: 0;
    width: min(17rem, calc(100vw - 2rem));
    align-items: stretch;
    gap: 0;
    overflow: hidden;
    padding: 0.45rem;
    border: 1px solid var(--portal-border);
    border-radius: 8px;
    background: var(--portal-card);
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.38);
  }

  .order-portal-navigation .order-portal-header-actions > a,
  .order-portal-navigation .order-portal-header-actions > span,
  .order-portal-navigation .order-portal-header-actions form,
  .order-portal-navigation .order-portal-logout {
    width: 100%;
  }

  .order-portal-navigation .order-portal-header-actions > a,
  .order-portal-navigation .order-portal-header-actions > span,
  .order-portal-navigation .order-portal-logout {
    display: block;
    padding: 0.75rem 0.85rem;
    border-radius: 9px;
    text-align: left;
    text-decoration: none;
  }

  .order-portal-navigation .order-portal-header-actions > a:hover,
  .order-portal-navigation .order-portal-header-actions > a:focus-visible,
  .order-portal-navigation .order-portal-logout:hover,
  .order-portal-navigation .order-portal-logout:focus-visible {
    background: var(--portal-card-soft);
    color: var(--portal-accent);
  }

  .order-portal-order-meta {
    text-align: left;
  }
}
