body.ono-order-page {
  background:
    radial-gradient(circle at 8% 12%, rgba(34, 197, 94, .14), transparent 34%),
    radial-gradient(circle at 92% 8%, rgba(59, 130, 246, .16), transparent 38%),
    linear-gradient(145deg, #0b1226, #111a33 58%, #0b1226) !important;
  color: #f8fafc !important;
  color-scheme: light !important;
}

body.ono-order-page > header {
  background: rgba(11, 18, 38, .9) !important;
  border-color: rgba(148, 163, 184, .2) !important;
  box-shadow: 0 8px 26px rgba(2, 6, 23, .24) !important;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

body.ono-order-page > header .text-white,
body.ono-order-page > header .text-slate-200,
body.ono-order-page > header .text-slate-300,
body.ono-order-page > header .text-slate-400 {
  color: #e2e8f0 !important;
}

body.ono-order-page > header .bg-gradient-to-tr {
  background: linear-gradient(140deg, #22c55e, #15803d) !important;
  box-shadow: 0 8px 22px rgba(34, 197, 94, .28) !important;
}

#guestOrderView > .bg-gradient-to-r {
  background:
    radial-gradient(ellipse at 16% 40%, rgba(34, 197, 94, .22), transparent 38%),
    radial-gradient(ellipse at 88% 10%, rgba(59, 130, 246, .2), transparent 42%),
    linear-gradient(145deg, #0b1226, #111a33) !important;
  border: 1px solid rgba(148, 163, 184, .2) !important;
  border-radius: 1.35rem !important;
  box-shadow: 0 20px 44px rgba(2, 6, 23, .28) !important;
}

#guestOrderView > .bg-gradient-to-r > span {
  border-color: rgba(96, 165, 250, .34) !important;
  background: rgba(59, 130, 246, .15) !important;
  color: #bfdbfe !important;
}

#guestOrderView > .bg-gradient-to-r h1 {
  max-width: 760px;
  font-size: 2.25rem !important;
  line-height: 1.12 !important;
}

#guestOrderView form#guestOrderForm,
#guestOrderView aside.portal-estimate-card {
  background: #fff !important;
  color: #0f172a !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 1.5rem !important;
  box-shadow: 0 18px 42px rgba(2, 6, 23, .2) !important;
  backdrop-filter: none !important;
}

#guestOrderView form#guestOrderForm {
  padding: clamp(1.15rem, 3vw, 2rem) !important;
}

#guestOrderView aside.portal-estimate-card {
  position: sticky;
  top: 6rem;
}

#guestOrderView .order-form-eyebrow {
  margin: 0 0 .35rem;
  color: #2563eb !important;
  font-size: .68rem !important;
  font-weight: 800;
  letter-spacing: .14em;
}

#guestOrderView .order-stepper {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .45rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

#guestOrderView .order-stepper li {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: .55rem;
  color: #64748b !important;
  font-size: .75rem !important;
  font-weight: 650;
}

#guestOrderView .order-stepper li > span:first-child {
  display: grid;
  width: 1.8rem;
  height: 1.8rem;
  flex: 0 0 1.8rem;
  place-items: center;
  border: 1px solid #e2e8f0;
  border-radius: 50%;
  background: #f1f5f9;
  color: #64748b !important;
  font-size: .72rem !important;
}

#guestOrderView .order-stepper li[aria-current="step"] {
  color: #1d4ed8 !important;
}

#guestOrderView .order-stepper li[aria-current="step"] > span:first-child {
  border-color: #2563eb;
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  color: #fff !important;
  box-shadow: 0 5px 12px rgba(37, 99, 235, .26);
}

#guestOrderView .order-stepper li[data-step-state="complete"] > span:first-child {
  border-color: #22c55e;
  background: #f0fdf4;
  color: #15803d !important;
}

#guestOrderView .order-progress-track {
  height: 3px;
  overflow: hidden;
  border-radius: 99px;
  background: #e2e8f0;
}

#guestOrderView .order-progress-track span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #3b82f6, #2563eb 68%, #22c55e);
  transition: width .2s ease;
}

#guestOrderView .order-step-panel {
  min-width: 0;
  margin: 0;
  padding: 1.2rem 0 0;
  border: 0 !important;
  border-top: 1px solid #e2e8f0 !important;
}

#guestOrderView .order-step-panel[hidden] {
  display: none !important;
}

#guestOrderView .order-step-panel > h3 {
  color: #2563eb !important;
  font-size: .76rem !important;
  letter-spacing: .1em;
}

#guestOrderView input:not([type="file"]),
#guestOrderView select,
#guestOrderView textarea {
  border: 1px solid #e2e8f0 !important;
  border-radius: .7rem !important;
  background: #f1f5f9 !important;
  color: #0f172a !important;
  color-scheme: light !important;
}

#guestOrderView input::placeholder,
#guestOrderView textarea::placeholder {
  color: #94a3b8 !important;
}

#guestOrderView input:focus,
#guestOrderView select:focus,
#guestOrderView textarea:focus {
  border-color: #3b82f6 !important;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, .18) !important;
  outline: none;
}

.spacing-choice {
  display: flex;
  min-height: 58px;
  align-items: center;
  gap: .7rem;
  padding: .75rem .9rem;
  border: 1px solid #e2e8f0;
  border-radius: .75rem;
  background: #f1f5f9;
  color: #0f172a;
  cursor: pointer;
}

.spacing-choice:has(input:checked) {
  border-color: #3b82f6;
  background: #eff6ff;
  box-shadow: 0 0 0 2px rgba(59, 130, 246, .1);
}

.spacing-choice input {
  width: 1rem;
  height: 1rem;
  flex: 0 0 auto;
  accent-color: #2563eb;
}

.spacing-choice span { display: grid; gap: .15rem; font-size: .84rem; font-weight: 700; }
.spacing-choice small { color: #64748b; font-size: .72rem; font-weight: 500; }

.account-mode-toggle {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  overflow: hidden;
  gap: .25rem;
  padding: .25rem;
  border: 1px solid #e2e8f0;
  border-radius: 1.1rem;
  background: #f1f5f9;
}

.account-mode-button {
  min-height: 2.85rem;
  border: 0 !important;
  border-radius: .85rem !important;
  background: transparent !important;
  color: #64748b !important;
  font-size: .88rem !important;
  font-weight: 700;
  transition: color .2s, background .2s, box-shadow .2s;
}

.account-mode-button:hover { background: #e2e8f0 !important; }
.account-mode-button.is-active {
  background: linear-gradient(135deg, #3b82f6, #2563eb 60%, #1d4ed8) !important;
  color: #fff !important;
  box-shadow: 0 6px 14px rgba(37, 99, 235, .32);
}
.account-mode-fields { display: grid; gap: 1rem; }
.account-mode-fields > p { margin: 0; }

.account-signed-in {
  padding: .9rem 1rem;
  border: 1px solid #bbf7d0;
  border-radius: .75rem;
  background: #f0fdf4;
  color: #166534;
  font-size: .88rem;
}

.secure-payment-panel {
  display: grid;
  gap: .8rem;
  padding: 1rem;
  border: 1px solid #e2e8f0;
  border-radius: .9rem;
  background: #f8fafc;
  color: #0f172a;
}

.secure-payment-panel h3 {
  margin: 0;
  color: #475569;
  font-size: 1rem !important;
  font-weight: 700;
  text-align: center;
}

.payment-brands {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .45rem;
}

.payment-brand {
  display: grid;
  min-height: 2.75rem;
  place-items: center;
  padding: .35rem .2rem;
  border: 1px solid #e2e8f0;
  border-radius: .45rem;
  background: #fff;
  color: #1e293b;
  font-size: .68rem !important;
  font-weight: 800;
  line-height: 1.05;
  text-align: center;
}

.payment-brand-mastercard { color: #c2410c; letter-spacing: -.04em; }
.payment-brand-visa { color: #1d4ed8; font-size: .9rem !important; font-style: italic; }
.payment-brand-amex { background: #2563eb; color: #fff; font-size: .58rem !important; }
.payment-brand-discover { color: #0f172a; letter-spacing: -.03em; }

.payment-security {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .45rem;
}

.payment-security > span {
  display: grid;
  min-height: 2.85rem;
  align-content: center;
  justify-items: center;
  gap: .12rem;
  border: 1px solid #cbd5e1;
  border-radius: .4rem;
  background: #fff;
  color: #166534;
  text-align: center;
}

.payment-security strong {
  font-size: .76rem !important;
  font-weight: 800;
}

.payment-security small {
  color: #64748b;
  font-size: .53rem !important;
  font-weight: 700;
  letter-spacing: .05em;
}

.secure-payment-panel > p {
  margin: 0;
  color: #64748b;
  font-size: .72rem !important;
  line-height: 1.45;
  text-align: center;
}

.secure-payment-panel--checkout {
  border-color: rgba(255, 255, 255, .12);
  background: rgba(255, 255, 255, .06);
  color: #f8fafc;
}

.secure-payment-panel--checkout h3 { color: #e2e8f0; }
.secure-payment-panel--checkout .payment-brand { border-color: #cbd5e1; }
.secure-payment-panel--checkout .payment-security > span {
  border-color: rgba(255, 255, 255, .15);
  background: rgba(255, 255, 255, .95);
}
.secure-payment-panel--checkout > p { color: #94a3b8; }

#guestOrderView .text-slate-900,
#guestOrderView .text-slate-800,
#guestOrderView .text-slate-700 {
  color: #0f172a !important;
}

#guestOrderView .text-slate-600,
#guestOrderView .text-slate-500,
#guestOrderView .text-slate-400 {
  color: #64748b !important;
}

#guestOrderView .text-sky-400,
#guestOrderView .text-sky-300 {
  color: #2563eb !important;
}

#guestOrderView .text-emerald-600 {
  color: #2563eb !important;
}

#guestOrderView .border-slate-100,
#guestOrderView .border-slate-200,
#guestOrderView .border-slate-300 {
  border-color: #e2e8f0 !important;
}

#guestOrderView .bg-slate-50,
#guestOrderView .bg-slate-100,
#guestOrderView .estimate-grid {
  background: #f1f5f9 !important;
}

#guestOrderView .portal-estimate-card .estimate-grid {
  border: 1px solid #e2e8f0 !important;
  border-radius: .85rem;
}

#guestOrderView #guestTotalAmount {
  color: #2563eb !important;
  font-size: 2rem !important;
}

#guestOrderView .order-step-actions {
  position: sticky;
  bottom: .75rem;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: .7rem;
  padding: .7rem;
  border: 1px solid #e2e8f0;
  border-radius: .95rem;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 10px 28px rgba(15, 23, 42, .12);
  backdrop-filter: blur(12px);
}

#guestOrderView .order-step-actions button {
  min-height: 2.75rem;
  padding: .7rem 1.05rem;
  border: 1px solid #2563eb !important;
  border-radius: .85rem !important;
  background: linear-gradient(135deg, #3b82f6, #2563eb 60%, #1d4ed8) !important;
  color: #fff !important;
  font-size: .87rem !important;
  font-weight: 750;
}

#guestOrderView .order-step-actions button:hover {
  background: linear-gradient(135deg, #2563eb, #1d4ed8) !important;
  box-shadow: 0 8px 18px rgba(37, 99, 235, .28);
}

#guestOrderView .order-step-actions .order-step-back {
  margin-right: auto;
  border-color: #e2e8f0 !important;
  background: #fff !important;
  color: #334155 !important;
}

#guestOrderView .order-step-actions .order-step-back:hover {
  background: #f1f5f9 !important;
}

#guestOrderView .order-step-total {
  display: none;
  margin-right: auto;
  color: #64748b;
  font-size: .72rem !important;
}

#guestOrderView .order-step-total strong {
  display: block;
  color: #2563eb;
  font-size: 1.12rem !important;
}

#guestOrderView #secureOrderStatus.text-emerald-300 {
  color: #166534 !important;
}

@media (max-width: 760px) {
  #guestOrderView > .bg-gradient-to-r {
    padding: 1.35rem !important;
  }

  #guestOrderView > .bg-gradient-to-r h1 {
    font-size: 1.8rem !important;
  }

  #guestOrderView aside.portal-estimate-card {
    position: static;
  }

  #guestOrderView .order-stepper li {
    flex-direction: column;
    align-items: flex-start;
    gap: .35rem;
    font-size: .65rem !important;
  }

  #guestOrderView .order-step-actions {
    bottom: .35rem;
    gap: .45rem;
    padding: .5rem;
  }

  #guestOrderView .order-step-total {
    display: block;
  }

  #guestOrderView .order-step-actions button {
    padding-inline: .75rem;
    font-size: .78rem !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  #guestOrderView .order-progress-track span {
    transition: none;
  }
}
