/* Purchase flows and shared form surfaces. */
.detail-info .price,
.cart-row .price,
.checkout-bar .price,
.summary-line .price,
.order-actions .price {
  min-width: 0;
  max-width: 100%;
  white-space: normal;
  overflow-wrap: anywhere;
}
.detail {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: start;
  gap: 48px;
  margin: 16px 0 36px;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
}
.detail-media { min-width: 0; }
.detail-thumbnails { display: flex; gap: 8px; overflow-x: auto; margin-top: 12px; padding-bottom: 4px; }
.detail-thumbnails button { flex: 0 0 60px; width: 60px; height: 60px; padding: 2px; border: 1px solid #dedede; border-radius: 4px; background: #fff; }
.detail-thumbnails button[aria-pressed="true"] { border-color: #e2231a; }
.detail-thumbnails img { width: 100%; height: 100%; object-fit: contain; }
.detail-images { max-width: 800px; margin: 24px auto 0; }
.detail-images img { display: block; width: 100%; height: auto; }
.detail-description p { white-space: pre-wrap; overflow-wrap: anywhere; }
.detail-photo {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  max-height: 560px;
  object-fit: contain;
  object-position: center;
  background: #f6f6f6;
  border-radius: 8px;
}
.detail-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
  gap: 18px;
  padding: 12px 0;
}
.detail-info .eyebrow {
  margin: 0;
}
.detail-info h1 {
  font-size: 28px;
  line-height: 1.5;
  font-weight: 700;
  overflow-wrap: anywhere;
}
.detail-info h3 {
  font-size: 15px;
  line-height: 1.5;
}
.detail-info > div:has(> .price) {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px 12px;
}
.detail-info .price {
  font-size: 32px;
  line-height: 1.2;
  font-weight: 750;
  color: #e2231a;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}
.detail-info .original {
  margin: 0;
  font-size: 14px;
}
.detail-info > small,
.detail-info > .muted {
  font-size: 13px;
  line-height: 1.8;
}
.detail-info .divider {
  margin: 4px 0;
}
.sku-axis {
  display: grid;
  gap: 10px;
}
.sku-axis + .sku-axis {
  margin-top: -4px;
}
.detail-info > .row-gap {
  gap: 20px;
}
.detail-info > .row-gap > small {
  color: #444444;
  font-size: 14px;
}
.specs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  min-width: 0;
}
.spec {
  max-width: 100%;
  min-height: 42px;
  border: 1px solid var(--line, #e7e7e7);
  border-radius: 6px;
  padding: 9px 16px;
  background: #fff;
  color: #555555;
  font-size: 14px;
  line-height: 1.6;
  white-space: normal;
  overflow-wrap: anywhere;
  transition:
    border-color 150ms,
    background-color 150ms;
}
.spec:hover {
  border-color: #e7a5a0;
}
.spec.active {
  color: var(--brand, #e2231a);
  border-color: var(--brand, #e2231a);
  background: var(--brand-soft, #fff1f0);
  font-weight: 600;
}
.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
}
.fulfillment-notice,
.stock-empty {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid #f0c8c4;
  border-radius: 6px;
  background: #fff7f6;
  color: #9f231d;
}
.fulfillment-notice.pickup {
  border-color: #f0b76f;
  background: #fff7e9;
  color: #8f4c00;
}
.fulfillment-notice svg,
.stock-empty svg {
  flex: 0 0 21px;
  width: 21px;
  height: 21px;
}
.fulfillment-notice div,
.stock-empty div {
  display: grid;
  gap: 4px;
  min-width: 0;
}
.fulfillment-notice strong,
.stock-empty strong {
  font-size: 16px;
}
.fulfillment-notice span,
.stock-empty span {
  font-size: 12px;
  line-height: 1.6;
}
.stock-empty {
  border-color: #dddddd;
  background: #f5f5f5;
  color: #555555;
}
.detail-actions .button {
  flex: 1 1 160px;
  min-height: 50px;
  font-size: 15px;
}
.detail-actions .button:not(.primary) {
  background: #fff1f0;
  border-color: #f5b9b5;
  color: #e2231a;
}
.detail-actions .button:not(.primary):hover {
  background: #ffe7e4;
}
.detail-actions .button.primary {
  background: #e2231a;
  border-color: #e2231a;
  color: #fff;
}
.detail-actions .button.primary:hover {
  background: #c91c14;
  border-color: #c91c14;
}
.detail-description {
  padding: 30px 0 16px;
  border-top: 1px solid var(--line, #e7e7e7);
  font-size: 15px;
  line-height: 2;
}
.detail-description h2 {
  font-size: 21px;
  margin-bottom: 20px;
}
.detail-description p {
  max-width: 900px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  color: #666666;
}
.quantity {
  display: inline-grid;
  grid-template-columns: 36px 40px 36px;
  flex: 0 0 auto;
  align-items: center;
  height: 40px;
  border: 1px solid var(--line, #e7e7e7);
  border-radius: 6px;
  overflow: hidden;
  background: #fff;
}
.quantity button {
  display: grid;
  place-items: center;
  width: 36px;
  height: 38px;
  padding: 0;
}
.quantity button:hover {
  background: var(--brand-soft, #fff1f0);
  color: var(--brand, #e2231a);
}
.quantity svg {
  width: 15px;
  height: 15px;
}
.quantity span {
  min-width: 0;
  font-size: 14px;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.cart-row {
  display: grid;
  grid-template-columns: 22px 104px minmax(0, 1fr) 114px 40px;
  align-items: center;
  gap: 22px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line, #e7e7e7);
}
.cart-row > img {
  width: 104px;
  height: 104px;
  object-fit: contain;
  background: #f6f6f6;
  border-radius: 6px;
}
.cart-row > div {
  min-width: 0;
}
.cart-row h3 {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.65;
  margin: 0 0 7px;
  overflow-wrap: anywhere;
}
.cart-row small {
  display: block;
  font-size: 13px;
  line-height: 1.7;
  overflow-wrap: anywhere;
}
.cart-row .price {
  margin-top: 9px;
  font-size: 21px;
  color: #e2231a;
  overflow-wrap: anywhere;
  font-variant-numeric: tabular-nums;
}
.cart-row .delete-item {
  color: #999999;
}
.cart-row .delete-item:hover {
  background: #fff1f0;
  color: #d01b14;
}
.checkout-bar {
  position: sticky;
  z-index: 9;
  bottom: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  min-height: 88px;
  margin-top: 28px;
  padding: 18px 0;
  border-top: 1px solid #dddddd;
  border-bottom: 1px solid var(--line, #e7e7e7);
  background: #fff;
}
.checkout-bar > div {
  display: flex;
  flex-wrap: wrap;
  min-width: 0;
  align-items: center;
  justify-content: flex-end;
  gap: 12px 20px;
}
.checkout-bar small {
  font-size: 13px;
}
.checkout-bar .price {
  font-size: 26px;
  color: #e2231a;
  overflow-wrap: anywhere;
  font-variant-numeric: tabular-nums;
}
.checkout-bar .button {
  min-height: 48px;
  padding-inline: 26px;
}
.checkbox {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 14px;
  line-height: 1.8;
}
.checkbox input {
  margin-top: 4px;
}
input[type="checkbox"],
input[type="radio"] {
  width: 18px;
  height: 18px;
  min-width: 18px;
  flex: 0 0 auto;
  padding: 0;
  accent-color: var(--brand, #e2231a);
  cursor: pointer;
}
input[type="checkbox"]:disabled,
input[type="radio"]:disabled {
  cursor: not-allowed;
}
.panel-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.85fr);
  align-items: start;
  gap: 52px;
}
.panel-grid > * {
  min-width: 0;
}
.form-section {
  padding: 24px 0;
  border-bottom: 1px solid var(--line, #e7e7e7);
}
.form-section:first-child {
  padding-top: 0;
}
.form-section:last-child {
  border-bottom: 0;
}
.form-section > h3 {
  font-size: 17px;
  margin-bottom: 16px;
}
.form-section .section-head {
  margin-bottom: 12px;
}
.form-section .section-head h3 {
  font-size: 17px;
}
.address-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line, #e7e7e7);
  color: #666666;
  font-size: 14px;
  line-height: 1.9;
}
.address-row:last-child {
  border-bottom: 0;
}
label.address-row {
  cursor: pointer;
  padding-inline: 12px;
  border-left: 3px solid transparent;
}
label.address-row:has(> input:checked) {
  background: #fff5f4;
  border-left-color: var(--brand, #e2231a);
}
.address-row > input {
  margin: 4px 0 0;
}
.address-row > div {
  min-width: 0;
  flex: 1;
  overflow-wrap: anywhere;
}
.address-row strong {
  margin-right: 14px;
  color: #333333;
  font-size: 15px;
  font-weight: 600;
}
.address-row p {
  margin-top: 3px;
  overflow-wrap: anywhere;
}
.address-row .icon-button {
  flex-shrink: 0;
  color: var(--muted, #777777);
}
.order-summary {
  align-self: start;
  padding: 0 0 0 28px;
  border-left: 1px solid var(--line, #e7e7e7);
  background: transparent;
}
.order-summary > h3 {
  font-size: 18px;
  margin-bottom: 18px;
}
.order-summary > .button {
  margin-top: 14px;
  min-height: 50px;
  font-size: 15px;
}
.summary-line {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 16px;
  margin: 17px 0;
  font-size: 14px;
  color: #777777;
}
.summary-line > :last-child {
  color: #333333;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}
.summary-line.total {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line, #e7e7e7);
  color: #333333;
  font-size: 15px;
  font-weight: 600;
}
.summary-line.total .price {
  color: #e2231a;
  font-size: 26px;
  line-height: 1.3;
}
.mini-item {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  margin: 0;
  padding: 16px 0;
  font-size: 14px;
  line-height: 1.7;
}
.mini-item + .mini-item {
  border-top: 1px solid #eeeeee;
}
.mini-item > img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  background: #f6f6f6;
  border-radius: 5px;
}
.mini-item > div {
  min-width: 0;
  overflow-wrap: anywhere;
}
.mini-item small {
  font-size: 12px;
  line-height: 1.8;
}
.mini-item > strong {
  max-width: 160px;
  color: #333333;
  font-size: 15px;
  font-weight: 600;
  overflow-wrap: anywhere;
  font-variant-numeric: tabular-nums;
}

.filter-tabs {
  display: flex;
  align-items: stretch;
  gap: 20px;
  min-width: 0;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--line, #e7e7e7);
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: #cccccc transparent;
}
.filter-tabs button {
  flex: 0 0 auto;
  min-height: 48px;
  padding: 12px 4px;
  border: 0;
  border-bottom: 3px solid transparent;
  border-radius: 0;
  background: transparent;
  color: var(--muted, #777777);
  font-size: 14px;
  white-space: nowrap;
}
.filter-tabs button:hover {
  color: var(--brand, #e2231a);
}
.filter-tabs button.active {
  color: var(--brand, #e2231a);
  border-bottom-color: var(--brand, #e2231a);
  font-weight: 650;
}
.order-card {
  min-width: 0;
  margin-bottom: 22px;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line, #e7e7e7);
  border-radius: 8px;
}
.order-card > header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 22px;
  background: #fafafa;
  border-bottom: 1px solid var(--line, #e7e7e7);
  color: #777777;
  font-size: 12px;
  line-height: 1.8;
}
.order-card > header > span:first-child {
  min-width: 0;
  overflow-wrap: anywhere;
}
.order-card .order-body {
  padding: 4px 22px;
}
.order-card .order-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px;
  padding: 16px 22px;
  border-top: 1px solid var(--line, #e7e7e7);
}
.order-actions > span:first-child {
  margin-right: auto;
  color: #777777;
  font-size: 13px;
  line-height: 1.8;
  overflow-wrap: anywhere;
}
.order-actions .price {
  color: #e2231a;
  font-size: 20px;
  font-variant-numeric: tabular-nums;
}
.order-actions .button.small {
  min-height: 38px;
  padding: 8px 13px;
}
.status {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  padding: 4px 9px;
  border-radius: 4px;
  background: #f1f1f1;
  color: #777777;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.5;
  white-space: normal;
  overflow-wrap: anywhere;
}
.status.green {
  background: #e8f3ed;
  color: #237a60;
}
.status.orange {
  background: #fcf2df;
  color: #8b651f;
}
.status.red {
  background: #fff1f0;
  color: #c52b23;
}
.status.blue {
  background: #eaf1fa;
  color: #356ca3;
}
.order-card > header .status {
  white-space: nowrap;
}

.account-hero {
  overflow: hidden;
  margin-bottom: 28px;
  border-radius: 14px;
  background: #ff5a16;
  color: #ffffff;
  box-shadow: 0 10px 24px rgba(204, 66, 12, 0.16);
}
.account-hero.is-frozen {
  background: #555b66;
}
.account-hero-profile {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 22px 24px 14px;
}
.account-hero-avatar {
  display: grid;
  place-items: center;
  flex: 0 0 58px;
  width: 58px;
  height: 58px;
  overflow: hidden;
  border-radius: 50%;
  background: #ffffff;
  color: #ff5a16;
  font-size: 24px;
  font-weight: 800;
  box-shadow: 0 4px 12px rgba(100, 30, 0, 0.12);
}
.account-hero-avatar img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.account-hero-profile > div {
  min-width: 0;
}
.account-hero-profile h2 {
  margin: 0 0 3px;
  color: #ffffff;
  font-size: 22px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}
.account-hero-profile span {
  color: rgba(255, 255, 255, 0.86);
  font-size: 13px;
}
.account-hero-settings {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-left: auto;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #ffffff;
}
.account-hero-settings:hover {
  background: rgba(255, 255, 255, 0.14);
}
.account-hero-settings svg {
  width: 21px;
  height: 21px;
}
.account-hero-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 6px 24px 16px;
}
.account-hero-stats > * {
  display: flex;
  align-items: center;
  flex-direction: column;
  min-width: 0;
  padding: 8px 0;
  border: 0;
  background: transparent;
  color: #ffffff;
  text-align: center;
}
.account-hero-stats > :first-child {
  align-items: flex-start;
  text-align: left;
}
.account-hero-stats > :last-child {
  align-items: flex-end;
  text-align: right;
}
.account-hero-stats > * + * {
  border-left: 1px solid rgba(255, 255, 255, 0.24);
}
.account-hero-stats strong {
  color: #ffffff;
  font-size: 18px;
  line-height: 1.4;
}
.account-hero-stats span {
  margin-top: 3px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 12px;
}
.account-hero > p {
  margin: 0 12px 12px;
  padding: 10px 14px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  font-size: 13px;
  text-align: center;
}

.profile-head {
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 24px 0 34px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--line, #e7e7e7);
}
.profile-head > div {
  min-width: 0;
}
.avatar {
  display: grid;
  place-items: center;
  flex: 0 0 72px;
  width: 72px;
  height: 72px;
  border: 1px solid #ffd7d3;
  border-radius: 50%;
  background: #fff1f0;
  color: var(--brand, #e2231a);
  font-size: 29px;
  font-weight: 600;
}
.profile-head h2 {
  margin: 0 0 8px;
  font-size: 25px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.profile-head small {
  font-size: 13px;
  line-height: 1.8;
  overflow-wrap: anywhere;
}
.profile-head + .section-head {
  margin-top: 28px;
}
.account-links {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  padding: 8px 0 26px;
  border: 0;
}
.account-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 13px;
  min-height: 100px;
  padding: 14px 8px;
  color: #555555;
  font-size: 14px;
  text-align: center;
  line-height: 1.6;
}
.account-links a + a {
  border-left: 0;
}
.account-links a:hover {
  background: #fff7f6;
  color: var(--brand, #e2231a);
}
.account-links svg {
  width: 27px;
  height: 27px;
  color: var(--brand, #e2231a);
  stroke-width: 1.6;
}
.account-menu {
  margin-top: 22px;
}
.account-menu > button,
.account-menu > a {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  min-height: 68px;
  padding: 18px 2px;
  border-bottom: 1px solid var(--line, #e7e7e7);
  color: #444444;
  font-size: 15px;
  text-align: left;
  line-height: 1.6;
}
.account-menu > :hover {
  color: var(--brand, #e2231a);
  background: #fafafa;
}
.account-menu > * > svg:first-child {
  color: #888888;
  width: 22px;
  height: 22px;
}
.account-menu > * > svg:last-child {
  margin-left: auto;
  width: 17px;
  color: #aaaaaa;
}
.account-recommendations {
  margin-top: 28px;
  padding: 24px 0 8px;
  border-top: 1px solid var(--line, #e8e8e8);
}
.account-recommendation-heading {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 16px;
  color: var(--ink, #1f2329);
  font-size: 24px;
  font-weight: 700;
}
.account-recommendation-heading small {
  color: var(--muted, #8a9199);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
}
.account-recommendation-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.account-menu > button[data-action="logout"] {
  color: #bb352e;
}
@media (hover: none) and (pointer: coarse) {
  #main:focus,
  #main:focus-visible,
  .account-links a:focus,
  .account-links a:focus-visible,
  .account-menu > a:focus,
  .account-menu > a:focus-visible,
  .account-menu > button:focus,
  .account-menu > button:focus-visible,
  .account-hero button:focus,
  .account-hero button:focus-visible {
    outline: none;
    box-shadow: none;
  }
  .account-menu > :hover {
    color: #444444;
    background: transparent;
  }
}
.notice-content {
  min-width: 0;
  padding: 24px 0 36px;
  border-top: 1px solid var(--line, #e7e7e7);
  background: transparent;
  color: #666666;
  font-size: 15px;
  line-height: 2.15;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.notice-date {
  margin: 12px 0 18px;
  color: var(--muted, #777777);
  font-size: 12px;
  line-height: 1.8;
  overflow-wrap: anywhere;
}

.login-shell {
  width: 100%;
  max-width: 410px;
  margin: 62px auto 76px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}
.login-shell .eyebrow {
  margin-bottom: 12px;
}
.login-shell h1 {
  margin: 0 0 12px;
  color: #333333;
  font-size: 28px;
  line-height: 1.45;
}
.login-shell > p {
  margin-bottom: 32px;
  color: var(--muted, #777777);
  font-size: 14px;
  line-height: 1.8;
}
.login-shell form {
  display: grid;
  gap: 22px;
}
.login-shell form > .button {
  width: 100%;
  min-height: 49px;
  font-size: 15px;
  margin-top: 5px;
}
.login-toggle {
  padding-top: 22px;
  margin-top: 24px;
  border-top: 1px solid var(--line, #e7e7e7);
  text-align: center;
}
.login-toggle .text-button {
  font-size: 14px;
  line-height: 1.8;
  white-space: normal;
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.field {
  display: flex;
  flex-direction: column;
  min-width: 0;
  gap: 9px;
  color: #555555;
  font-size: 14px;
  line-height: 1.6;
}
.field.full {
  grid-column: 1 / -1;
}
.field > span {
  font-weight: 550;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  min-width: 0;
  min-height: 46px;
  margin: 0;
  padding: 11px 13px;
  border: 1px solid #dddddd;
  border-radius: 6px;
  background: #fff;
  color: #333333;
  font-size: 15px;
  line-height: 1.6;
  transition:
    border-color 150ms,
    box-shadow 150ms;
}
.field input::placeholder,
.field textarea::placeholder {
  color: #aaaaaa;
  opacity: 1;
}
.field input:hover,
.field select:hover,
.field textarea:hover {
  border-color: #bbbbbb;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--brand, #e2231a);
  outline: 2px solid #ffd7d3;
  outline-offset: 1px;
  box-shadow: none;
}
.field textarea {
  min-height: 108px;
  resize: vertical;
  line-height: 1.85;
}
.field input:disabled,
.field select:disabled,
.field textarea:disabled {
  background: #f6f6f6;
  color: #999999;
  cursor: not-allowed;
}
.field small {
  font-size: 12px;
  line-height: 1.7;
}
.field-help {
  margin: -6px 0 2px;
  color: #777777;
  font-size: 12px;
  line-height: 1.7;
}
.field-help.full {
  grid-column: 1 / -1;
}
.field input[type="checkbox"],
.field input[type="radio"] {
  width: 18px;
  min-height: 18px;
  padding: 0;
}
.form-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--line, #e7e7e7);
}
.form-actions .button {
  min-height: 44px;
}
.form-error {
  display: none;
  padding: 12px 14px;
  border-left: 3px solid #e2231a;
  background: #fff1f0;
  color: #b92c25;
  border-radius: 4px;
  font-size: 13px;
  line-height: 1.8;
  overflow-wrap: anywhere;
}
.form-error:not(:empty) {
  display: block;
  margin-top: 14px;
}
.login-shell .form-error:not(:empty) {
  margin-top: 0;
}
.readonly {
  padding: 14px 16px;
  border-left: 3px solid #dddddd;
  border-radius: 0;
  background: #f7f7f7;
  color: #666666;
  font-size: 14px;
  line-height: 1.9;
  overflow-wrap: anywhere;
}
.readonly + .field,
.dialog-content > .readonly + form {
  margin-top: 20px;
}
.order-logistics {
  margin-top: 18px;
  padding: 15px 16px;
  border: 1px solid #dce8f5;
  border-radius: 6px;
  background: #f7fbff;
  color: #3f5368;
}
.order-logistics-title,
.order-logistics-row {
  display: flex;
  align-items: center;
  gap: 9px;
}
.order-logistics-title {
  margin-bottom: 12px;
  color: #24384d;
}
.order-logistics-title svg {
  width: 19px;
  height: 19px;
  color: #356ca3;
}
.order-logistics-title > span {
  margin-left: auto;
  color: #356ca3;
  font-size: 12px;
}
.order-logistics-row {
  justify-content: space-between;
  padding: 7px 0;
  border-top: 1px solid #e5edf5;
  overflow-wrap: anywhere;
}
.order-logistics-row > span,
.order-logistics > small,
.order-logistics.pending p {
  color: #718092;
  font-size: 12px;
}
.order-logistics > small {
  display: block;
  margin-top: 8px;
}
.order-logistics.pending {
  border-color: #ececec;
  background: #fafafa;
}
.order-logistics.pending p {
  margin: 0;
  line-height: 1.7;
}
.tracking-message {
  margin: 12px 0 0;
  color: #526a82;
  font-size: 13px;
  line-height: 1.6;
}
.tracking-timeline {
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}
.tracking-timeline li {
  position: relative;
  padding: 0 0 16px 22px;
  color: #56687a;
}
.tracking-timeline li::before {
  content: "";
  position: absolute;
  top: 5px;
  left: 3px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #9aabba;
}
.tracking-timeline li::after {
  content: "";
  position: absolute;
  top: 14px;
  bottom: 0;
  left: 6px;
  width: 1px;
  background: #d5e1ec;
}
.tracking-timeline li:last-child::after {
  display: none;
}
.tracking-timeline li.latest::before {
  background: #e2231a;
  box-shadow: 0 0 0 3px #ffe5e2;
}
.tracking-timeline strong,
.tracking-timeline small {
  display: block;
}
.tracking-timeline strong {
  font-size: 13px;
  line-height: 1.55;
}
.tracking-timeline small {
  margin-top: 4px;
  color: #8593a1;
  font-size: 12px;
}
.tracking-refresh {
  width: 100%;
  margin-top: 12px;
}
.danger-note {
  margin: 16px 0;
  padding: 12px 14px;
  border-left: 3px solid #e2231a;
  background: #fff1f0;
  color: #b92c25;
  font-size: 13px;
  line-height: 1.8;
  overflow-wrap: anywhere;
}
.file-input,
.field input[type="file"] {
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 52px;
  padding: 10px;
  border: 1px dashed #cccccc;
  border-radius: 6px;
  background: #fafafa;
  color: #777777;
  font-size: 13px;
  line-height: 1.8;
  overflow: hidden;
  text-overflow: ellipsis;
}
.file-input {
  margin: 16px 0 20px;
}
input[type="file"]::file-selector-button {
  margin-right: 12px;
  padding: 8px 12px;
  border: 1px solid #e5c3c0;
  border-radius: 4px;
  background: #fff;
  color: var(--brand, #e2231a);
  font: inherit;
  cursor: pointer;
}
input[type="file"]::file-selector-button:hover {
  background: #fff1f0;
}
.image-preview {
  display: grid;
  grid-template-columns: 100px minmax(0, 1fr);
  align-items: center;
  gap: 18px;
}
.image-preview img {
  width: 100px;
  height: 100px;
  border: 1px solid var(--line, #e7e7e7);
  border-radius: 6px;
  background: #f6f6f6;
  object-fit: contain;
}
.image-preview .field {
  min-width: 0;
}
#product-form > .section-head {
  margin-top: 26px;
}
.batch-color-toggle {
  padding: 12px 14px;
  border: 1px solid #f1c6c2;
  border-radius: 6px;
  background: #fff7f6;
  color: #9f231d;
  font-weight: 650;
}
.batch-color-options small {
  color: var(--muted, #777777);
  line-height: 1.7;
}
.sku-row,
.sku-labels {
  display: grid;
  grid-template-columns: minmax(90px, 1.4fr) repeat(3, minmax(64px, 1fr)) 36px;
  gap: 8px;
  align-items: center;
}
.sku-labels {
  margin: 12px 0 8px;
  color: var(--muted, #777777);
  font-size: 12px;
  line-height: 1.6;
}
.sku-row {
  margin-top: 10px;
}
.sku-row input {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  padding: 9px 10px;
  border: 1px solid #dddddd;
  border-radius: 5px;
  background: #fff;
  color: #444444;
  font-size: 14px;
  line-height: 1.6;
  font-variant-numeric: tabular-nums;
}
.sku-row input:focus {
  border-color: var(--brand, #e2231a);
  outline: 2px solid #ffd7d3;
  outline-offset: 1px;
}
.sku-row input[type="number"] {
  appearance: textfield;
  -moz-appearance: textfield;
}
.sku-row input::-webkit-inner-spin-button,
.sku-row input::-webkit-outer-spin-button {
  margin: 0;
  -webkit-appearance: none;
}
.sku-row .icon-button {
  width: 36px;
  height: 40px;
  color: #999999;
}
.sku-row .icon-button:hover {
  color: #d01b14;
  background: #fff1f0;
}
.timeline {
  list-style: none;
  margin: 26px 0 0 5px;
  padding: 0;
}
.timeline li {
  position: relative;
  padding: 0 0 22px 22px;
  border-left: 1px solid #dddddd;
  color: #666666;
  font-size: 14px;
  line-height: 1.8;
  overflow-wrap: anywhere;
}
.timeline li:last-child {
  padding-bottom: 0;
  border-left-color: transparent;
}
.timeline li::before {
  content: "";
  position: absolute;
  top: 7px;
  left: -4px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #bbbbbb;
}
.timeline li:first-child::before {
  background: var(--brand, #e2231a);
}
.timeline small {
  display: block;
  margin-top: 4px;
  font-size: 12px;
}
dialog {
  width: min(700px, calc(100% - 40px));
  max-height: calc(100dvh - 48px);
  margin: auto;
  padding: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  border: 1px solid #e1e1e1;
  border-radius: 8px;
  background: #fff;
  color: #333333;
  box-shadow: 0 16px 64px #00000024;
}
dialog::backdrop {
  background: #0000006b;
}
.dialog-header {
  position: sticky;
  top: 0;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 72px;
  padding: 16px 24px;
  border-bottom: 1px solid var(--line, #e7e7e7);
  background: #fff;
}
.dialog-header h2 {
  min-width: 0;
  font-size: 20px;
  font-weight: 650;
  line-height: 1.6;
  overflow-wrap: anywhere;
}
.dialog-header .icon-button {
  flex-shrink: 0;
  color: #888888;
}
.dialog-toasts {
  position: sticky;
  top: 72px;
  z-index: 5;
  display: grid;
  width: calc(100% - 32px);
  height: 0;
  margin: 0 auto;
  gap: 8px;
  pointer-events: none;
}
.dialog-toasts .toast {
  margin-top: 12px;
  background: #16834a;
  text-align: center;
}
.dialog-toasts .toast.error {
  background: #b8241c;
}
.dialog-content {
  min-width: 0;
  padding: 24px;
}
.dialog-content p {
  font-size: 14px;
  line-height: 1.9;
  overflow-wrap: anywhere;
}
.dialog-content > p + p {
  margin-top: 16px;
}
.dialog-content .description {
  white-space: pre-wrap;
}
.dialog-content > .readonly {
  margin: 16px 0;
}
.dialog-content .form-grid {
  gap: 18px;
}
.dialog-content .form-actions {
  background: #fff;
}
.dialog-content > .text-button {
  white-space: normal;
  overflow-wrap: anywhere;
}
.dialog-content .mini-item:first-child {
  padding-top: 0;
}
.dialog-content .address-row > .status {
  align-self: center;
  flex: 0 1 150px;
}
.dialog-content .checkbox {
  margin-top: 14px;
}

@media (max-width: 1000px) {
  .detail {
    gap: 30px;
  }
  .detail-info h1 {
    font-size: 24px;
  }
  .detail-info .price {
    font-size: 29px;
  }
  .panel-grid {
    gap: 30px;
    grid-template-columns: minmax(0, 1fr) minmax(290px, 0.8fr);
  }
  .order-summary {
    padding-left: 22px;
  }
  .cart-row {
    gap: 16px;
    grid-template-columns: 20px 90px minmax(0, 1fr) 114px 36px;
  }
  .cart-row > img {
    width: 90px;
    height: 90px;
  }
}
@media (max-width: 767px) {
  .account-hero {
    width: calc(100% + 20px);
    margin: -10px -10px 22px;
    border-radius: 0 0 14px 14px;
    box-shadow: none;
  }
  .account-hero-profile {
    padding: 18px 16px 10px;
  }
  .account-hero-avatar {
    width: 54px;
    height: 54px;
    flex-basis: 54px;
    font-size: 22px;
  }
  .account-hero-profile h2 {
    font-size: 18px;
  }
  .account-hero-stats {
    padding: 4px 16px 12px;
  }
  .account-hero > p {
    margin: 0 10px 10px;
    padding: 9px 12px;
    font-size: 12px;
  }
  .detail {
    grid-template-columns: minmax(0, 1fr);
    gap: 23px;
    margin-top: 10px;
    margin-bottom: 25px;
  }
  .detail-photo {
    aspect-ratio: 4 / 3;
    max-height: 390px;
  }
  .detail-info {
    gap: 15px;
    padding: 0;
  }
  .detail-info h1 {
    font-size: 23px;
    line-height: 1.55;
  }
  .detail-info .price {
    font-size: 30px;
  }
  .detail-info .divider {
    margin: 6px 0;
  }
  .detail-info .spec {
    padding: 8px 12px;
    font-size: 13px;
  }
  .detail-actions {
    position: fixed;
    z-index: 18;
    left: 0;
    right: 0;
    bottom: calc(
      var(--mobile-nav-height, 68px) + env(safe-area-inset-bottom, 0px)
    );
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 10px;
    margin: 0;
    padding: 10px 16px;
    border-top: 1px solid var(--line, #e7e7e7);
    background: #fff;
  }
  .detail-actions .button {
    min-width: 0;
    min-height: 46px;
    padding: 10px 8px;
    font-size: 14px;
    gap: 6px;
  }
  main.store:has(.detail) {
    padding-bottom: 112px;
  }
  .detail-description {
    padding-top: 24px;
    font-size: 14px;
  }
  .detail-description h2 {
    font-size: 19px;
    margin-bottom: 14px;
  }
  .cart-row {
    grid-template-columns: 18px 80px minmax(0, 1fr) 36px;
    align-items: start;
    gap: 12px 10px;
    padding: 22px 0;
  }
  .cart-row > input {
    grid-column: 1;
    grid-row: 1;
    margin: 5px 0 0;
  }
  .cart-row > img {
    grid-column: 2;
    grid-row: 1 / 3;
    width: 80px;
    height: 96px;
  }
  .cart-row > div:not(.cart-quantity) {
    grid-column: 3 / 5;
    grid-row: 1;
  }
  .cart-row h3 {
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 5px;
  }
  .cart-row small {
    font-size: 12px;
  }
  .cart-row .price {
    font-size: 18px;
    margin-top: 6px;
  }
  .cart-quantity {
    grid-column: 3;
    grid-row: 2;
  }
  .cart-row .delete-item {
    grid-column: 4;
    grid-row: 2;
    width: 36px;
    height: 40px;
  }
  .checkout-bar {
    bottom: calc(
      var(--mobile-nav-height, 68px) + env(safe-area-inset-bottom, 0px)
    );
    display: grid;
    grid-template-columns: 60px minmax(0, 1fr);
    gap: 12px;
    min-height: 83px;
    padding: 12px 0;
    margin-top: 20px;
  }
  .checkout-bar > div {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 3px 10px;
    justify-content: stretch;
  }
  .checkout-bar > div > small {
    grid-column: 1;
    grid-row: 1;
    font-size: 11px;
  }
  .checkout-bar > div > .price {
    grid-column: 1;
    grid-row: 2;
    font-size: 18px;
    line-height: 1.4;
  }
  .checkout-bar > div > .button {
    grid-column: 2;
    grid-row: 1 / 3;
    padding: 10px 12px;
    min-height: 46px;
    font-size: 13px;
  }
  .checkout-bar .checkbox {
    gap: 6px;
    font-size: 13px;
    white-space: nowrap;
  }
  .panel-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }
  .form-section {
    padding: 22px 0;
  }
  .form-section > h3,
  .form-section .section-head h3 {
    font-size: 16px;
  }
  .form-section .section-head {
    gap: 8px;
  }
  .form-section .section-head .text-button {
    font-size: 13px;
  }
  .order-summary {
    padding: 24px 0 0;
    border: 0;
    border-top: 1px solid #dddddd;
  }
  .order-summary > h3 {
    font-size: 17px;
  }
  .summary-line.total .price {
    font-size: 24px;
  }
  .address-row {
    font-size: 13px;
    gap: 10px;
  }
  .address-row strong {
    font-size: 14px;
    margin-right: 10px;
  }
  .mini-item {
    grid-template-columns: 60px minmax(0, 1fr);
    gap: 3px 13px;
    font-size: 13px;
  }
  .mini-item > img {
    grid-column: 1;
    grid-row: 1 / 3;
    width: 60px;
    height: 70px;
  }
  .mini-item > div {
    grid-column: 2;
    grid-row: 1;
  }
  .mini-item > strong {
    grid-column: 2;
    grid-row: 2;
    max-width: none;
    font-size: 14px;
  }
  .filter-tabs {
    gap: 15px;
    margin-bottom: 18px;
  }
  .filter-tabs button {
    font-size: 13px;
    min-height: 45px;
    padding-inline: 2px;
  }
  .order-card {
    margin-bottom: 18px;
  }
  .order-card > header {
    padding: 13px 14px;
    gap: 10px;
    font-size: 11px;
  }
  .order-card > header .status {
    font-size: 11px;
  }
  .order-card .order-body {
    padding: 1px 14px;
  }
  .order-card .order-actions {
    padding: 13px 14px;
    gap: 8px;
  }
  .order-actions > span:first-child {
    flex: 1 0 100%;
    text-align: right;
    margin: 0 0 5px;
  }
  .order-actions .price {
    font-size: 20px;
  }
  .order-actions .button.small {
    min-height: 36px;
    padding: 7px 10px;
    font-size: 12px;
  }
  .profile-head {
    padding: 20px 0 27px;
    gap: 16px;
  }
  .avatar {
    width: 60px;
    height: 60px;
    flex-basis: 60px;
    font-size: 25px;
  }
  .profile-head h2 {
    font-size: 23px;
    margin-bottom: 5px;
  }
  .profile-head small {
    font-size: 12px;
  }
  .account-links {
    padding-bottom: 18px;
  }
  .account-links a {
    min-height: 90px;
    font-size: 12px;
    gap: 11px;
    padding: 10px 3px;
  }
  .account-links svg {
    width: 25px;
    height: 25px;
  }
  .account-menu {
    margin-top: 10px;
  }
  .account-menu > button,
  .account-menu > a {
    min-height: 62px;
    font-size: 14px;
    gap: 12px;
  }
  .account-recommendation-heading {
    font-size: 20px;
  }
  .account-recommendation-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 12px;
  }
  .notice-content {
    padding: 20px 0;
    font-size: 14px;
    line-height: 2;
  }
  .login-shell {
    max-width: 410px;
    margin: 34px auto 44px;
  }
  .login-shell h1 {
    font-size: 25px;
  }
  .login-shell > p {
    margin-bottom: 26px;
    font-size: 13px;
  }
  .login-shell form {
    gap: 19px;
  }
  .form-grid {
    gap: 17px;
  }
  .field {
    font-size: 13px;
    gap: 8px;
  }
  .field input,
  .field select,
  .field textarea {
    font-size: 16px;
    padding: 10px 12px;
    min-height: 46px;
  }
  .field textarea {
    min-height: 100px;
  }
  .readonly {
    font-size: 13px;
    padding: 13px 14px;
  }
  dialog {
    width: calc(100% - 24px);
    max-height: calc(100dvh - 24px);
    border-radius: 8px;
  }
  .dialog-header {
    padding: 12px 16px;
    min-height: 63px;
    gap: 12px;
  }
  .dialog-header h2 {
    font-size: 18px;
  }
  .dialog-toasts {
    top: 63px;
    width: calc(100% - 24px);
  }
  .dialog-content {
    padding: 20px 16px;
  }
  .dialog-content .form-grid {
    gap: 16px;
  }
  .dialog-content .form-actions {
    gap: 9px;
    margin-top: 23px;
    padding-top: 17px;
  }
  .dialog-content .form-actions .button {
    flex: 1 1 auto;
    min-width: 0;
    padding: 10px;
    font-size: 13px;
  }
  .dialog-content .form-actions .button svg {
    width: 17px;
    height: 17px;
  }
  .dialog-content p {
    font-size: 13px;
  }
  .dialog-content .checkbox {
    font-size: 13px;
  }
  .image-preview {
    grid-template-columns: 80px minmax(0, 1fr);
    gap: 12px;
  }
  .image-preview img {
    width: 80px;
    height: 96px;
  }
  .field input[type="file"] {
    font-size: 12px;
    min-height: 48px;
    padding: 7px;
  }
  .field input[type="file"]::file-selector-button {
    padding: 7px 8px;
    margin-right: 7px;
  }
  .sku-row,
  .sku-labels {
    grid-template-columns: minmax(64px, 1.2fr) repeat(3, minmax(46px, 1fr)) 32px;
    gap: 6px;
  }
  .sku-labels {
    font-size: 11px;
  }
  .sku-row input {
    padding: 9px 5px;
    font-size: 14px;
    min-height: 44px;
  }
  .sku-row .icon-button {
    width: 32px;
  }
  .timeline li {
    font-size: 13px;
    padding-left: 18px;
  }
}
@media (max-width: 480px) {
  .detail-photo {
    max-height: 310px;
  }
  .detail-info h1 {
    font-size: 21px;
  }
  .form-grid,
  .dialog-content .form-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .image-preview {
    grid-template-columns: minmax(0, 1fr);
  }
  .image-preview img {
    width: 104px;
    height: 104px;
  }
  .dialog-content .address-row {
    flex-wrap: wrap;
  }
  .dialog-content .address-row > div {
    flex-basis: 180px;
  }
  .dialog-content .address-row > .status {
    flex-basis: auto;
  }
  .detail-actions .button svg {
    width: 17px;
    height: 17px;
  }
  .checkout-bar {
    grid-template-columns: 54px minmax(0, 1fr);
    gap: 7px;
  }
  .checkout-bar > div {
    gap: 3px 8px;
  }
  .checkout-bar > div > .button {
    padding-inline: 10px;
    gap: 4px;
  }
  .checkout-bar > div > .button svg {
    width: 17px;
    height: 17px;
  }
  .checkout-bar > div > .price {
    font-size: 17px;
  }
}
