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

.ghost-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  min-height: auto;
  padding: 10px 18px;
  border-radius: var(--radius-sm, 10px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.58);
  text-decoration: none;
  font-family: var(--font, "Inter", system-ui, sans-serif);
  font-size: var(--fs-ui, 11px);
  font-weight: 500;
  letter-spacing: 0.01em;
  background: transparent;
  transition:
    color 0.4s var(--ease),
    border-color 0.4s var(--ease),
    transform 0.4s var(--ease),
    background 0.4s var(--ease);
}

.ghost-btn:hover {
  border-color: rgba(255, 255, 255, 0.38);
  color: rgba(255, 255, 255, 0.82);
  background: rgba(255, 255, 255, 0.03);
  transform: translateY(-1px);
}

.ghost-btn--text {
  border: none;
  padding: 11px 6px;
  color: rgba(255, 255, 255, 0.28);
  background: transparent;
}

.ghost-btn--text:hover {
  color: rgba(255, 255, 255, 0.62);
  background: transparent;
  transform: none;
}

.ghost-btn--text .mono-arrow {
  display: inline-block;
  font-style: normal;
  transition: transform 0.4s var(--ease);
}

.ghost-btn--text:hover .mono-arrow {
  transform: translateX(4px);
}

.page-shell {
  max-width: 920px;
  margin: 0 auto;
  padding: 1.5rem 1rem 3rem;
}

.page-card {
  background: rgba(255, 255, 255, 0.065);
  border: 1px solid var(--border, rgba(255, 255, 255, 0.09));
  border-radius: var(--radius-lg, 16px);
  padding: 1.5rem;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  opacity: 0;
  animation: dp-rise 0.9s var(--ease, cubic-bezier(0.16, 1, 0.3, 1)) forwards;
}

.page-title {
  margin: 0 0 0.35rem;
  font-family: var(--font-display, "Playfair Display", Georgia, serif);
  font-size: var(--fs-title, clamp(1.45rem, 3.5vw, 1.7rem));
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.08;
  color: rgba(255, 255, 255, 0.82);
  min-height: 1.15em;
}

.page-title-type {
  display: inline;
}

.page-eyebrow-type {
  margin: 0 0 0.65rem;
  font-family: var(--font, "Inter", system-ui, sans-serif);
  font-size: var(--fs-caption, 10px);
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: none;
  color: rgba(255, 255, 255, 0.22);
  min-height: 1.2em;
}

.page-lead {
  margin: 0 0 1.25rem;
  color: var(--muted, rgba(255, 255, 255, 0.32));
  font-size: var(--fs-body, 12px);
  font-weight: 400;
  line-height: 1.65;
}

.page-lead code {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.88em;
  color: rgba(255, 255, 255, 0.7);
}

.checkout-grid {
  display: grid;
  gap: 1.25rem;
}

.address-autocomplete-wrap {
  position: relative;
}

.field--address-autocomplete {
  position: relative;
  z-index: 1;
}

.field--address-autocomplete.is-suggest-open {
  z-index: 1000;
}

.address-autocomplete {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 1100;
  margin: 0;
  padding: 0.35rem 0;
  list-style: none;
  border-radius: 12px;
  background: #1a1a1a;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
  max-height: 240px;
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px) scale(0.98);
  transform-origin: top center;
  pointer-events: none;
  transition:
    opacity 0.24s var(--ease, cubic-bezier(0.16, 1, 0.3, 1)),
    transform 0.24s var(--ease, cubic-bezier(0.16, 1, 0.3, 1)),
    visibility 0.24s;
}

.address-autocomplete.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.address-autocomplete--above {
  top: auto;
  bottom: calc(100% + 6px);
  transform-origin: bottom center;
  transform: translateY(8px) scale(0.98);
}

.address-autocomplete--above.is-open {
  transform: translateY(0) scale(1);
}

.address-autocomplete-status {
  display: none;
  padding: 0.6rem 0.75rem;
  color: rgba(255, 255, 255, 0.45);
  font-size: var(--fs-body, 12px);
  line-height: 1.4;
}

.address-autocomplete.is-loading .address-autocomplete-status {
  display: block;
}

.address-autocomplete.is-loading .address-autocomplete-results {
  display: none;
}

.address-autocomplete.hidden {
  display: none !important;
}

@media (prefers-reduced-motion: reduce) {
  .address-autocomplete {
    transition: none !important;
    transform: none !important;
  }
}

.address-autocomplete-item {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  width: 100%;
  padding: 0.55rem 0.75rem;
  border: none;
  background: transparent;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.78);
  font-family: var(--font, "Inter", system-ui, sans-serif);
  font-size: var(--fs-body, 12px);
  font-weight: 400;
  line-height: 1.4;
  text-align: left;
}

.address-autocomplete-item:hover,
.address-autocomplete-item:focus-visible {
  background: rgba(255, 255, 255, 0.06);
  outline: none;
}

.address-autocomplete-pin {
  flex-shrink: 0;
  width: 14px;
  height: 14px;
  margin-top: 2px;
  color: rgba(255, 255, 255, 0.45);
}

.address-autocomplete-label {
  flex: 1;
  min-width: 0;
}

@media (min-width: 860px) {
  .checkout-grid {
    grid-template-columns: 1.15fr 0.85fr;
  }
}

.form-grid {
  display: grid;
  gap: 0.85rem;
}

.form-grid.two-col {
  grid-template-columns: 1fr 1fr;
}

@media (max-width: 640px) {
  .form-grid.two-col {
    grid-template-columns: 1fr;
  }
}

.field input,
.field textarea,
.track-form input {
  width: 100%;
  min-height: 42px;
  border-radius: var(--radius-sm, 10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.02);
  color: rgba(232, 232, 232, 0.76);
  padding: 0.55rem 0.75rem;
  font-family: var(--font, "Inter", system-ui, sans-serif);
  font-size: 0.88rem;
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 1.45;
  transition:
    border-color 0.35s var(--ease),
    background 0.35s var(--ease),
    box-shadow 0.35s var(--ease);
}

.field textarea {
  min-height: 90px;
  resize: vertical;
}

.field input:focus,
.field textarea:focus,
.track-form input:focus {
  outline: none;
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.04);
  box-shadow: 0 0 0 1px rgba(124, 58, 237, 0.1);
}

.field label {
  display: block;
  margin-bottom: 0.4rem;
  font-family: var(--font, "Inter", system-ui, sans-serif);
  font-size: var(--fs-caption, 10px);
  font-weight: 500;
  letter-spacing: 0.03em;
  text-transform: none;
  color: rgba(255, 255, 255, 0.32);
}

.summary-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--radius-md, 12px);
  padding: 1rem;
  transition: border-color 0.3s var(--ease);
}

.summary-card:hover {
  border-color: rgba(255, 255, 255, 0.12);
}

.summary-card h3 {
  margin: 0 0 0.75rem;
  font-size: 0.88rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.72);
}

.summary-lines {
  list-style: none;
  margin: 0 0 0.85rem;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}

.summary-lines li {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.84rem;
  color: rgba(255, 255, 255, 0.62);
}

.summary-totals {
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  padding-top: 0.75rem;
  display: grid;
  gap: 0.45rem;
}

.summary-totals div {
  display: flex;
  justify-content: space-between;
  font-size: 0.84rem;
  color: rgba(255, 255, 255, 0.58);
}

.summary-totals .total-row {
  font-weight: 600;
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.78);
}

.primary-btn,
.secondary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: auto;
  padding: 10px 20px;
  border-radius: var(--radius-sm, 10px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  font-family: var(--font, "Inter", system-ui, sans-serif);
  font-size: var(--fs-ui, 11px);
  font-weight: 500;
  letter-spacing: 0.01em;
  cursor: pointer;
  text-decoration: none;
  background: transparent;
  transition:
    color 0.4s var(--ease),
    border-color 0.4s var(--ease),
    transform 0.4s var(--ease),
    background 0.4s var(--ease);
}

.primary-btn {
  width: 100%;
  margin-top: 1rem;
  color: rgba(255, 255, 255, 0.75);
}

.primary-btn:hover:not(:disabled) {
  transform: translateY(-1px);
  color: rgba(255, 255, 255, 0.86);
  border-color: rgba(255, 255, 255, 0.38);
  background: rgba(255, 255, 255, 0.03);
  box-shadow: none;
}

.primary-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.secondary-btn {
  color: rgba(255, 255, 255, 0.55);
  border-color: rgba(255, 255, 255, 0.12);
}

.secondary-btn:hover {
  border-color: rgba(255, 255, 255, 0.32);
  color: rgba(255, 255, 255, 0.82);
  background: rgba(255, 255, 255, 0.03);
  transform: translateY(-1px);
}

.alert {
  margin: 0 0 1rem;
  padding: 0.75rem 0.9rem;
  border-radius: var(--radius-sm, 10px);
  font-size: var(--fs-body, 12px);
}

.alert.error {
  background: rgba(127, 29, 29, 0.35);
  border: 1px solid rgba(248, 113, 113, 0.35);
  color: #fecaca;
}

.alert.info {
  background: rgba(30, 58, 138, 0.28);
  border: 1px solid rgba(96, 165, 250, 0.28);
  color: #dbeafe;
}

.order-card {
  display: grid;
  gap: 1.25rem;
  margin-top: 0.5rem;
}

.order-card-reveal {
  animation: dp-rise 0.65s var(--ease, cubic-bezier(0.16, 1, 0.3, 1)) forwards;
}

.order-card-head {
  display: grid;
  gap: 0.75rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.order-head-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
}

.order-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.status-pill {
  font-family: var(--font, "Inter", system-ui, sans-serif);
  font-size: var(--fs-micro, 9px);
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: none;
  padding: 4px 10px;
  border-radius: var(--radius-pill, 999px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.02);
}

.status-pill--pay {
  border-color: rgba(190, 150, 255, 0.2);
  color: rgba(190, 150, 255, 0.75);
  background: rgba(124, 58, 237, 0.08);
}

.order-id-block {
  display: grid;
  gap: 0.65rem;
}

.order-id-code {
  display: block;
  font-family: var(--font-mono, "JetBrains Mono", monospace);
  font-size: 0.78rem;
  font-weight: 300;
  line-height: 1.5;
  word-break: break-all;
  color: rgba(255, 255, 255, 0.88);
  padding: 0.65rem 0.75rem;
  border-radius: var(--radius-md, 12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
}

.order-action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.order-tracking-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.65rem;
}

.order-tracking {
  margin: 0;
  display: grid;
  gap: 0.35rem;
}

.order-tracking-code {
  font-family: var(--font-mono, "JetBrains Mono", monospace);
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.85);
  word-break: break-all;
}

.order-items-section {
  display: grid;
  gap: 0.5rem;
}

.order-line-name {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
}

.order-line-brand {
  font-family: var(--font, "Inter", system-ui, sans-serif);
  font-size: var(--fs-micro, 9px);
  font-weight: 500;
  letter-spacing: 0.03em;
  text-transform: none;
  color: rgba(255, 255, 255, 0.28);
}

.order-line-qty {
  color: rgba(255, 255, 255, 0.4);
  font-weight: 300;
}

.order-line-price {
  font-family: var(--font, "Inter", system-ui, sans-serif);
  font-size: var(--fs-ui, 11px);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  color: rgba(255, 255, 255, 0.75);
  white-space: nowrap;
}

.order-extras {
  margin-top: 1.25rem;
}

/* —— Action buttons (order / help / track) —— */
.action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: auto;
  padding: 10px 18px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-sm, 10px);
  background: transparent;
  color: rgba(255, 255, 255, 0.62);
  font-family: var(--font, "Inter", system-ui, sans-serif);
  font-size: var(--fs-ui, 11px);
  font-weight: 500;
  letter-spacing: 0.01em;
  text-decoration: none;
  cursor: pointer;
  transition:
    color 0.4s var(--ease),
    border-color 0.4s var(--ease),
    transform 0.4s var(--ease),
    background 0.4s var(--ease);
}

.action-btn:hover:not(:disabled) {
  color: rgba(255, 255, 255, 0.84);
  border-color: rgba(255, 255, 255, 0.38);
  background: rgba(255, 255, 255, 0.03);
  transform: translateY(-1px);
}

.action-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.action-btn--accent {
  border-color: rgba(190, 150, 255, 0.28);
  color: rgba(210, 180, 255, 0.9);
  background: rgba(124, 58, 237, 0.1);
}

.action-btn--accent:hover {
  border-color: rgba(190, 150, 255, 0.45);
  background: rgba(124, 58, 237, 0.16);
}

.action-btn--flash {
  border-color: rgba(134, 239, 172, 0.35);
  color: rgba(187, 247, 208, 0.95);
}

.order-eyebrow {
  margin: 0;
  font-family: var(--font, "Inter", system-ui, sans-serif);
  font-size: var(--fs-micro, 9px);
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: none;
  color: rgba(255, 255, 255, 0.32);
}

.order-meta,
.order-tracking,
.order-footnote,
.muted {
  margin: 0;
  color: var(--muted, rgba(255, 255, 255, 0.5));
  line-height: 1.55;
  font-weight: 300;
}

.order-lines {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}

.order-line {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.order-totals {
  display: grid;
  gap: 0.45rem;
}

.order-totals div {
  display: flex;
  justify-content: space-between;
  color: rgba(255, 255, 255, 0.7);
}

.order-total-row {
  font-weight: 600;
  font-size: 1.05rem;
  padding-top: 0.35rem;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  color: #fff;
}

.track-form {
  display: grid;
  gap: 0.85rem;
  max-width: 560px;
}

.track-submit-btn {
  width: 100%;
  min-height: auto;
  margin-top: 0.35rem;
  justify-content: center;
}

.home-title-tld {
  color: var(--accent, rgba(167, 139, 250, 0.75));
}

.help-panel {
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.help-chat-intro {
  margin: 0 0 0.55rem;
  font-size: 0.82rem;
  line-height: 1.45;
}

.help-chat-panel {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0;
  background: rgba(0, 0, 0, 0.32);
  overflow: hidden;
}

.help-chat-panel .help-thread {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-height: 280px;
  margin: 0;
  padding: 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  overflow: auto;
  scrollbar-width: thin;
}

.help-chat-panel .help-compose {
  padding: 0.65rem;
}

.help-chat-panel .help-compose-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  margin-top: 0.55rem;
}

.help-chat-panel .help-compose .action-btn {
  width: auto;
  min-height: 36px;
  margin-top: 0;
  padding: 0.45rem 0.85rem;
  border-radius: 0;
}

.help-entry {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.65rem;
}

.help-entry-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.4rem 0.75rem;
  border-radius: 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
  color: rgba(255, 255, 255, 0.72);
  font-family: var(--font, "Inter", system-ui, sans-serif);
  font-size: 0.82rem;
  font-weight: 400;
  cursor: pointer;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease), color 0.2s var(--ease);
}

.help-entry-btn:hover {
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.9);
}

.help-entry-btn--static {
  cursor: default;
  opacity: 0.65;
}

.help-entry-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.15rem;
  height: 1.15rem;
  border-radius: 0;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1;
}

.help-entry-badge {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: rgba(134, 239, 172, 0.95);
  box-shadow: 0 0 0 2px rgba(10, 10, 10, 0.9);
}

.help-entry-badge.hidden {
  display: none;
}

.help-panel-body {
  width: 100%;
}

.help-panel-body.hidden {
  display: none;
}

.help-panel--create {
  width: 100%;
}

.help-thread {
  display: grid;
  gap: 0.65rem;
  max-height: 280px;
  overflow: auto;
  margin: 0.75rem 0;
}

.help-bubble-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.28rem;
  max-width: 88%;
}

.help-bubble-wrap.customer {
  align-self: flex-start;
  align-items: flex-start;
}

.help-bubble-wrap.admin {
  align-self: flex-end;
  align-items: flex-end;
}

.help-bubble-label {
  font-family: var(--font-mono, "JetBrains Mono", ui-monospace, monospace);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.28);
}

.help-bubble {
  border-radius: var(--radius-md, 12px);
  padding: 0.65rem 0.8rem;
  max-width: 100%;
  line-height: 1.45;
  white-space: pre-wrap;
}

.help-chat-panel .help-bubble {
  border-radius: 14px;
  padding: 0.55rem 0.75rem;
  font-size: 0.88rem;
  line-height: 1.5;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
}

.help-chat-panel .help-bubble-wrap.customer .help-bubble {
  border-radius: 14px 14px 14px 4px;
}

.help-chat-panel .help-bubble-wrap.admin .help-bubble {
  border-radius: 14px 14px 4px 14px;
}

.help-bubble.customer {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  margin-right: auto;
}

.help-chat-panel .help-bubble-wrap.customer {
  align-self: flex-start;
}

.help-chat-panel .help-bubble.customer {
  margin-right: 0;
}

.help-bubble.admin {
  background: rgba(124, 58, 237, 0.12);
  border: 1px solid rgba(167, 139, 250, 0.18);
  margin-left: auto;
}

.help-chat-panel .help-bubble-wrap.admin {
  align-self: flex-end;
}

.help-chat-panel .help-bubble.admin {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.1);
  margin-left: 0;
}

.help-bubble time {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.72rem;
  opacity: 0.7;
}

.help-chat-panel .help-bubble time {
  margin-top: 0.45rem;
  font-family: var(--font-mono, "JetBrains Mono", ui-monospace, monospace);
  font-size: 0.62rem;
  letter-spacing: 0.04em;
  opacity: 1;
  color: rgba(255, 255, 255, 0.28);
}

.help-compose textarea {
  width: 100%;
  min-height: 90px;
  border-radius: var(--radius-sm, 10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
  color: rgba(255, 255, 255, 0.92);
  padding: 0.65rem 0.75rem;
  font-family: var(--font, "Inter", system-ui, sans-serif);
  font-size: 0.95rem;
  font-weight: 400;
  line-height: 1.45;
  resize: vertical;
  transition: border-color 0.25s var(--ease);
}

.help-compose textarea:focus {
  outline: none;
  border-color: rgba(255, 255, 255, 0.22);
}

.help-chat-panel .help-compose textarea {
  min-height: 72px;
  border-radius: 12px;
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.38);
  font-size: 0.95rem;
}

.help-compose .action-btn {
  margin-top: 0.65rem;
  width: 100%;
}

.help-empty {
  font-style: italic;
}

@media (prefers-reduced-motion: reduce) {
  .page-card,
  .order-card-reveal {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}
