:root {
  --ink: #080808;
  --muted: #4f6689;
  --line: #d4e3f9;
  --green: #07b75a;
  --green-hover: #059a4c;
  --green-ink: #067d3b;
  --green-soft: #eff8f2;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC",
    "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: #fff;
  color-scheme: light;
  -webkit-font-smoothing: antialiased;
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}
h1,
h2,
h3,
p {
  margin: 0;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input,
select {
  font: inherit;
}
button {
  cursor: pointer;
}
button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
a,
button,
input,
select {
  -webkit-tap-highlight-color: transparent;
}
a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--green-ink);
  outline-offset: 4px;
}
[hidden] {
  display: none !important;
}
.skip-link {
  position: absolute;
  top: -80px;
  left: 16px;
  padding: 12px;
  background: #fff;
  z-index: 5;
}
.skip-link:focus {
  top: 12px;
}

.site-announcement {
  background: #000;
  color: #fff;
  min-height: 32px;
  padding: 7px 24px;
  text-align: center;
}
.site-announcement p {
  font-size: 12px;
  line-height: 1.5;
  white-space: pre-line;
  overflow-wrap: anywhere;
}
.orders-header {
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.header-inner,
.footer-inner {
  width: min(1180px, calc(100% - 112px));
  margin: 0 auto;
}
.header-inner {
  min-height: 64px;
  display: flex;
  align-items: center;
  gap: 32px;
}
.brand {
  font-size: 34px;
  font-weight: 850;
  letter-spacing: -1.5px;
  line-height: 1.1;
  white-space: nowrap;
}
.brand span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
  letter-spacing: 0;
  margin-left: 4px;
}
.header-inner nav {
  margin-left: auto;
  display: flex;
  gap: 32px;
  align-items: center;
}
.header-inner nav a {
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
  line-height: 1.5;
  padding: 8px 0;
}
.header-inner nav a:hover {
  color: var(--green-ink);
}
.header-inner nav a[aria-current="page"] {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--green);
  text-decoration-thickness: 2px;
  text-underline-offset: 9px;
}

.orders-main {
  width: 100%;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.orders-heading {
  padding: 32px 24px 28px;
  text-align: center;
}
.orders-heading h1 {
  font-size: 46px;
  line-height: 1.2;
  font-weight: 850;
  letter-spacing: -1.5px;
}
.orders-heading p {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.6;
  font-weight: 550;
  margin-top: 7px;
}
.orders-stage {
  position: relative;
  isolation: isolate;
  flex: 1;
  min-height: 450px;
  padding: 0 0 72px;
}
.orders-stage::before {
  content: "";
  position: absolute;
  inset: 88px 0 0;
  background: var(--green);
  z-index: -1;
}
.orders-stage > .page-status,
.orders-stage > .error-message,
.orders-stage > noscript {
  width: min(1180px, calc(100% - 112px));
  margin-left: auto;
  margin-right: auto;
}
.orders-stage > .page-status {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  min-height: 160px;
  padding: 60px 24px;
}
.orders-stage > .error-message {
  margin-bottom: 20px;
}
.orders-stage > noscript .page-status {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 36px 24px;
}
.guest-query {
  width: min(560px, calc(100% - 112px));
  padding: 34px 36px 30px;
  margin: 0 auto;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
}
.guest-query h2 {
  font-size: 26px;
  font-weight: 800;
  line-height: 1.4;
  letter-spacing: -0.4px;
}
.query-description {
  margin-top: 8px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.75;
}
#lookup-form {
  display: grid;
  gap: 20px;
  margin-top: 26px;
}
.form-field {
  display: grid;
  gap: 8px;
  min-width: 0;
}
.form-field label {
  font-size: 14px;
  line-height: 1.5;
  font-weight: 650;
}
.form-field input,
.form-field select {
  width: 100%;
  min-width: 0;
  height: 50px;
  border: 1px solid #b8cbe6;
  border-radius: 9px;
  background: #fff;
  color: var(--ink);
  padding: 0 15px;
  font-size: 16px;
}
.form-field input::placeholder {
  color: #899dbb;
  opacity: 1;
}
.form-field input:focus,
.form-field select:focus {
  outline: 0;
  border-color: var(--green);
  box-shadow: 0 0 0 3px #07b75a14;
}
.form-field input[aria-invalid="true"] {
  border-color: #b33b33;
}
.code-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 142px;
  gap: 12px;
}
.code-row .button {
  padding: 0 12px;
  min-height: 50px;
}
.field-note {
  font-size: 12px;
  line-height: 1.7;
  color: var(--muted);
  overflow-wrap: anywhere;
}
#verify-email {
  min-height: 50px;
  font-size: 16px;
}
.account-query-link {
  margin-top: 22px;
  font-size: 13px;
  text-align: center;
  color: var(--muted);
  line-height: 1.7;
}
.account-query-link a {
  color: var(--green-ink);
  text-decoration: underline;
  text-underline-offset: 4px;
  font-weight: 650;
}

.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 40px;
  padding: 10px 20px;
  border: 1.5px solid transparent;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
  text-align: center;
  transition:
    background 0.15s,
    border-color 0.15s;
}
.button-green {
  color: #fff;
  background: var(--green);
  border-color: var(--green);
}
.button-green:hover:not(:disabled) {
  background: var(--green-hover);
  border-color: var(--green-hover);
}
.button-outline,
.button-neutral {
  color: var(--green-ink);
  border-color: var(--green);
  background: #fff;
}
.button-outline:hover:not(:disabled),
.button-neutral:hover:not(:disabled) {
  background: var(--green-soft);
}
#order-history {
  width: min(1180px, calc(100% - 112px));
  padding: 26px 28px 28px;
  margin: 0 auto;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
}
.access-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: var(--green-soft);
  border-radius: 14px;
  padding: 17px 22px;
  margin-bottom: 20px;
  min-height: 78px;
}
.access-strip > div {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: baseline;
  gap: 2px 24px;
  min-width: 0;
}
.access-strip span {
  grid-column: 1 / -1;
  font-size: 12px;
  font-weight: 650;
  color: var(--muted);
  line-height: 1.5;
}
.access-strip strong {
  font-size: 18px;
  line-height: 1.6;
  font-weight: 750;
  min-width: 0;
  overflow-wrap: anywhere;
}
.access-strip small {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.6;
  min-width: 0;
  overflow-wrap: anywhere;
}
.access-strip .button {
  min-width: 128px;
  flex-shrink: 0;
}
.order-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  text-align: left;
}
.order-table th {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
  font-weight: 650;
  padding: 12px 10px;
  border-bottom: 1px solid var(--line);
}
.order-table th:first-child {
  width: 30%;
}
.order-table th:nth-child(2) {
  width: 15%;
}
.order-table th:nth-child(3) {
  width: 15%;
}
.order-table th:nth-child(4) {
  width: 19%;
}
.order-table th:nth-child(5) {
  width: 21%;
}
.order-table td {
  padding: 18px 10px;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  line-height: 1.65;
  vertical-align: middle;
  min-width: 0;
}
.order-table tbody tr:last-child td {
  border-bottom: 0;
}
.order-item {
  display: flex;
  align-items: center;
  gap: 13px;
  min-width: 0;
}
.order-product-media {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  flex-shrink: 0;
  border-radius: 12px;
  background: var(--green-soft);
  color: var(--ink);
}
.order-product-logo {
  display: block;
  width: 42px;
  height: 42px;
  object-fit: contain;
}
.order-product-monogram {
  font:
    800 29px/1 Arial,
    sans-serif;
  letter-spacing: -1.2px;
}
.order-product-star {
  width: 38px;
  height: 38px;
  fill: currentColor;
}
.order-product-copy {
  min-width: 0;
  flex: 1;
}
.order-product {
  font-size: 17px;
  font-weight: 750;
  line-height: 1.4;
  overflow-wrap: anywhere;
}
.order-variant {
  font-size: 13px;
  line-height: 1.5;
  margin-top: 3px;
  overflow-wrap: anywhere;
}
.order-id {
  display: block;
  margin-top: 3px;
  font:
    10px/1.6 "SFMono-Regular",
    Consolas,
    monospace;
  letter-spacing: 0.02em;
  color: var(--muted);
  overflow-wrap: anywhere;
}
.order-table .order-amount {
  color: var(--ink);
  font-size: 22px;
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -0.5px;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}
.order-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  color: #5d6b78;
  background: #edf1f4;
  padding: 5px 13px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
  text-align: center;
}
.order-status.is-paid {
  color: var(--green-ink);
  background: #d8f3e3;
}
.order-status.is-pending,
.order-status.is-review {
  color: #95631c;
  background: #fff0cf;
}
.order-status.is-expired {
  color: #5d6b78;
  background: #edf1f4;
}
.row-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
}
.detail-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 8px 17px;
  border: 1.5px solid var(--green);
  border-radius: 999px;
  background: var(--green);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
  white-space: nowrap;
  transition:
    background 0.15s,
    border-color 0.15s;
}
.detail-link:hover {
  background: var(--green-hover);
  border-color: var(--green-hover);
}
.detail-link.is-secondary {
  color: var(--green-ink);
  background: #fff;
}
.detail-link.is-secondary:hover {
  background: var(--green-soft);
  border-color: var(--green);
}
.row-actions .button {
  min-height: 36px;
  padding: 8px 16px;
  font-size: 12px;
  white-space: nowrap;
}
.row-actions .continue-payment {
  color: #fff;
  background: #000;
  border-color: #000;
}
.row-actions .continue-payment:hover {
  background: #282828;
  border-color: #282828;
}
.order-table time {
  display: block;
  font-size: 12px;
  line-height: 1.6;
}
.history-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 22px;
}
.history-actions .button {
  min-width: 170px;
}
.page-status {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
  text-align: center;
  padding: 32px 0;
}
.empty-orders {
  padding: 50px 0 36px;
}
.empty-orders p {
  margin-bottom: 18px;
}
.error-message {
  color: #a3322b;
  background: #fff6f5;
  border-radius: 7px;
  padding: 10px 12px;
  font-size: 13px;
  line-height: 1.65;
  overflow-wrap: anywhere;
}
#history-error {
  margin-top: 18px;
}

.orders-footer-transition {
  position: relative;
  min-height: 80px;
  background: #fff;
  flex-shrink: 0;
}
.orders-footer-transition::before {
  content: "";
  position: absolute;
  top: -34px;
  left: 0;
  width: 100%;
  height: 54px;
  border-radius: 50% 50% 0 0 / 80% 80% 0 0;
  background: #fff;
}
.site-footer {
  background: #000;
  color: #fff;
  flex-shrink: 0;
  padding: 28px 0;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}
.footer-brand {
  font-size: 24px;
  font-weight: 800;
  line-height: 1.5;
}
#site-footer-text {
  max-width: 800px;
  margin-top: 6px;
  font-size: 12px;
  line-height: 1.7;
  color: #c6cfdb;
  white-space: pre-line;
  overflow-wrap: anywhere;
}
.footer-inner nav {
  display: flex;
  flex-shrink: 0;
  gap: 30px;
  font-size: 13px;
  line-height: 1.5;
}
.footer-inner nav a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

dialog {
  width: min(720px, calc(100vw - 32px));
  max-height: calc(100dvh - 40px);
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 24px 80px #08080826;
}
dialog::backdrop {
  background: #08080866;
  backdrop-filter: blur(3px);
}
.dialog-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.dialog-header h2 {
  font-size: 25px;
  line-height: 1.4;
  font-weight: 800;
}
.close-button {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  border: 0;
  background: none;
  color: var(--muted);
  padding: 5px;
}
.close-button svg {
  display: block;
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}
#detail-content {
  margin-top: 22px;
  min-width: 0;
}
.detail-hero {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}
.detail-hero .order-product-media {
  width: 64px;
  height: 64px;
}
.detail-hero .order-product-logo {
  width: 46px;
  height: 46px;
}
.detail-product-copy {
  flex: 1;
  min-width: 0;
}
.detail-hero .order-status {
  flex-shrink: 0;
}
.detail-product {
  font-size: 23px;
  line-height: 1.35;
  font-weight: 800;
  overflow-wrap: anywhere;
}
.detail-variant {
  margin-top: 5px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}
.detail-meta {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 11px 18px;
  margin: 24px 0;
  padding: 0 4px;
  font-size: 14px;
  line-height: 1.7;
}
.detail-meta dt {
  color: var(--muted);
}
.detail-meta dd {
  margin: 0;
  min-width: 0;
  overflow-wrap: anywhere;
}
.detail-meta .detail-amount {
  color: var(--ink);
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.5px;
  line-height: 1.3;
}
.detail-action {
  width: 100%;
  margin-top: 12px;
}
.detail-note {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
  margin-top: 15px;
  overflow-wrap: anywhere;
}
.detail-section {
  margin-top: 20px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}
.detail-section h3 {
  font-size: 19px;
  font-weight: 750;
  line-height: 1.5;
  margin-bottom: 10px;
}
.delivery-code {
  margin: 14px 0;
  padding: 18px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  border: 1px solid #cde9d8;
  border-radius: 10px;
  background: var(--green-soft);
  color: var(--ink);
  font:
    15px/1.7 "SFMono-Regular",
    Consolas,
    monospace;
  user-select: all;
}
.delivery-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.delivery-actions .button {
  flex: 1;
  min-width: 140px;
}
.delivery-note {
  margin-top: 10px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
  overflow-wrap: anywhere;
}
.delivery-success {
  color: var(--green-ink);
}
.invoice-form {
  display: grid;
  gap: 16px;
}
.invoice-form .form-field input,
.invoice-form .form-field select {
  height: 46px;
}
.invoice-status {
  color: var(--green-ink);
  font-size: 14px;
  line-height: 1.7;
}
.invoice-status small {
  color: var(--muted);
  overflow-wrap: anywhere;
}

@media (max-width: 1100px) {
  .header-inner,
  .footer-inner,
  .orders-stage > .page-status,
  .orders-stage > .error-message,
  .orders-stage > noscript,
  #order-history {
    width: calc(100% - 64px);
  }
  .guest-query {
    width: min(560px, calc(100% - 64px));
  }
  .header-inner {
    gap: 22px;
  }
  .header-inner nav {
    gap: 22px;
  }
  #order-history {
    padding: 24px 20px;
  }
  .order-table th,
  .order-table td {
    padding-left: 8px;
    padding-right: 8px;
  }
  .order-table th:first-child {
    width: 28%;
  }
  .order-table th:nth-child(5) {
    width: 23%;
  }
  .order-item {
    gap: 10px;
  }
  .order-product-media {
    width: 52px;
    height: 52px;
  }
  .order-product-logo {
    width: 37px;
    height: 37px;
  }
  .order-product-star {
    width: 34px;
    height: 34px;
  }
  .order-table .order-amount {
    font-size: 20px;
  }
  .order-product {
    font-size: 16px;
  }
  .access-strip > div {
    gap: 3px 16px;
  }
  .access-strip strong {
    font-size: 16px;
  }
}
@media (max-width: 850px) {
  .header-inner,
  .footer-inner,
  .orders-stage > .page-status,
  .orders-stage > .error-message,
  .orders-stage > noscript,
  #order-history {
    width: calc(100% - 40px);
  }
  .header-inner nav {
    display: none;
  }
  .header-inner .account-nav {
    margin-left: auto;
  }
  .brand {
    font-size: 31px;
  }
  .brand span {
    font-size: 11px;
  }
  .orders-heading {
    padding: 30px 20px 25px;
  }
  .orders-heading h1 {
    font-size: 38px;
  }
  .orders-heading p {
    font-size: 14px;
  }
  .orders-stage {
    min-height: 440px;
    padding-bottom: 60px;
  }
  .orders-stage::before {
    top: 80px;
  }
  .guest-query {
    width: min(560px, calc(100% - 40px));
    padding: 30px;
  }
  .guest-query h2 {
    font-size: 24px;
  }
  #order-history {
    padding: 20px;
  }
  .access-strip {
    align-items: center;
    padding: 16px;
    gap: 14px;
    margin-bottom: 8px;
  }
  .access-strip > div {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 3px;
  }
  .access-strip span {
    font-size: 11px;
  }
  .access-strip strong {
    font-size: 14px;
  }
  .access-strip small {
    font-size: 11px;
  }
  .access-strip .button {
    min-width: 104px;
    font-size: 12px;
    padding: 8px 12px;
  }
  .order-table thead {
    display: none;
  }
  .order-table tbody {
    display: block;
  }
  .order-table tr {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px 14px;
    padding: 20px 0;
    border-bottom: 1px solid var(--line);
  }
  .order-table tr:last-child {
    border-bottom: 0;
  }
  .order-table td {
    display: block;
    padding: 0;
    border: 0;
    font-size: 14px;
  }
  .order-table td:first-child {
    grid-column: 1;
    grid-row: 1 / 3;
  }
  .order-table td:nth-child(2) {
    grid-column: 2;
    grid-row: 1;
    text-align: right;
  }
  .order-table td:nth-child(3) {
    grid-column: 2;
    grid-row: 2;
    text-align: right;
  }
  .order-table td:nth-child(4) {
    grid-column: 1 / -1;
    color: var(--muted);
  }
  .order-table td:nth-child(5) {
    grid-column: 1 / -1;
    padding-top: 7px;
  }
  .order-item {
    align-items: flex-start;
  }
  .order-product-media {
    width: 48px;
    height: 48px;
    border-radius: 10px;
  }
  .order-product-logo {
    width: 34px;
    height: 34px;
  }
  .order-product-monogram {
    font-size: 25px;
  }
  .order-product-star {
    width: 31px;
    height: 31px;
  }
  .order-product {
    font-size: 16px;
  }
  .order-variant {
    font-size: 12px;
  }
  .order-id {
    font-size: 10px;
  }
  .order-table .order-amount {
    font-size: 20px;
  }
  .order-status {
    font-size: 11px;
    padding: 5px 10px;
  }
  .row-actions {
    justify-content: flex-end;
  }
  .order-table time {
    font-size: 11px;
  }
  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
  .footer-brand {
    font-size: 22px;
  }
  .orders-footer-transition {
    min-height: 70px;
  }
}
@media (max-width: 520px) {
  .orders-heading h1 {
    font-size: 34px;
    letter-spacing: -1px;
  }
  .orders-heading p {
    font-size: 13px;
  }
  .guest-query {
    padding: 26px 22px;
  }
  .guest-query h2 {
    font-size: 23px;
  }
  .query-description {
    font-size: 13px;
  }
  #lookup-form {
    gap: 18px;
    margin-top: 22px;
  }
  .code-row {
    grid-template-columns: minmax(0, 1fr) 126px;
    gap: 10px;
  }
  .code-row .button {
    font-size: 13px;
    padding: 0 9px;
  }
  .account-query-link {
    font-size: 12px;
  }
  #order-history {
    padding: 18px;
  }
  .access-strip {
    flex-wrap: wrap;
    gap: 12px;
  }
  .access-strip > div {
    flex: 1 1 100%;
  }
  .access-strip .button {
    margin-left: auto;
  }
  dialog {
    width: calc(100vw - 24px);
    padding: 20px;
  }
  .dialog-header h2 {
    font-size: 23px;
  }
  .detail-hero {
    padding: 14px;
    gap: 12px;
  }
  .detail-hero .order-product-media {
    width: 52px;
    height: 52px;
  }
  .detail-hero .order-product-logo {
    width: 38px;
    height: 38px;
  }
  .detail-product-copy {
    flex-basis: calc(100% - 64px);
  }
  .detail-product {
    font-size: 20px;
  }
  .detail-variant {
    font-size: 13px;
  }
  .detail-hero .order-status {
    margin-left: 64px;
  }
  .detail-meta {
    grid-template-columns: 76px minmax(0, 1fr);
    gap: 9px 12px;
    font-size: 13px;
    padding: 0;
  }
  .detail-meta .detail-amount {
    font-size: 24px;
  }
  .detail-section {
    padding: 16px;
  }
  .detail-section h3 {
    font-size: 18px;
  }
  .delivery-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
  }
  .delivery-actions .button {
    min-width: 0;
  }
  .delivery-code {
    font-size: 13px;
    padding: 15px;
  }
}
@media (max-width: 420px) {
  .brand span {
    display: none;
  }
  .guest-query {
    padding: 24px 20px;
  }
  .code-row {
    grid-template-columns: minmax(0, 1fr) 112px;
    gap: 8px;
  }
  .code-row .button {
    font-size: 12px;
    padding: 0 7px;
  }
  #order-history {
    padding: 16px;
  }
  .order-table tr {
    gap: 8px 10px;
  }
  .order-product-media {
    width: 44px;
    height: 44px;
  }
  .order-product-logo {
    width: 32px;
    height: 32px;
  }
  .order-item {
    gap: 8px;
  }
  .order-product {
    font-size: 14px;
  }
  .order-table .order-amount {
    font-size: 18px;
  }
  .order-status {
    font-size: 10px;
    padding: 5px 8px;
  }
  .row-actions .button,
  .detail-link {
    font-size: 12px;
    padding: 8px 14px;
  }
  .detail-hero .order-status {
    margin-left: 0;
  }
}
@media (max-width: 359px) {
  .guest-query {
    padding: 24px 18px;
  }
  .code-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 9px;
  }
  .code-row .button {
    min-height: 42px;
    font-size: 13px;
  }
  .order-table tr {
    grid-template-columns: minmax(0, 1fr) 86px;
  }
  .order-table .order-amount {
    font-size: 17px;
  }
  .order-table td:nth-child(3) {
    overflow-wrap: anywhere;
  }
  .history-actions .button {
    min-width: 0;
    width: 100%;
  }
  .detail-hero .order-product-media {
    width: 44px;
    height: 44px;
  }
  .detail-hero .order-product-logo {
    width: 32px;
    height: 32px;
  }
  .detail-product-copy {
    flex-basis: calc(100% - 56px);
  }
  .detail-product {
    font-size: 18px;
  }
  .detail-meta {
    grid-template-columns: 70px minmax(0, 1fr);
    gap: 8px 10px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
    scroll-behavior: auto !important;
  }
}
