:root {
  color-scheme: light;
  --bg: #eef3f0;
  --surface: #ffffff;
  --surface-alt: #f6faf8;
  --ink: #1d2524;
  --muted: #687370;
  --line: #dfe5e1;
  --green: #1f8f58;
  --green-soft: #e7f5ed;
  --amber: #c46a1d;
  --amber-soft: #fff0dd;
  --blue: #2b6cb0;
  --shadow: 0 12px 28px rgba(31, 46, 43, 0.08);
  font-family:
    "Inter", "PingFang SC", "Microsoft YaHei", "Segoe UI", system-ui,
    sans-serif;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(135deg, rgba(231, 245, 237, 0.72), rgba(255, 247, 235, 0.58)),
    var(--bg);
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.h5-shell {
  width: min(760px, 100%);
  margin: 0 auto;
  min-height: calc(100vh - 64px);
  padding: clamp(12px, 2vw, 16px);
}

.site-footer {
  width: min(760px, 100%);
  margin: 0 auto;
  padding: 0 clamp(12px, 2vw, 16px) 24px;
  text-align: center;
}

.site-footer-record {
  color: var(--muted);
  font-size: 13px;
  text-decoration: none;
}

.site-footer-record:hover {
  color: var(--green);
  text-decoration: underline;
}

.app-header {
  margin-bottom: 14px;
  padding: 8px;
  border: 1px solid #b8ddc6;
  border-radius: 10px;
  background: #fff;
  box-shadow: var(--shadow);
}

.current-page-banner {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  padding: 10px 12px;
  border: 1px solid rgba(31, 143, 88, 0.18);
  border-radius: 10px;
  background: linear-gradient(180deg, #f8fcf9, #edf7f1);
  color: #126b3d;
}

.current-page-banner__label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.workflow-nav {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  width: 100%;
}

.workflow-tab {
  min-width: 0;
  min-height: 60px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
  border: 1px solid var(--green);
  border-radius: 8px;
  color: #fff;
  background: var(--green);
  font-size: 16px;
  font-weight: 900;
  text-decoration: none;
  white-space: nowrap;
  transition:
    background 160ms ease,
    border-color 160ms ease,
    transform 160ms ease;
}

.activity-result {
  margin-top: 16px;
}

.product-result {
  margin-top: 16px;
}

.product-result-wrap {
  display: grid;
  gap: 16px;
}

.product-hero-card,
.product-source-card,
.product-summary-item,
.product-detail-card,
.product-empty-state {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.product-hero-card {
  display: grid;
  gap: 14px;
  padding: 18px;
  background:
    radial-gradient(circle at top right, rgba(31, 143, 88, 0.14), transparent 30%),
    linear-gradient(180deg, #ffffff, #f4faf7);
}

.product-image-section {
  display: grid;
  gap: 12px;
}

.product-image-hero {
  overflow: hidden;
  border: 1px solid rgba(18, 107, 61, 0.14);
  border-radius: 16px;
  background: linear-gradient(180deg, #f7fbf8, #edf6f0);
}

.product-image-main {
  display: block;
  width: 100%;
  max-height: 420px;
  object-fit: contain;
  background: #f6faf7;
}

.product-image-thumb-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.product-image-thumb {
  padding: 0;
  overflow: hidden;
  width: 76px;
  height: 76px;
  border: 2px solid transparent;
  border-radius: 12px;
  background: #fff;
  box-shadow: var(--shadow);
}

.product-image-thumb.is-active {
  border-color: #1f8f58;
}

.product-image-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-hero-copy {
  display: grid;
  gap: 6px;
}

.product-eyebrow {
  color: var(--green);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.product-title {
  margin: 0;
  font-size: clamp(24px, 3vw, 30px);
  line-height: 1.2;
}

.product-subtitle {
  margin: 0;
  color: var(--muted);
}

.product-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.product-hero-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.product-hero-meta-item {
  padding: 12px 14px;
  border: 1px solid rgba(31, 143, 88, 0.12);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.78);
}

.product-hero-meta-item--wide {
  grid-column: 1 / -1;
}

.product-hero-meta-item .product-source-link {
  margin-top: 8px;
}

.product-source-link-group {
  display: grid;
  gap: 10px;
  margin-top: 8px;
}

.product-source-link-row {
  display: grid;
  gap: 4px;
}

.product-source-link-label {
  color: #1f3444;
  font-size: 13px;
  line-height: 1.4;
}

.product-chip {
  padding: 6px 10px;
  border-radius: 999px;
  color: #126b3d;
  background: var(--green-soft);
  font-size: 12px;
  font-weight: 900;
}

.product-summary-grid,
.product-detail-grid {
  display: grid;
  gap: 12px;
}

.product-summary-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.product-summary-item,
.product-detail-card,
.product-source-card,
.product-empty-state {
  padding: 14px;
}

.product-summary-item span,
.product-detail-card span,
.product-source-card span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.product-summary-item strong,
.product-detail-card strong,
.product-source-card strong {
  display: block;
  margin-top: 6px;
  line-height: 1.5;
}

.product-source-link {
  display: block;
  margin-top: 6px;
  color: var(--blue);
  line-height: 1.5;
  word-break: break-all;
  text-decoration: underline;
}

.product-source-link:hover {
  color: var(--green);
}

.product-detail-section {
  display: grid;
  gap: 10px;
}

.product-variant-list {
  display: grid;
  gap: 14px;
}

.product-variant-switcher {
  gap: 12px;
}

.product-variant-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.product-variant-tab {
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid #cfe0d7;
  border-radius: 999px;
  color: #25543b;
  background: #fff;
  font-size: 12px;
  font-weight: 800;
}

.product-variant-tab.is-active {
  border-color: #1f8f58;
  color: #fff;
  background: #1f8f58;
}

.product-variant-panel {
  display: grid;
}

.product-variant-card {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(18, 107, 61, 0.12);
  border-radius: 14px;
  background: #f8fcf9;
}

.product-variant-head {
  display: grid;
  gap: 4px;
}

.product-variant-kicker,
.product-variant-subtitle {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.product-variant-title {
  margin: 0;
  color: #1f2d28;
  font-size: 20px;
  line-height: 1.3;
}

.product-image-section--variant .product-image-main {
  max-height: 320px;
}

.product-detail-section + .product-detail-section {
  margin-top: 2px;
}

.product-section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.product-section-heading strong {
  font-size: 18px;
}

.product-detail-section .product-section-heading {
  padding: 0 2px;
}

.product-detail-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.product-detail-grid--compact {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.product-detail-section--identity .product-detail-card {
  padding: 12px 13px;
  border: 1px solid rgba(38, 82, 113, 0.12);
  background:
    linear-gradient(180deg, rgba(248, 251, 254, 0.98), rgba(239, 246, 252, 0.9));
}

.product-detail-section--identity .product-detail-card strong {
  color: #1f3444;
  font-size: 15px;
}

.product-detail-section--highlight .product-detail-card {
  border: 1px solid rgba(38, 82, 113, 0.12);
  background:
    linear-gradient(180deg, rgba(248, 251, 254, 0.98), rgba(239, 246, 252, 0.9));
}

.product-detail-section--highlight .product-detail-card strong {
  color: #1f3444;
}

.product-detail-section--updates .product-detail-card {
  border: 1px solid rgba(196, 106, 29, 0.14);
  background:
    linear-gradient(180deg, rgba(255, 250, 244, 0.98), rgba(255, 243, 228, 0.92));
}

.product-detail-section--updates .product-detail-card span {
  color: #9a5a1e;
}

.product-detail-section--visuals .product-detail-card,
.product-detail-section--visuals .product-detail-card--visual {
  border: 1px solid rgba(31, 143, 88, 0.18);
  background:
    linear-gradient(180deg, rgba(248, 252, 249, 0.98), rgba(236, 246, 240, 0.94));
}

.product-detail-grid--emphasis .product-detail-card {
  border: 1px solid rgba(19, 93, 61, 0.12);
  background:
    linear-gradient(180deg, rgba(248, 252, 249, 0.98), rgba(240, 247, 243, 0.9));
}

.product-detail-grid--emphasis .product-detail-card strong {
  font-size: 16px;
}

.product-detail-grid--emphasis .product-detail-card span {
  color: #47715d;
}

.product-detail-grid.is-collapsed .product-detail-card:nth-child(n + 5) {
  display: none;
}

.product-detail-grid.is-collapsed .product-detail-card:nth-child(n + 1) {
  display: block;
}

.product-detail-grid.is-collapsed .product-detail-card:nth-child(n + calc(var(--product-collapse-count, 4) + 1)) {
  display: none;
}

.product-detail-section--identity .product-detail-grid.is-collapsed .product-detail-card:nth-child(n + 3),
.product-detail-section--updates .product-detail-grid.is-collapsed .product-detail-card:nth-child(n + 3) {
  display: none;
}

.product-section-toggle {
  justify-self: start;
  min-height: 34px;
  padding: 0 14px;
  border: 1px solid #b8ddc6;
  border-radius: 999px;
  color: var(--green);
  background: var(--green-soft);
  font-size: 12px;
  font-weight: 900;
}

.product-section-toggle:hover {
  color: #fff;
  background: var(--green);
}

.product-detail-card--rich {
  display: grid;
  gap: 10px;
}

.product-rich-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 18px;
  color: #1f2d28;
}

.product-rich-list li {
  padding-left: 2px;
  line-height: 1.6;
}

.product-detail-card--visual {
  padding: 16px;
  border: 1px solid rgba(31, 143, 88, 0.16);
  background:
    linear-gradient(180deg, rgba(247, 251, 248, 0.98), rgba(238, 246, 241, 0.92));
}

.product-detail-card--visual .product-rich-text-body {
  color: #25543b;
  font-size: 13px;
}

.product-detail-card--full {
  grid-column: 1 / -1;
}

.product-inline-images {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}

.product-inline-image {
  padding: 0;
  width: 92px;
  height: 92px;
  overflow: hidden;
  border: 1px solid rgba(31, 143, 88, 0.16);
  border-radius: 10px;
  background: #fff;
}

.product-inline-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.product-rich-text {
  overflow: hidden;
}

.product-rich-text.is-collapsed {
  max-height: 3.6em;
  mask-image: linear-gradient(180deg, #000 68%, transparent);
}

.product-rich-text-body {
  margin: 0;
  white-space: pre-wrap;
  line-height: 1.72;
  color: var(--ink);
}

.product-toggle-button {
  justify-self: start;
  padding: 6px 12px;
  border: 1px solid rgba(18, 107, 61, 0.18);
  border-radius: 999px;
  color: #126b3d;
  background: #f3faf6;
  font-size: 12px;
  font-weight: 800;
}

.product-image-strip-note {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.product-empty-state {
  display: grid;
  gap: 8px;
  text-align: center;
  color: var(--muted);
}

.product-empty-state strong {
  color: var(--ink);
  font-size: 18px;
}

.activity-result-list,
.activity-other-group {
  display: grid;
  gap: 12px;
}

.activity-other-group {
  margin-top: 14px;
}

.activity-card {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.activity-card.is-best {
  border-color: #8acaa5;
  background: linear-gradient(180deg, #ffffff, #f2fbf6);
}

.activity-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.activity-card-title {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.activity-card-title span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.activity-card-title strong {
  line-height: 1.35;
}

.activity-card-title em {
  color: var(--green);
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
}

.activity-date-chip {
  flex: 0 0 auto;
  max-width: 46%;
  padding: 5px 8px;
  border-radius: 999px;
  color: var(--muted);
  background: #edf2ef;
  font-size: 12px;
  font-weight: 800;
  text-align: center;
}

.activity-date-chip.is-current {
  color: #126b3d;
  background: var(--green-soft);
}

.activity-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.activity-row-detail {
  display: grid;
  grid-column: 1 / -1;
  gap: 8px;
  padding: 10px;
  border: 1px solid #dfe9e3;
  border-radius: 8px;
  background: #fbfdfb;
}

.activity-sku-strip {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  grid-column: 1 / -1;
  padding: 8px 10px;
  border: 1px solid #e4ebe7;
  border-radius: 8px;
  background: #fbfdfb;
}

.activity-sku-strip > span {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.activity-sku-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 0;
}

.activity-sku-list code {
  padding: 2px 6px;
  border-radius: 999px;
  color: #126b3d;
  background: var(--green-soft);
  font-family: inherit;
  font-size: 12px;
  font-weight: 800;
}

.activity-row-title {
  color: var(--green);
  font-size: 13px;
}

.activity-row-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.activity-field {
  min-width: 0;
  padding: 10px;
  border: 1px solid #edf1ee;
  border-radius: 8px;
  background: #fff;
}

.activity-field span {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.activity-field strong {
  display: block;
  line-height: 1.5;
  overflow-wrap: anywhere;
  white-space: pre-line;
}

.activity-field strong span {
  display: block;
  color: inherit;
  font-size: inherit;
  font-weight: inherit;
}

.activity-image-box {
  display: inline-grid;
  gap: 6px;
  max-width: min(180px, 100%);
  margin-top: 8px;
  vertical-align: top;
}

.activity-field-image {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  cursor: copy;
}

.activity-note {
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.workflow-tab:hover {
  border-color: #187849;
  color: #fff;
  background: #187849;
  transform: translateY(-1px);
}

.workflow-tab.is-active {
  border-color: #126b3d;
  color: #fff;
  background: #126b3d;
  box-shadow: 0 7px 16px rgba(31, 143, 88, 0.2);
}

.workflow-tab.is-disabled {
  flex-direction: column;
  gap: 1px;
  border-color: #d7ddda;
  color: #8c9793;
  background: #edf0ee;
  box-shadow: none;
  cursor: not-allowed;
}

.workflow-tab.is-disabled small {
  font-size: 10px;
  font-weight: 700;
}

.workflow-tab.is-disabled:hover {
  border-color: #d7ddda;
  color: #8c9793;
  background: #edf0ee;
  transform: none;
}

.eyebrow,
.label {
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 0;
  font-size: clamp(21px, 3.8vw, 26px);
  line-height: 1.16;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(16px, 2.6vw, 18px);
  letter-spacing: 0;
}

.status-pill,
.window-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  min-height: 34px;
  padding: 7px 10px;
  border: 1px solid #f0cf9d;
  border-radius: 999px;
  color: #8a4b13;
  background: var(--amber-soft);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--amber);
}

.search-panel,
.summary-panel,
.process-panel,
.orders-panel,
.next-panel,
.page-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.search-panel {
  padding: clamp(12px, 2.4vw, 14px);
  margin-bottom: 12px;
}

.data-delay-notice {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 12px;
  padding: 10px 13px;
  border: 1px solid #f0cf9d;
  border-radius: 8px;
  color: #78420f;
  background: #fff7e8;
}

.notice-icon {
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  background: var(--amber);
  font-size: 13px;
  font-weight: 900;
}

.data-delay-notice strong {
  display: block;
  margin-bottom: 2px;
  font-size: 13px;
}

.data-delay-notice p {
  margin: 0;
  color: #8a5a2c;
  font-size: 12px;
}

.search-copy p {
  margin: 7px 0 0;
  color: var(--muted);
}

.search-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(76px, 96px) minmax(76px, 96px);
  gap: 8px;
  margin-top: 0;
}

input,
select {
  width: 100%;
  min-height: 46px;
  border: 1px solid #cdd6d1;
  border-radius: 6px;
  padding: 0 14px;
  color: var(--ink);
  background: var(--surface-alt);
  outline: none;
}

select {
  padding-right: 38px;
  cursor: pointer;
}

select:disabled {
  color: var(--muted);
  cursor: not-allowed;
  opacity: 1;
}

input:disabled {
  color: var(--muted);
  background: #eef2f0;
  cursor: not-allowed;
}

input[readonly] {
  color: #34413d;
  cursor: default;
}

textarea {
  width: 100%;
  border: 1px solid #cdd6d1;
  border-radius: 6px;
  padding: 11px 14px;
  color: var(--ink);
  background: var(--surface-alt);
  outline: none;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(31, 143, 88, 0.16);
}

.search-form button,
.ghost-button {
  min-height: 46px;
  border-radius: 6px;
  border: 0;
  font-weight: 800;
  white-space: nowrap;
}

.search-form button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 14px;
  color: #fff;
  background: var(--green);
}

.search-form button:hover {
  background: #187849;
}

.search-form .reset-button {
  border: 1px solid #cdd6d1;
  color: #4e5b57;
  background: #fff;
}

.search-form .reset-button:hover {
  border-color: var(--green);
  color: var(--green);
  background: var(--green-soft);
}

.search-form button:disabled {
  cursor: wait;
  background: #8ebaa3;
}

.ghost-button {
  padding: 0 14px;
  border: 1px solid #cdd6d1;
  color: var(--ink);
  background: #fff;
}

.ghost-button:disabled {
  cursor: not-allowed;
  color: #9ba5a1;
  background: #f3f5f4;
}

.desktop-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  margin-bottom: 12px;
}

.summary-panel,
.process-panel,
.orders-panel,
.next-panel {
  padding: clamp(12px, 2.2vw, 14px);
  margin-bottom: 12px;
}

.desktop-grid .summary-panel,
.desktop-grid .process-panel {
  margin-bottom: 0;
}

.summary-head,
.panel-head,
.panel-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.summary-head strong,
.panel-head strong {
  display: block;
  max-width: 100%;
  overflow-wrap: anywhere;
  font-size: 18px;
}

.window-tag {
  border-color: #b8ddc6;
  color: #126b3d;
  background: var(--green-soft);
}

.jar-total {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin: 20px 0 22px;
  color: var(--green);
}

.jar-total span {
  font-size: clamp(56px, 11vw, 82px);
  font-weight: 900;
  line-height: 0.9;
  letter-spacing: 0;
}

.jar-total small {
  font-size: clamp(18px, 3.6vw, 24px);
  font-weight: 900;
}

.summary-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--line);
}

.summary-metrics.is-single {
  grid-template-columns: 1fr;
}

.summary-metrics div {
  min-width: 0;
  padding: 16px 18px 2px 0;
}

.summary-metrics div + div {
  padding-left: 18px;
  border-left: 1px solid var(--line);
}

.summary-metrics.is-single div + div {
  padding-left: 0;
  border-left: 0;
}

.summary-metrics span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 6px;
}

.summary-metrics strong {
  display: block;
  overflow-wrap: anywhere;
  font-size: 18px;
}

.customer-private-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.customer-private-row strong {
  min-width: 0;
  font-size: 16px;
}

.privacy-button {
  flex: 0 0 auto;
  min-height: 30px;
  padding: 4px 10px;
  border: 1px solid #b8ddc6;
  border-radius: 6px;
  color: var(--green);
  background: var(--green-soft);
  font-size: 12px;
  font-weight: 900;
}

.privacy-button:hover {
  color: #fff;
  background: var(--green);
}

.summary-panel {
  padding: clamp(14px, 2.6vw, 20px);
}

.summary-panel .summary-head strong {
  font-size: clamp(17px, 3vw, 20px);
}

.summary-shop-meta {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.summary-shop-meta span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.process-panel {
  background: #fcfdfc;
}

.panel-head span {
  color: var(--muted);
  font-size: 13px;
  white-space: nowrap;
}

.timeline {
  display: grid;
  gap: 10px;
  margin-top: 20px;
}

.timeline-step {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  align-items: center;
  min-height: 34px;
  color: var(--muted);
  font-weight: 700;
}

.timeline-step span {
  width: 16px;
  height: 16px;
  border: 2px solid #c7d0cc;
  border-radius: 999px;
  background: #fff;
}

.timeline-step.is-done {
  color: var(--ink);
}

.timeline-step.is-done span {
  border-color: var(--green);
  background: var(--green);
  box-shadow: inset 0 0 0 4px #fff;
}

.timeline-step.is-active span {
  border-color: var(--blue);
  background: #eaf3ff;
}

.panel-title-row {
  align-items: center;
  margin-bottom: 12px;
}

.period-slicer {
  display: inline-grid;
  grid-template-columns: repeat(2, minmax(118px, 1fr));
  gap: 5px;
  padding: 4px;
  border: 1px solid #b8ddc6;
  border-radius: 8px;
  background: var(--green-soft);
}

.period-button {
  min-height: 38px;
  padding: 0 16px;
  border: 0;
  border-radius: 6px;
  color: #176d40;
  background: transparent;
  font-size: 14px;
  font-weight: 900;
}

.period-button:hover {
  background: #d8efe2;
}

.period-button.is-active {
  color: #fff;
  background: var(--green);
  box-shadow: 0 4px 10px rgba(31, 143, 88, 0.18);
}

.order-list {
  display: grid;
  gap: 10px;
}

.shop-order-group {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid #cfe2d8;
  border-radius: 8px;
  background: #fbfdfc;
}

.shop-order-group-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 2px 10px;
  border-bottom: 1px solid #dce6e1;
}

.shop-order-group-title,
.shop-order-group-stats {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.shop-order-group-title span,
.shop-order-group-stats span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.shop-order-group-title strong {
  overflow-wrap: anywhere;
  font-size: 16px;
}

.shop-order-group-stats {
  flex: 0 0 auto;
  justify-items: end;
  text-align: right;
}

.shop-order-group-stats strong {
  color: var(--green);
  font-size: 18px;
  font-weight: 900;
}

.shop-order-group-list {
  display: grid;
  gap: 10px;
}

.order-card {
  display: grid;
  grid-template-columns: minmax(0, 1.9fr) minmax(108px, 0.5fr) minmax(154px, 0.72fr);
  align-items: stretch;
  gap: 12px 16px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-alt);
}

.order-card-head {
  display: flex;
  grid-column: 1 / -1;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid #dce6e1;
}

.order-card-foot {
  display: grid;
  grid-template-columns: 1fr;
  align-content: center;
  gap: 8px;
  padding-left: 14px;
  border-left: 1px solid #dce6e1;
}

.order-meta {
  display: grid;
  grid-template-columns: minmax(148px, max-content) minmax(0, 1fr);
  align-items: start;
  gap: 8px 18px;
  min-width: 0;
}

.order-field {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.order-field-label {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.product-field {
  align-self: center;
  width: 100%;
}

.status-field {
  align-self: center;
  justify-self: start;
}

.order-status {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 28px;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.status-done {
  color: #126b3d;
  background: var(--green-soft);
}

.status-shipping {
  color: #245c91;
  background: #e8f2ff;
}

.status-pending {
  color: #8a4b13;
  background: var(--amber-soft);
}

.order-id {
  overflow-wrap: anywhere;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 13px;
  font-weight: 800;
}

.shop-name {
  min-width: 0;
  overflow: hidden;
  color: #33423d;
  font-size: 13px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.order-time,
.sku-id {
  color: var(--muted);
  font-size: 12px;
}

.product-name {
  margin: 0;
  color: #26312f;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
}

.jar-cell {
  color: var(--green);
  font-weight: 900;
}

.jar-summary {
  font-size: 16px;
  white-space: nowrap;
}

.jar-cell.is-unmapped {
  color: var(--amber);
}

.mapping-warning {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 10px;
  padding: 10px 12px;
  border: 1px solid #f0cf9d;
  border-radius: 7px;
  color: #8a4b13;
  background: var(--amber-soft);
  font-size: 12px;
}

.mapping-warning[hidden] {
  display: none;
}

.mapping-warning span {
  overflow-wrap: anywhere;
}

.quantity-pill {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-width: 42px;
  padding: 5px 8px;
  border-radius: 999px;
  color: #174d31;
  background: var(--green-soft);
  font-weight: 900;
  text-align: center;
}

.empty-state {
  min-height: 74px;
  display: grid;
  place-items: center;
  color: var(--muted);
  text-align: center;
  border: 1px dashed #cbd6d1;
  border-radius: 8px;
  background: #fbfdfc;
}

.history-orders-panel {
  box-shadow: var(--shadow);
}

.app-page {
  display: none;
}

.app-page.is-active {
  display: block;
  animation: page-in 180ms ease;
}

@keyframes page-in {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.page-panel {
  padding: clamp(14px, 2.5vw, 16px);
  min-height: min(460px, 72vh);
}

.page-disabled-notice {
  margin-bottom: 14px;
  padding: 11px 12px;
  border: 1px solid #d7ddda;
  border-radius: 8px;
  color: #6d7774;
  background: #f2f4f3;
  font-size: 13px;
  font-weight: 800;
}

.page-panel.is-disabled {
  position: relative;
}

.page-panel.is-disabled .business-form,
.page-panel.is-disabled .remark-layout,
.page-panel.is-disabled .remark-actions,
.page-panel.is-disabled .remark-hint {
  opacity: 0.5;
  pointer-events: none;
}

.page-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.result-chip,
.gift-tag {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border-radius: 999px;
  color: #126b3d;
  background: var(--green-soft);
  font-size: 12px;
  font-weight: 800;
}

.result-chip {
  min-height: 32px;
  padding: 6px 10px;
  white-space: nowrap;
}

.context-strip {
  display: grid;
  grid-template-columns: 1.2fr 1fr 0.7fr;
  gap: 8px;
  margin-bottom: 14px;
}

.context-strip div {
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-alt);
}

.context-strip span,
.context-strip strong {
  display: block;
}

.context-strip span {
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 12px;
}

.context-strip strong {
  overflow-wrap: anywhere;
}

.gift-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.gift-shop-list {
  display: grid;
  gap: 14px;
}

.claim-type-switch {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 5px;
  margin-bottom: 14px;
  padding: 4px;
  border: 1px solid #b8ddc6;
  border-radius: 8px;
  background: var(--green-soft);
}

.claim-type-button {
  min-height: 42px;
  border: 0;
  border-radius: 6px;
  color: #176d40;
  background: transparent;
  font-weight: 900;
}

.claim-type-button:hover {
  background: #d8efe2;
}

.claim-type-button.is-active {
  color: #fff;
  background: var(--green);
}

.claim-type-description {
  margin: -4px 0 14px;
  padding: 10px 12px;
  border-left: 3px solid var(--green);
  border-radius: 5px;
  color: #496059;
  background: var(--surface-alt);
  font-size: 13px;
  line-height: 1.6;
}

.gift-shop-group {
  display: grid;
  gap: 12px;
  padding: 12px;
  border: 1px solid #cfe2d8;
  border-radius: 8px;
  background: #fbfdfc;
}

.gift-shop-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 2px 10px;
  border-bottom: 1px solid #dce6e1;
}

.gift-shop-head > div {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.gift-shop-head span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.gift-shop-head strong {
  overflow-wrap: anywhere;
}

.gift-shop-stats {
  flex: 0 0 auto;
  justify-items: end;
  text-align: right;
}

.gift-shop-stats strong {
  color: var(--green);
}

.gift-shop-group .gift-poster-state {
  min-height: 88px;
}

.traffic-gift-catalog {
  display: grid;
  gap: 10px;
}

.traffic-gift-catalog-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.traffic-gift-catalog-head span,
.traffic-gift-item span,
.traffic-gift-source {
  color: var(--muted);
  font-size: 12px;
}

.traffic-gift-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  max-height: 340px;
  padding-right: 4px;
  overflow-y: auto;
}

.traffic-gift-item {
  display: grid;
  gap: 5px;
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--ink);
  background: #fff;
  text-align: left;
}

.traffic-gift-item:hover {
  border-color: var(--green);
  background: var(--green-soft);
}

.traffic-gift-item strong,
.traffic-gift-item span {
  overflow-wrap: anywhere;
}

.traffic-gift-catalog-message {
  margin: 0;
  padding: 12px;
  border-radius: 7px;
  color: var(--muted);
  background: var(--surface-alt);
}

.traffic-gift-catalog-message.is-error {
  color: var(--danger);
}

.traffic-gift-source {
  width: fit-content;
  color: var(--green);
  font-weight: 800;
}

.docx-gift-list {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid #cfe2d8;
  border-radius: 8px;
  background: var(--green-soft);
}

.docx-gift-list-title {
  font-size: 14px;
}

.docx-gift-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.docx-gift-option {
  min-height: 34px;
  padding: 6px 10px;
  border: 1px solid #a9cfb8;
  border-radius: 6px;
  color: #176d40;
  background: #fff;
  font-size: 12px;
  font-weight: 800;
}

.docx-gift-option:hover {
  color: #fff;
  background: var(--green);
}

.gift-poster-state {
  min-height: 120px;
  display: grid;
  place-items: center;
  padding: 20px;
  border: 1px dashed #bfcfc7;
  border-radius: 8px;
  color: var(--muted);
  background: var(--surface-alt);
  text-align: center;
}

.gift-poster-state[hidden],
.gift-poster[hidden] {
  display: none;
}

.gift-poster {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--surface-alt);
}

.gift-poster img {
  display: block;
  width: 100%;
  max-height: min(720px, 70vh);
  object-fit: contain;
  background: #fff;
}

.gift-poster figcaption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 14px;
  border-top: 1px solid var(--line);
}

.gift-poster figcaption div {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.gift-poster figcaption .gift-poster-actions {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
}

.gift-poster figcaption span {
  color: var(--muted);
  font-size: 11px;
  overflow-wrap: anywhere;
}

.gift-poster figcaption strong {
  font-size: 15px;
}

.copy-image-button {
  min-height: 36px;
  padding: 7px 14px;
  border: 1px solid #16844d;
  border-radius: 6px;
  color: #fff;
  background: var(--green);
  font-weight: 900;
  white-space: nowrap;
}

.copy-image-button:hover {
  background: #126f41;
}

.copy-image-button:disabled {
  cursor: wait;
  opacity: 0.65;
}

.product-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 14px;
}

.product-summary div {
  display: grid;
  gap: 5px;
  padding: 10px 12px;
  border-left: 3px solid var(--green);
  border-radius: 5px;
  background: var(--surface-alt);
}

.product-summary strong {
  font-size: 13px;
}

.product-summary span {
  color: var(--muted);
  font-size: 12px;
}

.gift-card {
  position: relative;
  display: grid;
  align-content: start;
  gap: 9px;
  min-height: 168px;
  padding: 14px;
  border: 2px solid var(--line);
  border-radius: 10px;
  background: var(--surface-alt);
  cursor: pointer;
}

.gift-card:hover {
  border-color: #a9cfb8;
}

.gift-card:has(input:checked) {
  border-color: var(--green);
  background: #f1fbf5;
  box-shadow: 0 0 0 3px rgba(31, 143, 88, 0.1);
}

.gift-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.gift-check {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 18px;
  height: 18px;
  border: 2px solid #bfcac5;
  border-radius: 999px;
  background: #fff;
}

.gift-card:has(input:checked) .gift-check {
  border-color: var(--green);
  box-shadow: inset 0 0 0 4px #fff;
  background: var(--green);
}

.gift-tag {
  padding: 4px 8px;
}

.gift-product {
  padding-right: 24px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.gift-card strong {
  padding-right: 20px;
  font-size: 16px;
}

.gift-card small {
  color: var(--muted);
  line-height: 1.6;
}

.gift-trigger {
  margin-top: auto;
  padding-top: 7px;
  border-top: 1px solid var(--line);
  color: var(--green);
  font-size: 11px;
  font-weight: 800;
}

.business-form {
  display: grid;
  gap: 16px;
}

.product-form {
  gap: 14px;
}

.product-quick-picks {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid #dce6e1;
  border-radius: 10px;
  background: #f9fcfa;
}

.product-quick-picks .label {
  margin-bottom: 0;
}

.product-quick-picks-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.product-quick-pick {
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  background: #fff;
}

.product-quick-pick:hover {
  color: #fff;
  background: var(--green);
  border-color: var(--green);
}

.product-recent-searches {
  display: grid;
  gap: 8px;
  padding: 10px 12px;
  border: 1px dashed #cfdad4;
  border-radius: 10px;
  background: #fcfefd;
}

.product-recent-searches-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.product-recent-searches-head .label {
  margin-bottom: 0;
}

.product-recent-searches-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.product-recent-pill,
.product-recent-clear {
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  background: #fff;
}

.product-recent-pill:hover,
.product-recent-clear:hover {
  color: #fff;
  background: #236b47;
  border-color: #236b47;
}

.quick-entry {
  display: grid;
  gap: 7px;
  margin-bottom: 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.quick-entry label {
  color: #384440;
  font-size: 14px;
  font-weight: 900;
}

.quick-entry textarea {
  min-height: 82px;
  background: #fff;
}

.quick-entry p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.form-grid label,
.remark-editor {
  display: grid;
  gap: 7px;
  color: #384440;
  font-size: 13px;
  font-weight: 800;
}

.form-span-2 {
  grid-column: 1 / -1;
}

.field-hint {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.5;
}

.field-hint.is-error {
  color: var(--danger);
}

.field-hint.is-success {
  color: var(--green);
}

.order-selection {
  min-width: 0;
  margin: 0;
  padding: 12px;
  border: 1px solid #cdd6d1;
  border-radius: 6px;
  background: var(--surface-alt);
}

.order-selection legend {
  padding: 0 5px;
  color: #384440;
  font-size: 13px;
  font-weight: 800;
}

.order-choice-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.order-choice-list p {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.order-choice {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  cursor: pointer;
}

.order-choice input,
.traffic-gift-toggle input {
  width: 18px;
  min-height: 18px;
  flex: 0 0 auto;
  margin: 0;
  accent-color: var(--green);
}

.order-choice span {
  min-width: 0;
  overflow-wrap: anywhere;
  font-size: 12px;
}

.traffic-gift-toggle {
  display: flex !important;
  grid-template-columns: none !important;
  align-items: center;
  gap: 9px !important;
  min-height: 46px;
  padding: 0 12px;
  border: 1px solid #cdd6d1;
  border-radius: 6px;
  background: var(--surface-alt);
  cursor: pointer;
}

.form-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 16px;
}

.form-actions p {
  margin: 0 auto 0 0;
  color: var(--muted);
  font-size: 13px;
}

.form-actions p.is-success {
  color: var(--green);
  font-weight: 800;
}

.primary-button {
  min-height: 46px;
  padding: 0 18px;
  border: 0;
  border-radius: 6px;
  color: #fff;
  background: var(--green);
  font-weight: 800;
  white-space: nowrap;
}

.primary-button:hover {
  background: #187849;
}

.primary-button:disabled {
  color: #81908a;
  background: #dfe5e1;
  cursor: not-allowed;
}

.remark-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.secondary-button {
  min-height: 46px;
  padding: 0 16px;
  border: 1px solid #a9cfb8;
  border-radius: 6px;
  color: #126b3d;
  background: #fff;
  font-weight: 800;
  white-space: nowrap;
}

.secondary-button:hover {
  border-color: var(--green);
  background: var(--green-soft);
}

.remark-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}

.remark-editor textarea {
  min-height: 286px;
  line-height: 1.65;
}

.remark-editor-full {
  width: 100%;
}

.remark-hint {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.next-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.next-grid span {
  min-height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: #fff;
  font-size: 13px;
  font-weight: 800;
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  max-width: min(360px, calc(100vw - 24px));
  padding: 12px 14px;
  border: 1px solid #bfd8c9;
  border-radius: 8px;
  color: #114d30;
  background: #effaf4;
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 620px) {
  .h5-shell {
    width: min(100%, 430px);
    min-height: calc(100vh - 56px);
    padding: 14px 12px 20px;
  }

  .site-footer {
    width: min(100%, 430px);
    padding: 0 12px 18px;
  }

  .search-panel,
  .desktop-grid {
    grid-template-columns: 1fr;
  }

  .workflow-nav {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
  }

  .workflow-tab {
    min-height: 50px;
    padding: 0 6px;
    font-size: 14px;
    white-space: normal;
    line-height: 1.2;
    text-align: center;
  }

  .search-form {
    grid-template-columns: minmax(0, 1fr) 72px 72px;
    margin-top: 0;
  }

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

  .order-card-head {
    align-items: stretch;
    flex-direction: column;
  }

  .order-meta {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .period-slicer {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }

  .panel-title-row {
    align-items: stretch;
  }

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

  .order-card-foot {
    grid-template-columns: 1fr 1fr;
    padding-left: 0;
    padding-top: 10px;
    border-top: 1px solid #dce6e1;
    border-left: 0;
  }

  .order-card-foot .order-field:last-child {
    grid-column: 1 / -1;
  }

  .context-strip,
  .gift-grid,
  .traffic-gift-list,
  .product-summary,
  .product-hero-meta,
  .product-summary-grid,
  .product-detail-grid,
  .activity-fields,
  .form-grid,
  .remark-layout {
    grid-template-columns: 1fr;
  }

  .activity-card-head {
    align-items: stretch;
    flex-direction: column;
  }

  .activity-date-chip {
    max-width: none;
  }

  .activity-row-fields {
    grid-template-columns: 1fr;
  }

  .product-section-heading {
    flex-direction: column;
    align-items: flex-start;
  }

  .product-image-main {
    max-height: 320px;
  }

  .product-image-thumb {
    width: 64px;
    height: 64px;
  }

  .form-span-2 {
    grid-column: auto;
  }

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

  .remark-actions {
    width: 100%;
  }

  .remark-actions button {
    flex: 1;
  }

  .gift-card {
    min-height: 132px;
  }

  .gift-poster figcaption {
    align-items: stretch;
    flex-direction: column;
  }

  .gift-poster figcaption .gift-poster-actions {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .form-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .form-actions p {
    margin: 0;
  }
}

@media (max-width: 900px) {
  .h5-shell {
    width: min(100%, 680px);
  }

  .site-footer {
    width: min(100%, 680px);
  }

  .context-strip,
  .gift-grid,
  .product-summary {
    grid-template-columns: 1fr;
  }

  .product-detail-grid,
  .product-detail-grid--compact {
    grid-template-columns: 1fr;
  }

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

  .order-card-foot {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding-left: 0;
    padding-top: 10px;
    border-top: 1px solid #dce6e1;
    border-left: 0;
  }

  .order-card-foot .order-field:last-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 360px) {
  .summary-metrics {
    grid-template-columns: 1fr;
  }

  .summary-metrics div {
    padding-right: 0;
  }

  .jar-total span {
    font-size: 70px;
  }
}
