@import url('https://fonts.googleapis.com/css2?family=Zen+Kaku+Gothic+New:wght@500;700&display=swap');

/* ============================================================
   9province 産直ギフト B2B システム
   ============================================================ */

*, *::before, *::after {
  box-sizing: border-box;
}

:root {
  --page-gutter: clamp(12px, 2vw, 28px);
  --brand-ink: #231816;
  --brand-orange: #e95613;
  --brand-orange-2: #ed6d0f;
  --brand-yellow: #f9bf2d;
  --brand-cream: #fff9bb;
  --brand-bluegreen: #2c4b5f;
  --brand-sand: #f1eddc;
  --brand-white: #ffffff;
  --brand-soft: #f6f6f6;
  --brand-line: rgba(35, 24, 22, 0.14);
  --brand-font-jp: 'Zen Kaku Gothic New', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --brand-font-en: Futura, 'Century Gothic', 'Avenir Next', system-ui, sans-serif;
  --gift-bg: #ffffff;
  --gift-surface: #ffffff;
  --gift-surface-soft: var(--brand-cream);
  --gift-line: var(--brand-line);
  --gift-ink: var(--brand-ink);
  --gift-muted: rgba(35, 24, 22, 0.64);
  --gift-primary: var(--brand-orange);
  --gift-primary-dark: var(--brand-bluegreen);
  --gift-gold: var(--brand-yellow);
  --gift-blue: var(--brand-bluegreen);
  --gift-red: #b23b3b;
  --gift-radius: 8px;
  --gift-shadow: 0 14px 30px rgba(35, 24, 22, 0.08);
}

html {
  font-size: 16px;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--brand-font-jp);
  color: var(--gift-ink);
  background: var(--gift-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.g-admin-apple {
  --gift-bg: #ffffff;
  --gift-surface: #ffffff;
  --gift-surface-soft: var(--brand-cream);
  --gift-line: var(--brand-line);
  --gift-ink: var(--brand-ink);
  --gift-muted: rgba(35, 24, 22, 0.64);
  --gift-primary: var(--brand-orange);
  --gift-primary-dark: var(--brand-bluegreen);
  --gift-gold: var(--brand-yellow);
  --gift-shadow: 0 12px 30px rgba(35, 24, 22, 0.08);
}

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

button {
  cursor: pointer;
}

a {
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
}

[hidden] {
  display: none !important;
}

.g-shell {
  min-height: 100vh;
}

.g-topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(35, 24, 22, 0.12);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
}

.g-topbar__inner {
  max-width: none;
  margin: 0 auto;
  padding: 14px var(--page-gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.g-admin-apple .g-topbar {
  border-bottom-color: #e5e5ea;
  color: var(--brand-ink);
  background: rgba(255, 255, 255, 0.97);
}

.g-admin-apple .g-topbar__inner {
  max-width: none;
}

.g-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  min-width: 168px;
}

.g-brand__logo {
  width: 220px;
  height: auto;
  object-fit: contain;
}

.g-admin-brand {
  gap: 12px;
}

.g-admin-brand__logo-wrap {
  display: block;
  padding: 0;
}

.g-admin-brand__logo-wrap .g-brand__logo {
  width: 208px;
}

.g-admin-brand__label {
  padding-left: 12px;
  border-left: 1px solid var(--brand-line);
  color: var(--gift-muted);
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
}

.g-brand__mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  color: #fff;
  background: var(--gift-primary);
  font-family: var(--brand-font-en);
  font-weight: 700;
}

.g-admin-apple .g-brand__mark {
  border-radius: 8px;
  background: var(--brand-orange);
  font-family: inherit;
}

.g-brand__name {
  display: block;
  font-family: var(--brand-font-en);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.2;
}

.g-admin-apple .g-brand__name,
.g-admin-apple .g-page-head h1,
.g-admin-apple .g-panel__head h2,
.g-admin-apple .g-shipment__head h3 {
  font-family: inherit;
}

.g-brand__sub {
  display: block;
  color: var(--gift-muted);
  font-size: 0.72rem;
  line-height: 1.2;
}

.g-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.g-nav__link {
  padding: 8px 12px;
  border-radius: 6px;
  color: var(--gift-muted);
  font-size: 0.84rem;
  font-weight: 600;
  text-decoration: none;
  transition: color 160ms ease, background-color 160ms ease;
}

.g-nav__link:hover,
.g-nav__link--active {
  color: var(--brand-orange);
  background: #fff;
}

.g-admin-apple .g-nav__link {
  border-radius: 8px;
  color: var(--gift-muted);
  font-size: 0.82rem;
}

.g-admin-apple .g-nav__link:hover {
  color: var(--brand-ink);
  background: var(--brand-soft);
}

.g-admin-apple .g-nav__link--active {
  color: #fff;
  background: var(--brand-orange);
}

.g-admin-apple .g-nav__link--customer {
  margin-left: 8px;
  border: 1px solid #d8d8dc;
  color: var(--gift-muted);
}

.g-admin-apple .g-nav__link--customer:hover {
  color: var(--brand-orange);
  border-color: var(--brand-orange);
  background: #fff;
}

.g-main {
  max-width: none;
  margin: 0 auto;
  padding: 28px var(--page-gutter) 64px;
}

.g-admin-apple .g-main {
  max-width: none;
  padding-top: 34px;
}

.g-page-head {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: flex-end;
  margin-bottom: 22px;
}

.g-page-head__eyebrow {
  color: var(--brand-orange);
  font-family: var(--brand-font-en);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: none;
}

.g-page-head h1 {
  margin: 2px 0 4px;
  font-family: var(--brand-font-jp);
  font-size: clamp(1.65rem, 3vw, 2.35rem);
  line-height: 1.25;
  letter-spacing: 0;
}

.g-page-head p {
  margin: 0;
  color: var(--gift-muted);
  font-size: 0.93rem;
}

.g-admin-apple .g-page-head {
  align-items: flex-start;
  margin-bottom: 18px;
}

.g-admin-apple .g-page-head__eyebrow {
  color: var(--brand-orange);
  font-family: var(--brand-font-en);
  letter-spacing: 0.04em;
  text-transform: none;
}

.g-admin-apple .g-page-head h1 {
  font-size: clamp(1.9rem, 3.6vw, 3rem);
  font-weight: 800;
  letter-spacing: 0;
}

.g-admin-apple .g-page-head p {
  max-width: 620px;
}

.g-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.g-btn {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 9px 15px;
  border: 1px solid var(--gift-line);
  border-radius: 6px;
  color: var(--gift-ink);
  background: #fff;
  font-size: 0.86rem;
  font-weight: 700;
  text-decoration: none;
  transition: 0.18s ease;
}

.g-btn:hover {
  border-color: #c8d0c0;
  background: var(--gift-surface-soft);
}

.g-btn--primary {
  color: #fff;
  border-color: var(--gift-primary);
  background: var(--gift-primary);
}

.g-btn--primary:hover {
  border-color: var(--gift-primary-dark);
  background: var(--gift-primary-dark);
}

.g-btn--danger {
  color: #fff;
  border-color: var(--gift-red);
  background: var(--gift-red);
}

.g-btn--ghost {
  color: var(--gift-muted);
  background: transparent;
}

.g-btn--small {
  min-height: 32px;
  padding: 6px 10px;
  font-size: 0.78rem;
}

.g-btn:disabled {
  opacity: 0.52;
  cursor: not-allowed;
}

.g-admin-apple .g-btn {
  border-color: transparent;
  border-radius: 8px;
  background: var(--brand-cream);
  font-weight: 700;
}

.g-admin-apple .g-btn:hover {
  border-color: transparent;
  background: #fff;
}

.g-admin-apple .g-btn--primary {
  color: #fff;
  background: var(--brand-orange);
}

.g-admin-apple .g-btn--primary:hover {
  background: var(--brand-bluegreen);
}

.g-grid {
  display: grid;
  gap: 18px;
  min-width: 0;
}

.g-grid--2 {
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.55fr);
}

.g-grid--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.g-panel {
  min-width: 0;
  background: var(--gift-surface);
  border: 1px solid var(--gift-line);
  border-radius: var(--gift-radius);
  box-shadow: var(--gift-shadow);
}

.g-admin-apple .g-panel,
.g-admin-apple .g-kpi,
.g-admin-apple .g-db-health,
.g-admin-apple .g-workflow-step {
  border-color: transparent;
  background: #fff;
  box-shadow: var(--gift-shadow);
}

.g-admin-apple .g-panel__head {
  border-bottom-color: #f0f0f2;
}

.g-admin-apple .g-panel__head p,
.g-admin-apple .g-help {
  color: var(--gift-muted);
}

.g-admin-apple .g-kpi {
  background: #fff;
}

.g-admin-apple .g-kpi__label {
  color: var(--gift-muted);
}

.g-admin-apple .g-kpi__value {
  color: var(--brand-ink);
  font-size: 1.65rem;
}

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

.g-order-step {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) auto;
  gap: 9px;
  align-items: center;
  min-height: 54px;
  padding: 10px 12px;
  border: 1px solid var(--gift-line);
  border-radius: 8px;
  color: var(--gift-muted);
  background: #fff;
  text-align: left;
}

.g-order-step span {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  color: var(--gift-muted);
  background: var(--gift-surface-soft);
  font-weight: 900;
}

.g-order-step strong {
  color: var(--gift-ink);
  font-size: 0.9rem;
}

.g-order-step small {
  justify-self: end;
  color: var(--gift-muted);
  font-size: 0.72rem;
  font-weight: 800;
}

.g-order-step--active {
  border-color: var(--gift-primary);
  box-shadow: 0 0 0 3px rgba(65, 106, 73, 0.1);
}

.g-order-step--active span,
.g-order-step--done span {
  color: #fff;
  background: var(--gift-primary);
}

.g-order-step--warn {
  border-color: #d9c893;
  background: #fffaf0;
}

.g-order-section {
  scroll-margin-top: 92px;
}

.g-order-section--active {
  border-color: #c5d4c1;
}

.g-panel__head {
  padding: 18px 20px 12px;
  border-bottom: 1px solid var(--gift-line);
}

.g-panel__head h2 {
  margin: 0;
  font-family: var(--brand-font-jp);
  font-size: 1.1rem;
  line-height: 1.35;
}

.g-panel__head p {
  margin: 4px 0 0;
  color: var(--gift-muted);
  font-size: 0.82rem;
}

.g-panel__body {
  padding: 20px;
  min-width: 0;
}

.g-mode-switch {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 6px;
}

.g-mode-card {
  min-height: 88px;
  padding: 14px;
  border: 1px solid var(--gift-line);
  border-radius: 8px;
  color: var(--gift-muted);
  background: #fff;
  text-align: left;
}

.g-mode-card strong,
.g-mode-card span {
  display: block;
}

.g-mode-card strong {
  color: var(--gift-ink);
  font-size: 0.92rem;
  line-height: 1.35;
}

.g-mode-card span {
  margin-top: 5px;
  font-size: 0.78rem;
  line-height: 1.55;
}

.g-mode-card--active {
  border-color: var(--gift-primary);
  background: #f5faf4;
  box-shadow: 0 0 0 3px rgba(65, 106, 73, 0.1);
}

.g-form {
  display: grid;
  gap: 18px;
}

.g-form__section {
  display: grid;
  gap: 14px;
}

.g-section-title {
  margin: 0;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--gift-line);
  color: var(--gift-primary-dark);
  font-size: 0.88rem;
  font-weight: 800;
}

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

.g-field-grid--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.g-field {
  display: grid;
  gap: 6px;
  align-content: start;
}

.g-field--full {
  grid-column: 1 / -1;
}

.g-label {
  color: var(--gift-ink);
  font-size: 0.78rem;
  font-weight: 800;
}

.g-label small {
  color: var(--gift-muted);
  font-weight: 600;
}

.g-input,
.g-select,
.g-textarea {
  width: 100%;
  min-height: 42px;
  padding: 9px 11px;
  border: 1px solid #cfd7c8;
  border-radius: 6px;
  color: var(--gift-ink);
  background: #fff;
  outline: none;
}

.g-textarea {
  min-height: 110px;
  resize: vertical;
}

.g-textarea--short {
  min-height: 74px;
}

.g-input:focus,
.g-select:focus,
.g-textarea:focus {
  border-color: var(--gift-primary);
  box-shadow: 0 0 0 3px rgba(65, 106, 73, 0.12);
}

.g-help {
  color: var(--gift-muted);
  font-size: 0.74rem;
}

.g-segment {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.g-admin-channel-switch {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--gift-line);
}

.g-admin-channel-switch__label {
  color: var(--gift-muted);
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
}

.g-segment--compact {
  padding: 3px;
  border: 1px solid #cfd7c8;
  border-radius: 8px;
  background: #fff;
}

.g-segment--compact .g-choice {
  min-height: 32px;
  border-color: transparent;
}

.g-choice {
  min-height: 34px;
  padding: 7px 11px;
  border: 1px solid #cfd7c8;
  border-radius: 6px;
  color: var(--gift-muted);
  background: #fff;
  font-size: 0.8rem;
  font-weight: 700;
}

.g-choice:hover {
  border-color: var(--gift-primary);
  color: var(--brand-ink);
  background: var(--brand-soft);
}

.g-choice--active {
  color: #fff;
  border-color: var(--gift-primary);
  background: var(--gift-primary);
}

.g-choice--active:hover {
  color: #fff;
  background: var(--brand-orange-2);
}

.g-product-period-filter {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  margin-bottom: 14px;
}

.g-product-period-filter__label {
  color: var(--gift-muted);
  font-size: 0.76rem;
  font-weight: 700;
  white-space: nowrap;
}

.g-product-period-filter__tabs {
  display: flex;
  gap: 7px;
  min-width: 0;
  padding-bottom: 2px;
  overflow-x: auto;
  scrollbar-width: none;
}

.g-product-period-filter__tabs::-webkit-scrollbar {
  display: none;
}

.g-product-period-filter__tabs .g-choice {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 7px;
}

.g-product-period-filter__tabs .g-choice small {
  min-width: 20px;
  padding: 1px 5px;
  border-radius: 999px;
  color: var(--gift-muted);
  background: #edf1ea;
  font-size: 0.66rem;
  line-height: 1.45;
  text-align: center;
}

.g-product-period-filter__tabs .g-choice--active small {
  color: var(--gift-primary);
  background: #fff;
}

.g-checks {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.g-check {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  padding: 6px 10px;
  border: 1px solid #cfd7c8;
  border-radius: 6px;
  color: var(--gift-muted);
  background: #fff;
  font-size: 0.8rem;
  font-weight: 700;
}

.g-check input {
  accent-color: var(--gift-primary);
}

.g-upload {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 14px;
  align-items: start;
}

.g-upload__preview {
  width: 160px;
  aspect-ratio: 4 / 3;
  display: grid;
  place-items: center;
  gap: 4px;
  overflow: hidden;
  border: 1px dashed #cfd7c8;
  border-radius: 8px;
  color: var(--gift-muted);
  background: var(--gift-surface-soft);
  font-size: 0.78rem;
}

.g-upload__preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.g-kpi {
  display: grid;
  gap: 8px;
  padding: 14px;
  border: 1px solid var(--gift-line);
  border-radius: 8px;
  background: var(--gift-surface-soft);
}

.g-kpi__label {
  color: var(--gift-muted);
  font-size: 0.76rem;
  font-weight: 700;
}

.g-kpi__value {
  font-size: 1.45rem;
  font-weight: 800;
  line-height: 1.1;
}

.g-summary {
  position: sticky;
  top: 84px;
  display: grid;
  gap: 12px;
  min-width: 0;
}

.g-summary__row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 7px 0;
  border-bottom: 1px solid var(--gift-line);
  font-size: 0.88rem;
}

.g-summary__row:last-child {
  border-bottom: 0;
}

.g-summary__total {
  color: var(--gift-primary-dark);
  font-size: 1.35rem;
  font-weight: 800;
}

.g-shipping-breakdown {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  padding: 10px;
  border: 1px solid var(--gift-line);
  border-radius: 8px;
  background: #fbfcfa;
}

.g-shipping-breakdown div {
  min-width: 0;
  padding: 8px;
  border-radius: 6px;
  background: #fff;
}

.g-shipping-breakdown span,
.g-shipping-breakdown strong {
  display: block;
}

.g-shipping-breakdown span {
  color: var(--gift-muted);
  font-size: 0.68rem;
  font-weight: 800;
  line-height: 1.35;
}

.g-shipping-breakdown strong {
  margin-top: 2px;
  color: var(--gift-primary-dark);
  font-size: 0.88rem;
  line-height: 1.25;
  word-break: break-word;
}

.g-alert {
  padding: 12px 14px;
  border: 1px solid #d9c893;
  border-radius: 8px;
  color: #5f4818;
  background: #fff8df;
  font-size: 0.84rem;
}

.g-alert--success {
  border-color: #bbd3bd;
  color: #234f2e;
  background: #edf8ef;
}

.g-alert--danger {
  border-color: #e7bbbb;
  color: #7c1f1f;
  background: #fff0f0;
}

.g-db-health {
  border: 1px solid var(--gift-line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--gift-shadow);
}

.g-db-health--ok {
  border-color: #d7e7d8;
}

.g-db-health--warn {
  border-color: #ead5a4;
  background: #fffaf0;
}

.g-db-health__summary {
  display: flex;
  gap: 10px;
  align-items: center;
  min-height: 44px;
  padding: 9px 13px;
  color: var(--gift-muted);
  font-size: 0.8rem;
  list-style: none;
  cursor: pointer;
}

.g-db-health__summary::-webkit-details-marker {
  display: none;
}

.g-db-health__summary strong {
  color: var(--gift-ink);
  font-size: 0.86rem;
}

.g-db-health__summary span:last-child {
  margin-left: auto;
  font-size: 0.72rem;
  font-weight: 700;
}

.g-db-health__dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #2e7d32;
}

.g-db-health--warn .g-db-health__dot {
  background: #c98200;
}

.g-db-health__body {
  display: grid;
  gap: 10px;
  padding: 0 13px 13px 32px;
}

.g-db-health p {
  margin: 0;
  color: var(--gift-muted);
  font-size: 0.78rem;
}

.g-db-health__checks {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.g-health-chip {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 4px 8px;
  border-radius: 5px;
  font-size: 0.72rem;
  font-weight: 800;
}

.g-health-chip--ok {
  color: #234f2e;
  background: #e5f2e6;
}

.g-health-chip--warn {
  color: #754f05;
  background: #f8e7bd;
}

.g-db-health__detail {
  color: #754f05;
  font-size: 0.78rem;
}

.g-setup {
  border: 1px solid var(--gift-line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--gift-shadow);
}

.g-setup__summary {
  min-height: 54px;
  padding: 12px 14px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  list-style: none;
  cursor: pointer;
}

.g-setup__summary::-webkit-details-marker {
  display: none;
}

.g-setup__summary strong,
.g-setup__summary span {
  display: block;
}

.g-setup__summary strong {
  font-size: 0.94rem;
}

.g-setup__summary span {
  color: var(--gift-muted);
  font-size: 0.76rem;
  font-weight: 800;
}

.g-setup__status {
  flex: 0 0 auto;
  padding: 4px 9px;
  border-radius: 999px;
  color: #754f05 !important;
  background: #f8e7bd;
}

.g-setup__body {
  display: grid;
  gap: 12px;
  padding: 0 14px 14px;
}

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

.g-setup-step {
  display: grid;
  gap: 7px;
  min-height: 112px;
  padding: 12px;
  border: 1px solid var(--gift-line);
  border-radius: 8px;
  background: #fafafa;
}

.g-setup-step__head {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: center;
}

.g-setup-step__head strong {
  font-size: 0.82rem;
}

.g-setup-step__head span {
  flex: 0 0 auto;
  padding: 3px 7px;
  border-radius: 999px;
  color: #754f05;
  background: #f8e7bd;
  font-size: 0.68rem;
  font-weight: 900;
}

.g-setup-step p {
  margin: 0;
  color: var(--gift-muted);
  font-size: 0.74rem;
  line-height: 1.55;
}

.g-setup-step--ok {
  border-color: #d7e7d8;
  background: #fbfffb;
}

.g-setup-step--ok .g-setup-step__head span {
  color: #234f2e;
  background: #e5f2e6;
}

.g-setup-step--pending .g-setup-step__head span {
  color: #4d5560;
  background: #eef0f2;
}

.g-toolbar {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 16px;
  min-width: 0;
}

.g-toolbar .g-input,
.g-toolbar .g-select {
  width: auto;
  min-width: 180px;
  max-width: 100%;
}

.g-toolbar--grouped {
  align-items: stretch;
  gap: 12px;
}

.g-toolbar-group {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
  padding: 10px;
  border: 1px solid var(--gift-line);
  border-radius: 8px;
  background: #fbfcfa;
}

.g-toolbar-group__label {
  color: var(--gift-muted);
  font-size: 0.7rem;
  font-weight: 900;
}

.g-shipping-scope {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.75fr);
  gap: 18px;
  align-items: end;
  margin: 0 0 12px;
  padding: 14px 16px;
  border-left: 3px solid var(--gift-accent);
  background: #f7f8f6;
}

.g-shipping-scope__summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.g-shipping-scope__summary span,
.g-shipping-scope__summary small,
.g-shipping-scope__summary strong {
  display: block;
  min-width: 0;
}

.g-shipping-scope__summary small {
  margin-bottom: 4px;
  color: var(--gift-muted);
  font-size: 0.68rem;
  font-weight: 800;
}

.g-shipping-scope__summary strong {
  overflow-wrap: anywhere;
  font-size: 0.86rem;
  line-height: 1.4;
}

.g-shipping-scope__copy {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: end;
  min-width: 0;
}

.g-shipping-scope__copy .g-select {
  width: 100%;
}

.g-dirty-status {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 8px;
  border-radius: 5px;
  color: var(--gift-muted);
  background: var(--gift-surface-soft);
  font-size: 0.72rem;
  font-weight: 900;
}

.g-dirty-status--active {
  color: #754f05;
  background: #fff0bf;
}

.g-utility-menu {
  position: relative;
}

.g-utility-menu summary {
  list-style: none;
}

.g-utility-menu summary::-webkit-details-marker {
  display: none;
}

.g-utility-menu summary::after {
  content: "⌄";
  margin-left: 8px;
  font-size: 0.75rem;
}

.g-utility-menu[open] summary::after {
  content: "⌃";
}

.g-utility-menu__body {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  z-index: 20;
  display: grid;
  gap: 7px;
  min-width: 220px;
  padding: 8px;
  border: 1px solid var(--gift-line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--gift-shadow);
}

.g-utility-menu__body .g-btn {
  justify-content: flex-start;
  width: 100%;
}

.g-product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  min-width: 0;
}

.g-product {
  display: grid;
  grid-template-rows: auto 1fr;
  overflow: hidden;
  border: 1px solid var(--gift-line);
  border-radius: 8px;
  background: #fff;
}

.g-product__img {
  aspect-ratio: 16 / 9;
  background: var(--gift-surface-soft);
  overflow: hidden;
}

.g-product__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.g-product__body {
  display: grid;
  gap: 10px;
  padding: 12px;
}

.g-product__name {
  margin: 0;
  font-size: 0.96rem;
  font-weight: 800;
  line-height: 1.4;
}

.g-product__meta {
  color: var(--gift-muted);
  font-size: 0.78rem;
}

.g-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.g-tag {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 3px 8px;
  border-radius: 5px;
  color: var(--gift-muted);
  background: var(--gift-surface-soft);
  font-size: 0.72rem;
  font-weight: 800;
}

.g-tag--green {
  color: #234f2e;
  background: #e5f2e6;
}

.g-tag--orange {
  color: #8a350d;
  background: #fff0e8;
}

.g-tag--gold {
  color: #68490d;
  background: #f5ead0;
}

.g-price {
  color: var(--gift-primary-dark);
  font-size: 1rem;
  font-weight: 900;
}

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

.g-cart-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(132px, 0.42fr) 34px;
  gap: 8px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--gift-line);
  border-radius: 8px;
  background: #fff;
}

.g-cart-item__name {
  font-weight: 800;
  line-height: 1.35;
}

.g-cart-item__meta {
  color: var(--gift-muted);
  font-size: 0.74rem;
}

.g-cart-item__controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 78px;
  gap: 8px;
  align-items: end;
}

.g-owner-summary {
  display: grid;
  gap: 2px;
  margin: 8px 0 12px;
}

.g-table-wrap {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow: auto;
  border: 1px solid var(--gift-line);
  border-radius: 8px;
  background: #fff;
}

.g-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
}

.g-table th,
.g-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--gift-line);
  text-align: left;
  vertical-align: top;
  font-size: 0.82rem;
}

.g-table th {
  color: var(--gift-muted);
  background: var(--gift-surface-soft);
  font-size: 0.74rem;
  font-weight: 900;
  white-space: nowrap;
}

.g-table tr:last-child td {
  border-bottom: 0;
}

.g-admin-apple .g-table-wrap {
  border-color: transparent;
  background: #fff;
  box-shadow: var(--gift-shadow);
}

.g-admin-apple .g-table th {
  color: var(--gift-muted);
  background: var(--brand-soft);
}

.g-admin-apple .g-table td,
.g-admin-apple .g-table th {
  border-bottom-color: #f0f0f2;
}

.g-admin-product-thumb {
  width: 76px;
  height: 56px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--gift-line);
  border-radius: 6px;
  object-fit: cover;
  color: var(--gift-muted);
  background: #f5f5f7;
  font-size: 0.68rem;
  line-height: 1.2;
  text-align: center;
}

.g-edit-row td {
  padding: 0;
  background: #fbfcfa;
}

.g-inline-editor {
  display: grid;
  gap: 14px;
  padding: 16px;
  border-top: 1px solid var(--gift-line);
}

.g-inline-editor__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  min-width: 0;
}

.g-inline-editor__actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.g-table input,
.g-table select {
  min-width: 120px;
}

.g-status {
  display: inline-flex;
  align-items: center;
  min-height: 25px;
  padding: 3px 8px;
  border-radius: 5px;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  white-space: nowrap;
}

.g-action-status {
  display: inline-flex;
  align-items: center;
  padding: 4px 9px;
  border-radius: 6px;
  background: #f0f0f2;
  color: #61616b;
  font-size: 0.76rem;
  font-weight: 700;
  white-space: nowrap;
}

.g-action-status[data-state="saved"],
.g-action-status[data-state="sent"] {
  color: #206442;
  background: #e8f5ec;
}

.g-action-status[data-state="unsaved"],
.g-action-status[data-state="saving"],
.g-action-status[data-state="sending"] {
  color: #835100;
  background: #fff3d5;
}

.g-action-status[data-state="failed"] {
  color: #a13333;
  background: #fff0f0;
}

.g-action-result,
.g-mail-results > div {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.g-mail-results {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  margin-top: 14px;
  font-size: 0.8rem;
}

.g-tracking-action {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.g-tracking-record {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 8px;
  margin-top: 7px;
  color: #6e6e73;
  font-size: 0.76rem;
}

.g-tracking-record strong {
  color: #252528;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}

.g-tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--gift-line);
}

.g-tab {
  padding: 10px 14px;
  border: 0;
  border-bottom: 3px solid transparent;
  color: var(--gift-muted);
  background: transparent;
  font-weight: 900;
}

.g-tab--active {
  color: var(--gift-primary-dark);
  border-bottom-color: var(--gift-primary);
}

.g-admin-apple .g-tabs {
  display: flex;
  width: calc(100% + (var(--page-gutter) * 2));
  max-width: none;
  margin-right: calc(var(--page-gutter) * -1);
  margin-left: calc(var(--page-gutter) * -1);
  gap: 8px;
  padding: 8px var(--page-gutter);
  overflow-x: auto;
  border: 0;
  border-top: 1px solid #e5e5ea;
  border-bottom: 1px solid #e5e5ea;
  border-radius: 0;
  background: #fff;
  box-sizing: border-box;
  scrollbar-width: none;
}

.g-admin-apple .g-tabs::-webkit-scrollbar {
  display: none;
}

.g-admin-apple .g-tab {
  flex: 0 0 auto;
  min-height: 38px;
  padding: 9px 14px;
  border: 0;
  border-radius: 6px;
  font-size: 0.84rem;
  white-space: nowrap;
  transition: color 160ms ease, background-color 160ms ease;
}

.g-admin-apple .g-tab:hover:not(.g-tab--active) {
  color: var(--brand-ink);
  background: var(--brand-soft);
}

.g-admin-apple .g-tab--active {
  color: #fff;
  background: var(--brand-orange);
}

.g-tab-panel[hidden] {
  display: none;
}

.g-tab-panel {
  scroll-margin-top: 14px;
}

.g-admin-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 18px;
  align-items: start;
  min-width: 0;
}

.g-detail {
  position: sticky;
  top: 84px;
}

.g-empty {
  padding: 28px;
  color: var(--gift-muted);
  text-align: center;
}

.g-proposal-board {
  display: grid;
  gap: 12px;
}

.g-placement-guide,
.collection-placement-guide {
  display: grid;
  gap: 3px;
}

.g-placement-guide strong,
.collection-placement-guide strong {
  font-size: 0.88rem;
}

.g-placement-guide span,
.collection-placement-guide span {
  color: var(--gift-muted);
  font-size: 0.78rem;
}

.collection-placement-guide {
  margin-top: 14px;
  padding-left: 12px;
  border-left: 4px solid var(--brand-orange);
}

.g-slide-savebar {
  position: sticky;
  top: 78px;
  z-index: 20;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid #ead5a4;
  border-radius: 8px;
  color: #754f05;
  background: #fff8df;
  box-shadow: 0 10px 24px rgba(35, 24, 22, 0.12);
}

.g-slide-savebar span {
  font-size: 0.82rem;
  font-weight: 900;
}

.g-slide-editor {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  min-width: 0;
}

.g-slide-editor--with-bench {
  grid-template-columns: 260px minmax(0, 1fr);
}

.g-slide-editor__stage {
  display: grid;
  gap: 18px;
  min-width: 0;
}

.g-slide-canvas {
  min-width: 0;
  padding: 18px;
  border: 1px solid var(--gift-line);
  border-radius: 8px;
  background: #eceae4;
  overflow: auto;
}

.g-slide-canvas__paper {
  position: relative;
  width: min(100%, 1120px);
  min-width: 860px;
  aspect-ratio: 16 / 9;
  margin: 0 auto;
  padding: 20px 40px 32px;
  overflow: hidden;
  background: #fafaf7;
  box-shadow: 0 2px 18px rgba(32, 37, 31, 0.14);
}

.g-slide-canvas__header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: start;
  margin-bottom: 4px;
}

.g-slide-canvas__title,
.g-slide-canvas__title-en {
  display: block;
  width: 520px;
  max-width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
}

.g-slide-canvas__title {
  font-family: var(--brand-font-jp);
  font-size: 20px;
  font-weight: 700;
  color: #2c2417;
}

.g-slide-canvas__title-en {
  color: var(--brand-orange);
  font-family: var(--brand-font-en);
  font-size: 11px;
  letter-spacing: 0.04em;
}

.g-slide-canvas__price {
  padding: 3px 12px;
  border: 1px solid #e6e1d8;
  border-radius: 999px;
  color: #6b5e50;
  font-size: 10px;
  white-space: nowrap;
}

.g-slide-canvas__desc {
  margin-bottom: 8px;
  color: #a39888;
  font-size: 10px;
}

.g-slide-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  min-height: 440px;
  align-content: start;
}

.g-slide-canvas__footer {
  position: absolute;
  right: 40px;
  bottom: 8px;
  left: 40px;
  display: flex;
  justify-content: space-between;
  color: #c9c0b4;
  font-family: var(--brand-font-en);
  font-size: 8px;
  letter-spacing: 0.04em;
}

.g-slide-card {
  position: relative;
  overflow: hidden;
  min-height: 0;
  border: 1px solid #efeae2;
  border-radius: 5px;
  background: #fff;
  cursor: pointer;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.g-slide-card:hover {
  border-color: rgba(65, 106, 73, 0.34);
  box-shadow: 0 10px 24px rgba(32, 37, 31, 0.1);
}

.g-slide-card:focus-visible {
  outline: 3px solid rgba(65, 106, 73, 0.45);
  outline-offset: 2px;
}

.g-slide-card--dragging {
  opacity: 0.55;
  outline: 2px solid var(--gift-primary);
}

.g-proposal-board--drag-active [data-slide-dropzone],
.g-proposal-board--drag-active [data-slide-bench-dropzone] {
  outline: 2px dashed var(--brand-orange);
  outline-offset: 3px;
}

.g-slide-card--dirty {
  box-shadow: 0 0 0 2px rgba(161, 121, 40, 0.28);
}

.g-slide-card--warning {
  border-color: #d9c893;
  box-shadow: 0 0 0 2px rgba(217, 200, 147, 0.3);
}

.g-slide-card--bench {
  opacity: 0.82;
}

.g-slide-card--selected {
  outline: 3px solid rgba(65, 106, 73, 0.45);
  outline-offset: 2px;
}

.g-slide-card--empty {
  min-height: 170px;
  display: grid;
  place-items: center;
  border-style: dashed;
  color: #c9c0b4;
  background: #fafaf7;
  cursor: default;
  font-size: 9px;
}

.g-slide-card__move,
.g-slide-card__bench {
  position: absolute;
  z-index: 4;
  top: 4px;
  min-width: 24px;
  height: 24px;
  padding: 0 7px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 5px;
  color: #fff;
  background: rgba(32, 37, 31, 0.62);
  font-size: 11px;
  line-height: 1;
}

.g-slide-card__move {
  left: 4px;
  cursor: grab;
}

.g-slide-card__bench {
  right: 4px;
}

.g-slide-card__img {
  position: relative;
  aspect-ratio: 5 / 3;
  overflow: hidden;
  background: #f4f2ed;
}

.g-slide-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.g-slide-card__image-btn {
  position: absolute;
  right: 4px;
  bottom: 4px;
  z-index: 4;
  min-height: 22px;
  padding: 2px 7px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 5px;
  color: #fff;
  background: rgba(32, 37, 31, 0.62);
  font-size: 8px;
  font-weight: 700;
}

.g-slide-card__placeholder {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  color: #a39888;
  font-size: 8px;
  opacity: 0.45;
}

.g-slide-card__badge,
.g-slide-card__award {
  position: absolute;
  z-index: 3;
  top: 4px;
  left: 4px;
  padding: 1px 6px;
  border-radius: 2px;
  color: #fff;
  background: #a17928;
  font-size: 7px;
  font-weight: 700;
}

.g-slide-card__award {
  right: 4px;
  left: auto;
  background: #c62828;
  font-size: 6px;
}

.g-slide-card__body {
  display: grid;
  gap: 1px;
  padding: 5px 7px 6px;
}

.g-slide-card [data-proposal-card-field] {
  min-width: 0;
}

.g-slide-card__name {
  font-family: var(--brand-font-jp);
  font-size: 10px;
  font-weight: 700;
  line-height: 1.3;
  color: #2c2417;
}

.g-slide-card__variety,
.g-slide-card__location {
  color: #a39888;
  font-size: 7.5px;
}

.g-slide-card__tags {
  min-height: 14px;
  color: #6b5e50;
  font-size: 6.5px;
}

.g-slide-card__price {
  color: var(--brand-orange);
  font-family: var(--brand-font-jp);
  font-size: 11px;
  font-weight: 700;
}

.g-slide-card__price small {
  color: #a39888;
  font-size: 7px;
  font-weight: 500;
}

.g-slide-card__warning {
  padding: 3px 7px 5px;
  color: #754f05;
  background: #fff8df;
  font-size: 7px;
  font-weight: 800;
}

.g-slide-card__warning:empty {
  display: none;
}

.g-slide-bench {
  position: sticky;
  top: 84px;
  max-height: calc(100vh - 108px);
  overflow: auto;
  padding: 16px;
  border: 1px dashed #cfd7c8;
  border-radius: 8px;
  background: #fbfcfa;
}

.g-slide-bench__head {
  position: sticky;
  top: 0;
  z-index: 4;
  display: grid;
  gap: 10px;
  margin: -16px -16px 12px;
  padding: 14px 14px 12px;
  border-bottom: 1px solid var(--gift-line);
  background: #fbfcfa;
}

.g-slide-bench__head div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: baseline;
}

.g-slide-bench__head strong {
  font-size: 0.92rem;
}

.g-slide-bench__head span {
  color: var(--gift-muted);
  font-size: 0.74rem;
  font-weight: 900;
}

.g-slide-bench__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  min-height: 120px;
}

.g-slide-bench .g-slide-card {
  min-height: 0;
}

.g-slide-bench .g-slide-card__img {
  aspect-ratio: 16 / 9;
}

.g-slide-bench .g-slide-card__body {
  padding: 6px 8px 8px;
}

.g-slide-bench .g-slide-card__name {
  font-size: 9px;
}

.g-slide-bench .g-slide-card__variety,
.g-slide-bench .g-slide-card__location,
.g-slide-bench .g-slide-card__tags {
  font-size: 7px;
}

.g-slide-bench .g-slide-card__price {
  font-size: 9px;
}

.g-body--inspector-open {
  overflow: hidden;
}

.g-slide-inspector-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  justify-items: end;
  background: rgba(32, 37, 31, 0.28);
  backdrop-filter: blur(2px);
}

.g-slide-inspector {
  position: relative;
  width: min(420px, calc(100vw - 24px));
  height: 100vh;
  max-height: 100vh;
  overflow: auto;
  border: 1px solid var(--gift-line);
  border-radius: 8px 0 0 8px;
  background: #fff;
  box-shadow: -24px 0 60px rgba(32, 37, 31, 0.18);
}

.g-slide-inspector__empty {
  display: grid;
  gap: 5px;
  padding: 18px;
  color: var(--gift-muted);
}

.g-slide-inspector__empty-head,
.g-slide-inspector__actions {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
}

.g-slide-inspector__empty strong {
  color: var(--gift-ink);
}

.g-slide-inspector__head {
  position: sticky;
  top: 0;
  z-index: 3;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  padding: 14px;
  border-bottom: 1px solid var(--gift-line);
  background: #fff;
}

.g-slide-inspector__head strong,
.g-slide-inspector__head span {
  display: block;
  line-height: 1.35;
}

.g-slide-inspector__head strong {
  font-size: 0.92rem;
}

.g-slide-inspector__head span {
  color: var(--gift-muted);
  font-size: 0.72rem;
  font-weight: 800;
}

.g-slide-inspector__close {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border: 1px solid var(--gift-line);
  border-radius: 999px;
  color: var(--gift-muted);
  background: #fff;
  font-size: 1.1rem;
  line-height: 1;
}

.g-slide-inspector__close:hover {
  color: var(--gift-ink);
  border-color: rgba(65, 106, 73, 0.28);
  background: var(--gift-surface-soft);
}

.g-slide-inspector__preview {
  aspect-ratio: 16 / 10;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: var(--gift-muted);
  background: var(--gift-surface-soft);
  font-size: 0.76rem;
  font-weight: 900;
}

.g-slide-inspector__preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.g-slide-inspector__form {
  padding: 14px;
}

.g-proposal-item {
  display: grid;
  grid-template-columns: 34px 96px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
  padding: 12px;
  border: 1px solid var(--gift-line);
  border-radius: 8px;
  background: #fff;
}

.g-proposal-item[draggable="true"] {
  cursor: grab;
}

.g-proposal-item--dragging {
  opacity: 0.52;
  outline: 2px dashed var(--gift-primary);
}

.g-proposal-item--hidden {
  opacity: 0.58;
  background: #f7f7f4;
}

.g-proposal-item__handle {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 6px;
  color: var(--gift-muted);
  background: var(--gift-surface-soft);
  font-weight: 900;
  user-select: none;
}

.g-proposal-item__img {
  width: 96px;
  aspect-ratio: 4 / 3;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--gift-line);
  border-radius: 7px;
  color: var(--gift-muted);
  background: var(--gift-surface-soft);
  font-size: 0.72rem;
}

.g-proposal-item__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.g-proposal-item__fields {
  display: grid;
  grid-template-columns: 1.3fr 0.8fr 0.8fr 0.6fr;
  gap: 10px;
  min-width: 0;
}

.g-proposal-item__actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.g-proposal-item__meta {
  grid-column: 1 / -1;
  color: var(--gift-muted);
  font-size: 0.74rem;
}

.g-shipment {
  padding: 16px 0 20px;
  border-bottom: 1px solid var(--gift-line);
}

.g-shipment:first-child {
  padding-top: 0;
}

.g-shipment:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.g-shipment__head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: baseline;
  margin-bottom: 10px;
}

.g-shipment__head h3 {
  margin: 0;
  font-family: var(--brand-font-jp);
  font-size: 1rem;
}

.g-workflow {
  display: grid;
  gap: 12px;
}

.g-workflow-step {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--gift-line);
  border-radius: 8px;
  background: #fbfcfa;
}

.g-workflow-step__head {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
}

.g-workflow-step__num {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  color: #fff;
  background: var(--gift-primary);
  font-size: 0.84rem;
  font-weight: 900;
}

.g-workflow-step strong {
  display: block;
  line-height: 1.35;
}

.g-workflow-step p {
  margin: 3px 0 0;
  color: var(--gift-muted);
  font-size: 0.78rem;
  line-height: 1.5;
}

.g-toast-container {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 200;
  display: grid;
  gap: 8px;
}

.g-toast {
  transform: translateY(10px);
  opacity: 0;
  max-width: min(420px, calc(100vw - 36px));
  padding: 11px 14px;
  border-radius: 8px;
  color: #fff;
  background: var(--gift-primary);
  box-shadow: var(--gift-shadow);
  transition: 0.2s ease;
}

.g-toast--error {
  background: var(--gift-red);
}

.g-toast--show {
  transform: translateY(0);
  opacity: 1;
}

.g-login {
  max-width: 440px;
  margin: 80px auto;
}

.g-invoice {
  max-width: 940px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid var(--gift-line);
  border-radius: 8px;
  box-shadow: var(--gift-shadow);
}

.g-invoice__paper {
  padding: 44px;
}

.g-invoice__head {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 36px;
}

.g-invoice h1 {
  margin: 0;
  font-family: var(--brand-font-jp);
  font-size: 2rem;
}

.g-invoice__meta {
  display: grid;
  gap: 5px;
  color: var(--gift-muted);
  font-size: 0.86rem;
  text-align: right;
}

.g-invoice__to {
  display: grid;
  gap: 10px;
  margin-bottom: 26px;
}

.g-invoice__customer {
  display: inline-block;
  width: fit-content;
  padding-bottom: 5px;
  border-bottom: 1px solid var(--gift-ink);
  font-size: 1.15rem;
  font-weight: 800;
}

.g-invoice__amount {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 18px;
  margin: 22px 0;
  border: 1px solid var(--gift-line);
  border-radius: 8px;
  background: var(--gift-surface-soft);
}

.g-invoice__amount strong {
  font-size: 1.5rem;
}

.g-invoice__company {
  margin-top: 34px;
  color: var(--gift-muted);
  font-size: 0.86rem;
  text-align: right;
}

.g-document-totals {
  width: min(100%, 420px);
  margin: 24px 0 0 auto;
}

.g-document-note {
  margin-top: 24px;
}

.g-printbar {
  max-width: 940px;
  margin: 18px auto;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

/* ============================================================
   顧客向けラインナップ
   ============================================================ */

.g-main--wide {
  width: 100%;
  max-width: none;
}

.store-channel-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin-bottom: 18px;
  border: 1px solid var(--store-line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--store-line);
}

.store-channel-tab {
  min-width: 0;
  min-height: 64px;
  display: grid;
  gap: 3px;
  align-content: center;
  padding: 11px 16px;
  border: 0;
  color: var(--store-muted);
  background: #fff;
  text-align: left;
}

.store-channel-tab span,
.store-channel-tab small {
  overflow-wrap: anywhere;
}

.store-channel-tab span {
  color: var(--store-ink);
  font-size: 0.94rem;
  font-weight: 800;
}

.store-channel-tab small {
  font-size: 0.72rem;
}

.store-channel-tab--active {
  color: #fff;
  background: var(--brand-orange);
}

.store-channel-tab--active span,
.store-channel-tab--active small {
  color: #fff;
}

.g-catalog-status {
  margin-bottom: 16px;
  padding: 11px 14px;
  border: 1px solid var(--gift-line);
  border-radius: 8px;
  color: var(--gift-muted);
  background: #fff;
  font-size: 0.84rem;
  font-weight: 700;
}

.g-catalog-status--ok {
  border-color: #bbd3bd;
  color: #234f2e;
  background: #edf8ef;
}

.g-catalog-status--warn {
  border-color: #d9c893;
  color: #68490d;
  background: #fff8df;
}

.g-catalog-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 18px;
  align-items: start;
  min-width: 0;
}

.g-catalog-main {
  min-width: 0;
}

.g-catalog-tabs {
  position: sticky;
  top: 64px;
  z-index: 20;
  display: flex;
  gap: 8px;
  min-width: 0;
  margin-bottom: 14px;
  padding: 10px;
  overflow-x: auto;
  border: 1px solid var(--gift-line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--gift-shadow);
}

.g-catalog-tab {
  flex: 0 0 auto;
  min-width: 116px;
  min-height: 44px;
  display: grid;
  gap: 2px;
  align-content: center;
  padding: 8px 12px;
  border: 1px solid transparent;
  border-radius: 6px;
  color: var(--gift-muted);
  background: transparent;
  text-align: left;
}

.g-catalog-tab span,
.g-catalog-tab small {
  display: block;
  line-height: 1.25;
}

.g-catalog-tab span {
  color: var(--gift-ink);
  font-size: 0.84rem;
  font-weight: 900;
}

.g-catalog-tab small {
  color: var(--gift-muted);
  font-size: 0.68rem;
  font-weight: 800;
}

.g-catalog-tab--active {
  border-color: var(--gift-primary);
  background: #f5faf4;
  box-shadow: 0 0 0 3px rgba(65, 106, 73, 0.1);
}

.g-catalog-panel {
  display: none;
  min-width: 0;
  padding: 20px;
  border: 1px solid var(--gift-line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--gift-shadow);
}

.g-catalog-panel--active {
  display: block;
}

.g-catalog-panel__head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--gift-line);
}

.g-catalog-panel__head h2 {
  margin: 0;
  font-family: var(--brand-font-jp);
  font-size: 1.38rem;
  line-height: 1.35;
}

.g-catalog-panel__head p {
  margin: 3px 0 0;
  color: var(--gift-muted);
  font-family: var(--brand-font-en);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.g-catalog-panel__price {
  flex: 0 0 auto;
  padding: 5px 12px;
  border: 1px solid var(--gift-line);
  border-radius: 6px;
  color: var(--gift-primary-dark);
  background: var(--gift-surface-soft);
  font-size: 0.8rem;
  font-weight: 900;
}

.g-catalog-panel__desc {
  margin: 12px 0 16px;
  color: var(--gift-muted);
  font-size: 0.86rem;
}

.g-catalog-panel__desc--right {
  text-align: right;
}

.g-catalog-category {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.g-catalog-category:first-of-type {
  margin-top: 16px;
}

.g-catalog-category__head {
  display: flex;
  gap: 10px;
  align-items: baseline;
  padding-bottom: 7px;
  border-bottom: 1px solid var(--gift-line);
}

.g-catalog-category__head strong {
  font-size: 0.92rem;
}

.g-catalog-category__head span {
  color: var(--gift-muted);
  font-family: var(--brand-font-en);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.g-catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
  min-width: 0;
}

.g-catalog-grid--showcase {
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
}

.g-catalog-grid--tiers {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.g-catalog-card {
  min-width: 0;
  display: grid;
  grid-template-rows: auto 1fr;
  overflow: hidden;
  border: 1px solid var(--gift-line);
  border-radius: 8px;
  background: #fff;
}

.g-catalog-card__img {
  position: relative;
  aspect-ratio: 16 / 9;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: var(--gift-muted);
  background: var(--gift-surface-soft);
  font-size: 0.76rem;
  font-weight: 800;
}

.g-catalog-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.g-catalog-card__img--dual {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  aspect-ratio: 16 / 9;
}

.g-catalog-card__award {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
  max-width: calc(100% - 16px);
  padding: 3px 8px;
  border-radius: 5px;
  color: #fff;
  background: var(--gift-red);
  font-size: 0.68rem;
  font-weight: 900;
}

.g-catalog-card__tier-head {
  min-height: 42px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 9px 12px;
  color: #fff;
}

.g-catalog-card__tier-head strong,
.g-catalog-card__tier-head span {
  line-height: 1.25;
}

.g-catalog-card__tier-head span {
  font-size: 0.82rem;
  font-weight: 900;
  text-align: right;
}

.g-catalog-card__body {
  min-width: 0;
  display: grid;
  gap: 10px;
  padding: 12px;
}

.g-catalog-card h3 {
  margin: 0;
  font-size: 0.98rem;
  font-weight: 900;
  line-height: 1.4;
}

.g-catalog-card__meta,
.g-catalog-card__detail,
.g-catalog-card__desc {
  color: var(--gift-muted);
  font-size: 0.78rem;
  line-height: 1.55;
}

.g-catalog-card__desc {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.g-catalog-card__contents {
  display: grid;
  gap: 3px;
  padding: 9px 10px;
  border-left: 3px solid var(--gift-primary);
  background: var(--gift-surface-soft);
}

.g-catalog-card__contents span {
  color: var(--gift-muted);
  font-size: 0.68rem;
  font-weight: 700;
}

.g-catalog-card__contents p {
  margin: 0;
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1.5;
}

.g-catalog-card__foot {
  display: grid;
  gap: 10px;
  align-self: end;
}

.g-catalog-card__price {
  color: var(--gift-primary-dark);
  font-size: 1rem;
  font-weight: 900;
}

.g-catalog-card__add {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 8px;
}

.g-catalog-producer {
  display: grid;
  gap: 16px;
  margin-top: 16px;
}

.g-catalog-producer__profile {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--gift-line);
  border-radius: 8px;
  background: #fbfcfa;
}

.g-catalog-producer__profile strong {
  display: block;
  line-height: 1.35;
}

.g-catalog-producer__profile p {
  margin: 4px 0 0;
  color: var(--gift-muted);
  font-size: 0.8rem;
}

.g-catalog-producer__img {
  width: 88px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 8px;
  color: var(--gift-muted);
  background: var(--gift-surface-soft);
  font-size: 0.72rem;
  font-weight: 800;
}

.g-catalog-producer__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.g-catalog-options {
  margin-top: 18px;
  padding: 14px;
  border: 1px solid var(--gift-line);
  border-radius: 8px;
  background: #fbfcfa;
}

.g-catalog-options__head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: baseline;
  margin-bottom: 10px;
}

.g-catalog-options__head strong {
  font-size: 0.92rem;
}

.g-catalog-options__head span {
  color: var(--gift-muted);
  font-size: 0.76rem;
  font-weight: 800;
}

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

.g-catalog-options__grid div {
  min-width: 0;
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  padding: 8px;
  border: 1px solid var(--gift-line);
  border-radius: 7px;
  background: #fff;
}

.g-catalog-options__grid img {
  grid-row: span 2;
  width: 58px;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 6px;
}

.g-catalog-options__grid span,
.g-catalog-options__grid strong {
  min-width: 0;
  line-height: 1.35;
}

.g-catalog-options__grid span {
  font-size: 0.78rem;
  font-weight: 900;
}

.g-catalog-options__grid strong {
  color: var(--gift-primary-dark);
  font-size: 0.76rem;
}

.g-catalog-cart {
  position: sticky;
  top: 84px;
  min-width: 0;
}

.g-catalog-cart__list {
  display: grid;
  gap: 10px;
}

.g-catalog-cart__item {
  display: grid;
  gap: 9px;
  padding: 10px;
  border: 1px solid var(--gift-line);
  border-radius: 8px;
  background: #fff;
}

.g-catalog-cart__item strong,
.g-catalog-cart__item span {
  display: block;
  min-width: 0;
  line-height: 1.35;
}

.g-catalog-cart__item strong {
  font-size: 0.86rem;
}

.g-catalog-cart__item span {
  margin-top: 3px;
  color: var(--gift-muted);
  font-size: 0.74rem;
}

.g-catalog-cart__controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 74px 34px;
  gap: 7px;
  align-items: center;
}

.g-catalog-cart__submit {
  width: 100%;
  margin-top: 12px;
}

@media (max-width: 980px) {
  .g-grid--2,
  .g-grid--3,
  .g-admin-layout,
  .g-catalog-layout {
    grid-template-columns: 1fr;
  }

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

  .g-db-health {
    grid-template-columns: 1fr;
  }

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

  .g-toolbar-group {
    flex: 1 1 260px;
  }

  .g-shipping-scope {
    grid-template-columns: 1fr;
  }

  .g-summary,
  .g-detail,
  .g-catalog-cart {
    position: static;
  }

  .g-catalog-tabs {
    top: 70px;
  }

  .g-catalog-grid--tiers,
  .g-catalog-options__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .g-proposal-item {
    grid-template-columns: 34px 82px minmax(0, 1fr);
  }

  .g-proposal-item__actions {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }

  .g-proposal-item__fields {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .g-inline-editor__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .g-slide-canvas__paper {
    min-width: 760px;
  }

  .g-slide-editor,
  .g-slide-editor--with-bench {
    grid-template-columns: 1fr;
  }

  .g-slide-bench {
    position: static;
    max-height: none;
  }

  .g-slide-inspector-backdrop {
    justify-items: stretch;
  }

  .g-slide-inspector {
    width: 100%;
    height: 100%;
    max-height: 100%;
    border-radius: 0;
  }

  .g-slide-bench__grid {
    grid-template-columns: repeat(3, minmax(120px, 1fr));
  }
}

@media (max-width: 680px) {
  .g-shipping-scope__summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .g-shipping-scope__copy {
    grid-template-columns: 1fr;
  }

  .g-shipping-scope__copy .g-btn {
    width: 100%;
  }

  .g-topbar__inner,
  .g-page-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .g-main {
    padding: 22px 14px 48px;
  }

  .g-nav {
    justify-content: flex-start;
  }

  .g-admin-apple .g-topbar__inner {
    gap: 12px;
  }

  .g-admin-apple .g-nav {
    width: 100%;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .g-admin-apple .g-nav__link {
    flex: 0 0 auto;
  }

  .collection-admin__intro {
    align-items: stretch;
    flex-direction: column;
  }

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

  .g-order-step {
    grid-template-columns: 30px minmax(0, 1fr);
  }

  .g-order-step small {
    grid-column: 2;
    justify-self: start;
  }

  .g-field-grid,
  .g-field-grid--3,
  .g-mode-switch,
  .g-product-grid,
  .g-catalog-grid,
  .g-catalog-grid--showcase,
  .g-catalog-grid--tiers,
  .g-catalog-options__grid,
  .g-shipping-breakdown,
  .g-upload {
    grid-template-columns: 1fr;
  }

  .g-catalog-panel {
    padding: 14px;
  }

  .g-catalog-panel__head,
  .g-catalog-options__head {
    align-items: flex-start;
    flex-direction: column;
  }

  .g-catalog-panel__desc--right {
    text-align: left;
  }

  .g-catalog-producer__profile,
  .g-catalog-options__grid div {
    grid-template-columns: 1fr;
  }

  .g-catalog-producer__img,
  .g-catalog-options__grid img {
    width: 100%;
  }

  .g-mode-card {
    min-height: 0;
  }

  .g-toolbar--grouped {
    display: grid;
  }

  .g-setup__summary,
  .g-slide-savebar {
    align-items: flex-start;
    flex-direction: column;
  }

  .g-setup__steps {
    grid-template-columns: 1fr;
  }

  .g-toolbar-group {
    width: 100%;
  }

  .g-utility-menu {
    width: 100%;
  }

  .g-utility-menu summary {
    width: 100%;
    justify-content: center;
  }

  .g-utility-menu__body {
    position: static;
    margin-top: 8px;
    box-shadow: none;
  }

  .g-upload__preview {
    width: 100%;
  }

  .g-cart-item {
    grid-template-columns: 1fr;
  }

  .g-cart-item__controls {
    grid-template-columns: 1fr;
  }

  .g-proposal-item {
    grid-template-columns: 34px minmax(0, 1fr);
  }

  .g-proposal-item__img {
    grid-column: 1 / -1;
    width: 100%;
  }

  .g-proposal-item__fields {
    grid-column: 1 / -1;
    grid-template-columns: 1fr;
  }

  .g-inline-editor__grid {
    grid-template-columns: 1fr;
  }

  .g-slide-canvas {
    padding: 12px;
  }

  .g-slide-canvas__paper {
    min-width: 700px;
  }

  .g-slide-bench__head {
    align-items: flex-start;
    flex-direction: column;
  }

  .g-slide-bench__grid {
    grid-template-columns: 1fr;
  }

  .g-invoice__paper {
    padding: 24px;
  }

  .g-invoice__head,
  .g-invoice__amount {
    flex-direction: column;
  }

  .g-invoice__meta {
    text-align: left;
  }
}

@media print {
  @page {
    size: A4 portrait;
    margin: 10mm;
  }

  body {
    background: #fff !important;
  }

  .g-topbar,
  .g-printbar,
  .g-page-head,
  .g-nav,
  .g-actions {
    display: none !important;
  }

  .g-main {
    max-width: none;
    padding: 0;
  }

  .g-invoice {
    width: 100%;
    max-width: none;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .g-invoice__paper {
    width: 100%;
    padding: 0;
  }

  .g-invoice .g-table-wrap {
    overflow: visible;
  }

  .g-invoice .g-table {
    width: 100%;
    table-layout: fixed;
    font-size: 9pt;
  }

  .g-invoice .g-table th,
  .g-invoice .g-table td {
    padding: 6px;
    overflow-wrap: anywhere;
  }
}

/* ============================================================
   Customer store (Apple-like purchase flow)
   ============================================================ */

.g-store {
  --store-bg: #ffffff;
  --store-surface: #ffffff;
  --store-ink: var(--brand-ink);
  --store-muted: rgba(35, 24, 22, 0.64);
  --store-line: var(--brand-line);
  --store-blue: var(--brand-orange);
  --store-blue-hover: var(--brand-bluegreen);
  --store-green: var(--brand-bluegreen);
  --store-radius: 18px;
  --store-nav-h: 52px;
  --store-bag-h: 72px;
  color: var(--store-ink);
  background: var(--store-bg);
  font-family: var(--brand-font-jp);
}

.g-store .g-shell {
  padding-bottom: 48px;
}

.g-store--catalog .g-shell {
  padding-bottom: calc(var(--store-bag-h) + 28px);
}

.g-store .g-store-internal {
  display: none !important;
}

.store-nav {
  position: sticky;
  top: 0;
  z-index: 60;
  min-height: var(--store-nav-h);
  border-bottom: 1px solid var(--store-line);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
}

.store-nav__inner {
  max-width: none;
  min-height: var(--store-nav-h);
  margin: 0 auto;
  padding: 10px var(--page-gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px 16px;
  flex-wrap: wrap;
}

.store-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--store-ink);
}

.store-brand__logo {
  width: 218px;
  height: auto;
  object-fit: contain;
}

.store-brand__audience {
  padding-left: 10px;
  border-left: 1px solid var(--store-line);
  color: var(--store-muted);
  font-family: var(--brand-font-en);
  font-size: 0.68rem;
  font-weight: 700;
  white-space: nowrap;
}

.store-brand__mark {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: #fff;
  background: var(--store-green);
  font-size: 0.92rem;
  font-weight: 700;
}

.store-brand__name {
  font-family: var(--brand-font-en);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0;
}

.store-nav__links {
  display: flex;
  align-items: center;
  gap: 10px;
}

.store-nav__step {
  color: var(--store-muted);
  font-size: 0.8rem;
  font-weight: 500;
  text-decoration: none;
}

.store-nav__step--current {
  color: var(--store-ink);
  font-weight: 700;
}

.store-nav__sep {
  width: 18px;
  height: 1px;
  background: var(--store-line);
}

.store-nav__text,
.store-nav__bag {
  color: var(--store-ink);
  font-size: 0.8rem;
  font-weight: 500;
  text-decoration: none;
  background: transparent;
  border: 0;
  padding: 0;
}

.store-nav__text--active {
  color: var(--brand-orange);
  font-weight: 700;
}

.store-nav__bag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.store-nav__bag-count {
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  background: var(--store-blue);
  font-size: 0.7rem;
  font-weight: 700;
}

.store-hero {
  display: flex;
  justify-content: center;
  width: 100%;
  overflow: hidden;
  color: #fff;
  padding: 0;
  background: var(--store-bg);
}

.store-hero__frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 7;
  max-height: min(680px, calc(100svh - var(--store-nav-h) - var(--store-bag-h) - 92px));
  overflow: hidden;
  border-radius: 0;
  line-height: 0;
  background: #5bd4dd;
}

.g-store--catalog .store-hero__frame {
  aspect-ratio: 16 / 5;
  min-height: 260px;
  max-height: 390px;
}

.g-store--catalog .store-hero__content {
  padding-bottom: 28px;
}

.g-store--catalog .store-hero__brand {
  margin-bottom: 6px;
  font-size: clamp(1.1rem, 2.2vw, 1.65rem);
}

.g-store--catalog .store-hero h1 {
  font-size: clamp(2rem, 4.2vw, 3.35rem);
}

.g-store--catalog .store-hero__lead {
  margin-top: 9px;
  font-size: 0.94rem;
}

.store-hero__img {
  display: block;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 38%;
}

.store-hero__veil {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.02) 0%, rgba(0, 0, 0, 0.1) 46%, rgba(0, 0, 0, 0.64) 100%);
}

.store-hero__content {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  padding: 28px 22px 40px;
  text-align: center;
  line-height: 1.4;
  animation: storeFadeUp 0.9s ease both;
}

.store-hero__brand {
  margin: 0 0 10px;
  font-size: clamp(1.6rem, 3.4vw, 2.4rem);
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.05;
}

.store-hero h1 {
  margin: 0;
  font-size: clamp(2.2rem, 6vw, 4rem);
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.05;
}

.store-hero__lead {
  margin: 14px auto 0;
  max-width: 28em;
  color: rgba(255, 255, 255, 0.86);
  font-size: 1.05rem;
  line-height: 1.55;
}

.store-hero__cta {
  margin-top: 22px;
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.store-hero .store-btn {
  margin-top: 20px;
}

.store-hero__cta .store-btn {
  margin-top: 0;
}

.store-btn {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border: 0;
  border-radius: 980px;
  font-size: 0.92rem;
  font-weight: 560;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.18s ease, background 0.18s ease, color 0.18s ease, opacity 0.18s ease;
}

.store-btn:hover {
  transform: scale(1.015);
}

.store-btn:disabled {
  opacity: 0.42;
  cursor: not-allowed;
  transform: none;
}

.store-btn--primary {
  color: #fff;
  background: var(--store-blue);
}

.store-btn--primary:hover {
  background: var(--store-blue-hover);
}

.store-btn--light {
  color: var(--store-ink);
  background: #fff;
}

.store-btn--ghost,
.store-btn--ghost-light {
  color: var(--store-blue);
  background: transparent;
  border: 1px solid rgba(233, 86, 19, 0.34);
}

.store-btn--ghost-light {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.42);
}

.store-btn--block {
  width: 100%;
}

.store-wrap {
  max-width: none;
  margin: 0 auto;
  padding: 36px var(--page-gutter) 40px;
}

.g-store--catalog .store-wrap {
  padding-top: 18px;
}

.g-store--catalog .store-channel-tabs {
  margin-bottom: 12px;
}

.store-flow {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 22px;
}

.store-flow__item {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 64px;
  padding: 12px 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--store-muted);
}

.store-flow__item span {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--brand-cream);
  color: var(--store-muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.store-flow__item strong {
  color: var(--store-ink);
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.35;
}

.store-flow__item--active {
  background: #fff;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.store-flow__item--active span {
  color: #fff;
  background: var(--store-blue);
}

.store-status,
.g-store .g-catalog-status {
  margin-bottom: 18px;
  padding: 0;
  border: 0;
  border-radius: 0;
  color: var(--store-muted);
  background: transparent;
  font-size: 0.86rem;
  font-weight: 500;
}

.store-status.g-catalog-status--ok,
.g-store .g-catalog-status--ok {
  color: #1d6b3a;
  background: transparent;
}

.store-status.g-catalog-status--warn,
.g-store .g-catalog-status--warn {
  color: #8a6111;
  background: transparent;
}

.store-tabs {
  position: sticky;
  top: var(--store-nav-h);
  z-index: 30;
  display: flex;
  gap: 8px;
  margin: 0 -6px 22px;
  padding: 10px 6px;
  overflow-x: auto;
  background: linear-gradient(180deg, rgba(245, 245, 247, 0.96), rgba(245, 245, 247, 0.88));
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  scrollbar-width: none;
}

.store-tabs::-webkit-scrollbar {
  display: none;
}

.store-tabs--grouped {
  position: static;
  display: grid;
  gap: 8px;
  overflow: visible;
}

.store-tab-group {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-width: 0;
}

.store-tab-group__label {
  color: var(--store-ink);
  font-size: 0.8rem;
  line-height: 1.35;
}

.store-tab-group__row {
  display: flex;
  gap: 8px;
  min-width: 0;
  padding: 1px 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.store-tab-group__row::-webkit-scrollbar {
  display: none;
}

.store-tab-group__empty {
  padding: 8px 4px;
  color: var(--store-muted);
  font-size: 0.8rem;
}

.g-store .g-catalog-tab {
  min-width: auto;
  min-height: 38px;
  padding: 8px 14px;
  border: 0;
  border-radius: 980px;
  background: var(--brand-cream);
  color: var(--store-ink);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.g-store .g-catalog-tab span {
  font-size: 0.84rem;
  font-weight: 600;
}

.g-store .g-catalog-tab small {
  color: var(--store-muted);
  font-size: 0.72rem;
  font-weight: 600;
}

.g-store .g-catalog-tab--active {
  color: #fff;
  background: var(--brand-orange);
  box-shadow: none;
}

.g-store .g-catalog-tab--active span {
  color: #fff;
}

.g-store .g-catalog-tab--active small {
  color: rgba(255, 255, 255, 0.72);
}

.g-store .g-catalog-panel {
  display: none;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.g-store .g-catalog-panel--active {
  display: block;
  animation: storeFadeUp 0.45s ease both;
}

.g-store .g-catalog-panel__head {
  align-items: end;
  margin-bottom: 8px;
  padding-bottom: 0;
  border: 0;
}

.g-store .g-catalog-panel__head h2 {
  font-family: inherit;
  font-size: clamp(1.45rem, 3vw, 2rem);
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.g-store .g-catalog-panel__head p {
  display: none;
}

.g-store .g-catalog-panel__price {
  border: 0;
  border-radius: 980px;
  color: var(--store-muted);
  background: var(--brand-cream);
  font-weight: 600;
}

.g-store .g-catalog-panel__desc {
  max-width: 42em;
  margin: 8px 0 24px;
  font-size: 0.95rem;
  line-height: 1.6;
}

.g-store .g-catalog-subtabs {
  display: flex;
  gap: 8px;
  margin: 0 0 22px;
  padding: 4px 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.g-store .g-catalog-subtabs::-webkit-scrollbar {
  display: none;
}

.g-store .g-catalog-subtab {
  min-height: 40px;
  padding: 8px 13px;
  border: 1px solid var(--store-line);
  border-radius: 980px;
  background: #fff;
  color: var(--store-ink);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.g-store .g-catalog-subtab span {
  font-size: 0.82rem;
  font-weight: 700;
}

.g-store .g-catalog-subtab small {
  color: var(--store-muted);
  font-size: 0.7rem;
  font-weight: 700;
}

.g-store .g-catalog-subtab--active {
  color: #fff;
  border-color: var(--store-blue);
  background: var(--store-blue);
}

.g-store .g-catalog-subtab--active small {
  color: rgba(255, 255, 255, 0.76);
}

.g-store .g-catalog-category__head {
  border: 0;
  margin-bottom: 4px;
}

.g-store .g-catalog-category__head strong {
  font-size: 1.05rem;
  font-weight: 650;
  letter-spacing: 0;
}

.g-store .g-catalog-category__head span {
  display: none;
}

.g-store .g-catalog-grid {
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 18px;
}

.g-store .g-catalog-card {
  border: 0;
  border-radius: var(--store-radius);
  background: var(--store-surface);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
  overflow: hidden;
}

.g-store .g-catalog-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.08);
}

.g-store .g-catalog-card__img {
  aspect-ratio: 16 / 9;
  background: #f5f5f7;
}

.g-store .g-catalog-card__img:not(.g-catalog-card__img--dual) img {
  position: absolute;
  inset: 8px;
  width: calc(100% - 16px);
  height: calc(100% - 16px);
  object-fit: contain;
}

.g-store .g-catalog-card__award {
  top: 12px;
  right: 12px;
  border-radius: 980px;
  background: rgba(29, 29, 31, 0.82);
  font-weight: 600;
}

.g-store .g-catalog-card__body {
  gap: 8px;
  padding: 16px 16px 18px;
}

.g-store .g-catalog-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0;
}

.g-store .g-catalog-card__meta,
.g-store .g-catalog-card__detail,
.g-store .g-catalog-card__desc {
  font-size: 0.8rem;
}

.g-store .g-catalog-card__desc {
  -webkit-line-clamp: 2;
}

.g-store .g-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.g-store .g-tag {
  padding: 3px 8px;
  border: 0;
  border-radius: 980px;
  color: var(--store-muted);
  background: #f0f0f2;
  font-size: 0.68rem;
  font-weight: 600;
}

.g-store .g-catalog-card__price {
  color: var(--store-ink);
  font-size: 1.05rem;
  font-weight: 650;
  letter-spacing: 0;
}

.g-store .g-catalog-card__add {
  grid-template-columns: 70px minmax(0, 1fr);
}

.g-store .g-catalog-card__add .g-input {
  min-height: 40px;
  border-radius: 12px;
  border-color: var(--store-line);
  text-align: center;
}

.g-store .g-catalog-card__add .g-btn {
  min-height: 40px;
  border: 0;
  border-radius: 980px;
  color: #fff;
  background: var(--store-blue);
  font-weight: 600;
}

.g-store .g-catalog-card__add .g-btn:hover {
  background: var(--store-blue-hover);
}

.g-store .g-catalog-card__tier-head {
  min-height: 48px;
  padding: 12px 16px;
}

.g-store .g-catalog-producer__profile,
.g-store .g-catalog-options,
.g-store .g-catalog-options__grid div {
  border: 0;
  border-radius: var(--store-radius);
  background: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.g-store .g-catalog-options {
  padding: 18px;
}

.g-store .g-catalog-options__grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.g-store .g-catalog-options__grid div {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  grid-template-rows: auto auto;
  column-gap: 10px;
  row-gap: 2px;
  align-items: center;
  padding: 12px;
}

.g-store .g-catalog-options__grid img {
  grid-row: 1 / span 2;
  width: 56px;
  height: 56px;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 10px;
}

.g-store .g-catalog-card__img--dual {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: minmax(0, 1fr);
  gap: 8px;
  padding: 8px;
}

.g-store .g-catalog-card__img--dual img {
  min-width: 0;
  min-height: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.g-store .g-catalog-cart__controls {
  grid-template-columns: minmax(0, 1.2fr) 72px 36px;
}

.store-bag {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 70;
  border-top: 1px solid var(--store-line);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.06);
}

.store-bag__bar {
  max-width: none;
  min-height: var(--store-bag-h);
  margin: 0 auto;
  padding: 12px var(--page-gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.store-bag__summary {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 10px 14px;
  min-width: 0;
}

.store-bag__summary strong,
.store-bag__summary strong span {
  color: var(--store-ink);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0;
}

.store-bag__summary > span {
  color: var(--store-muted);
  font-size: 0.92rem;
  font-weight: 500;
}

.store-bag__actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.store-bag__panel {
  max-width: none;
  max-height: min(48vh, 420px);
  margin: 0 auto;
  padding: 0 var(--page-gutter) 18px;
  overflow: auto;
  border-top: 1px solid var(--store-line);
}

.store-bag__panel-head {
  padding: 14px 0 10px;
}

.store-bag__panel-head h2 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 650;
}

.store-bag__panel-head p {
  margin: 4px 0 0;
  color: var(--store-muted);
  font-size: 0.82rem;
}

.g-store .g-catalog-cart__item {
  border: 0;
  border-radius: 14px;
  background: var(--brand-cream);
}

.g-store .g-catalog-cart__controls .g-input,
.g-store .g-catalog-cart__controls .g-select {
  min-height: 38px;
  border-radius: 12px;
  border-color: var(--store-line);
}

.store-empty {
  padding: 18px 4px;
  color: var(--store-muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

.store-empty a {
  color: var(--store-blue);
  text-decoration: none;
}

.store-home {
  display: grid;
  gap: 42px;
  padding-top: 48px;
  padding-bottom: 80px;
}

.store-home__path h2,
.store-home__ops h2 {
  margin: 0 0 16px;
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: 0;
}

.store-home__steps {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  counter-reset: store-step;
}

.store-home__steps li {
  counter-increment: store-step;
  display: grid;
  gap: 8px;
  min-height: 140px;
  padding: 22px;
  border-radius: var(--store-radius);
  background: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.store-home__steps li::before {
  content: counter(store-step);
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  background: var(--store-ink);
  font-size: 0.8rem;
  font-weight: 700;
}

.store-home__steps strong {
  font-size: 1.05rem;
  font-weight: 650;
}

.store-home__steps span {
  color: var(--store-muted);
  font-size: 0.9rem;
  line-height: 1.55;
}

.store-home__ops {
  padding-top: 8px;
  border-top: 1px solid var(--store-line);
}

.store-home__ops h2 {
  font-size: 0.95rem;
  color: var(--store-muted);
  font-weight: 600;
}

.store-home__ops-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 22px;
}

.store-home__ops-links a {
  color: var(--store-blue);
  font-size: 0.9rem;
  text-decoration: none;
}

.store-checkout {
  max-width: none;
  margin: 0 auto;
  padding: 28px var(--page-gutter) 72px;
  min-width: 0;
}

.store-checkout__head {
  margin-bottom: 20px;
}

.store-checkout__head h1 {
  margin: 0;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.15;
}

.store-checkout__head p {
  margin: 8px 0 0;
  color: var(--store-muted);
  font-size: 0.98rem;
  line-height: 1.55;
}

.store-banner {
  margin-bottom: 16px;
  padding: 12px 16px;
  border-radius: 14px;
  color: var(--brand-bluegreen);
  background: var(--brand-cream);
  font-size: 0.88rem;
  font-weight: 500;
  line-height: 1.5;
}

.store-progress {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 20px;
}

.store-progress__step {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  min-height: 64px;
  padding: 12px 14px;
  border: 0;
  border-radius: 16px;
  background: #fff;
  text-align: left;
  color: var(--store-muted);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.store-progress__step > div {
  min-width: 0;
}

.store-progress__step span {
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--brand-cream);
  color: var(--store-muted);
  font-size: 0.8rem;
  font-weight: 700;
}

.store-progress__step strong {
  display: block;
  color: var(--store-ink);
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.3;
}

.store-progress__step small {
  display: block;
  margin-top: 2px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.72rem;
  font-weight: 500;
}

.store-progress__step--active,
.g-order-step--active.store-progress__step {
  box-shadow: 0 0 0 2px rgba(233, 86, 19, 0.28), 0 10px 30px rgba(35, 24, 22, 0.05);
}

.store-progress__step--active span,
.g-order-step--done.store-progress__step span {
  color: #fff;
  background: var(--store-blue);
}

.g-order-step--warn.store-progress__step {
  background: #fff8e8;
}

.store-checkout__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 300px);
  gap: 20px;
  align-items: start;
  min-width: 0;
}

.store-checkout__main {
  display: grid;
  gap: 16px;
  min-width: 0;
}

.store-section {
  min-width: 0;
  border: 0;
  border-radius: var(--store-radius);
  background: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  scroll-margin-top: 84px;
}

.g-store--checkout .g-order-section--active {
  box-shadow: 0 0 0 2px rgba(233, 86, 19, 0.18), 0 1px 2px rgba(35, 24, 22, 0.04);
}

.store-section__head {
  display: flex;
  justify-content: space-between;
  gap: 12px 16px;
  align-items: flex-start;
  flex-wrap: wrap;
  padding: 20px 20px 0;
}

.store-section__head > div {
  min-width: 0;
  flex: 1 1 220px;
}

.store-section__head h2 {
  margin: 0;
  font-family: inherit;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.3;
}

.store-section__head p {
  margin: 6px 0 0;
  color: var(--store-muted);
  font-size: 0.86rem;
  line-height: 1.5;
}

.store-section__body {
  padding: 16px 20px 20px;
  min-width: 0;
}

.store-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 8px;
  margin-bottom: 14px;
  min-width: 0;
}

.store-toolbar--actions {
  display: flex;
  flex-wrap: wrap;
  grid-template-columns: none;
}

.store-toolbar .g-input,
.store-toolbar .g-select {
  width: 100%;
  min-width: 0;
}

.recipient-mode {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.recipient-mode__choice {
  min-height: 72px;
  padding: 12px 14px;
  border: 1px solid var(--store-line);
  border-radius: 8px;
  color: var(--store-ink);
  background: #fff;
  text-align: left;
}

.recipient-mode__choice strong,
.recipient-mode__choice span {
  display: block;
}

.recipient-mode__choice strong {
  font-size: 0.94rem;
  line-height: 1.35;
}

.recipient-mode__choice span {
  margin-top: 4px;
  color: var(--store-muted);
  font-size: 0.78rem;
  line-height: 1.45;
}

.recipient-mode__choice--active {
  border-color: rgba(233, 86, 19, 0.46);
  background: #fff8df;
  box-shadow: inset 0 0 0 1px rgba(233, 86, 19, 0.2);
}

.recipient-later-panel {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin-bottom: 14px;
  padding: 14px;
  border: 1px solid #ead5a4;
  border-radius: 8px;
  background: #fff8df;
}

.recipient-later-panel strong,
.recipient-later-panel p {
  display: block;
}

.recipient-later-panel p {
  margin: 4px 0 0;
  color: var(--store-muted);
  font-size: 0.82rem;
  line-height: 1.55;
}

.recipient-sheet-status {
  margin: -4px 0 10px;
  color: var(--store-muted);
  font-size: 0.8rem;
  line-height: 1.5;
}

.recipient-sheet-status strong {
  color: var(--store-ink);
}

.recipient-excel-bar {
  display: grid;
  grid-template-columns: 58px minmax(180px, 1fr) auto;
  gap: 8px;
  align-items: center;
  margin-bottom: 10px;
  padding: 8px;
  border: 1px solid var(--store-line);
  border-radius: 8px;
  background: #fff;
}

.recipient-excel-bar__cell {
  min-height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid #d9e0d3;
  border-radius: 4px;
  color: var(--store-ink);
  background: #f6f8f3;
  font-family: var(--brand-font-en);
  font-size: 0.78rem;
  font-weight: 900;
}

.recipient-excel-bar__input {
  width: 100%;
  min-width: 0;
  height: 34px;
  padding: 0 10px;
  border: 1px solid #d9e0d3;
  border-radius: 4px;
  background: #fff;
  color: var(--store-ink);
  font: inherit;
}

.recipient-excel-bar__input:focus {
  border-color: var(--brand-green);
  outline: 0;
  box-shadow: 0 0 0 2px rgba(65, 106, 73, 0.16);
}

.recipient-excel-bar__help {
  color: var(--store-muted);
  font-size: 0.76rem;
  white-space: nowrap;
}

.recipient-paste {
  margin-bottom: 12px;
  border: 1px solid var(--store-line);
  border-radius: 8px;
  background: #fff;
}

.recipient-paste summary {
  min-height: 40px;
  padding: 9px 12px;
  color: var(--store-ink);
  font-size: 0.84rem;
  font-weight: 900;
  cursor: pointer;
}

.recipient-paste__body {
  display: grid;
  gap: 10px;
  padding: 0 12px 12px;
}

.store-product-browser {
  margin-bottom: 16px;
  padding: 14px;
  border-radius: 16px;
  background: var(--brand-cream);
  min-width: 0;
}

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

.store-utility-menu {
  flex: 0 0 auto;
}

.store-utility-menu .g-utility-menu__body {
  right: 0;
  left: auto;
}

.store-summary {
  position: sticky;
  top: 72px;
  min-width: 0;
}

.store-summary__card {
  display: grid;
  gap: 12px;
  padding: 20px;
  border-radius: var(--store-radius);
  background: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  min-width: 0;
}

.store-summary__card h2 {
  margin: 0 0 4px;
  font-size: 1.1rem;
  font-weight: 700;
}

.g-store .g-summary__row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 4px 0;
  border: 0;
  font-size: 0.92rem;
}

.g-store .g-summary__row span,
.g-store .g-summary__row strong {
  min-width: 0;
}

.g-store .g-summary__row--total {
  margin-top: 4px;
  padding-top: 12px;
  border-top: 1px solid var(--store-line);
}

.g-store .g-summary__total {
  font-size: 1.25rem;
  letter-spacing: 0;
}

.store-note,
.store-help {
  color: var(--store-muted);
  font-size: 0.8rem;
  line-height: 1.55;
}

.store-help {
  margin: 0;
  text-align: center;
}

.store-shipping-guide {
  border: 1px solid var(--store-line);
  border-radius: 12px;
  background: var(--brand-cream);
  color: var(--store-muted);
  font-size: 0.8rem;
  line-height: 1.55;
}

.store-shipping-guide > summary {
  padding: 10px 12px;
  color: var(--store-ink);
  cursor: pointer;
  font-weight: 700;
}

.store-shipping-guide__body {
  padding: 0 12px 12px;
}

.store-shipping-guide__body p {
  margin: 0;
}

.store-shipping-guide__body ol {
  margin: 6px 0;
  padding-left: 1.4em;
}

.g-store .g-cart-item,
.g-store .store-cart-item {
  display: block;
  border: 0;
  border-radius: 14px;
  background: var(--brand-cream);
  padding: 14px;
}

.g-store .g-product {
  border: 0;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.g-store .g-product__img {
  aspect-ratio: 16 / 9;
  background: var(--brand-cream);
}

.g-store .g-tag,
.g-store .g-tag--green,
.g-store .g-tag--gold {
  color: var(--store-muted);
  background: var(--brand-cream);
}

.g-store .g-price {
  color: var(--store-ink);
}

.g-store .g-cart-item__meta--internal {
  display: none;
}

.store-cart-item__main {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.store-cart-item__top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.store-cart-item__top > div {
  min-width: 0;
}

.store-cart-item__remove {
  flex: 0 0 auto;
}

.store-cart-item__controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 110px;
  gap: 10px;
  align-items: end;
}

.store-cart-item__controls .g-field {
  min-width: 0;
}

.store-cart-item__controls .g-input,
.store-cart-item__controls .g-select {
  width: 100%;
  min-width: 0;
}

.store-cart-item__options {
  gap: 6px;
}

.g-store--checkout .g-field-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.g-store--checkout .g-field {
  min-width: 0;
}

.g-store .g-input,
.g-store .g-select,
.g-store .g-textarea {
  max-width: 100%;
  border-color: var(--store-line);
  border-radius: 12px;
  background: #fff;
}

.g-store .g-input:focus,
.g-store .g-select:focus,
.g-store .g-textarea:focus {
  border-color: var(--store-blue);
  box-shadow: 0 0 0 4px rgba(233, 86, 19, 0.16);
}

.g-store .g-table-wrap {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 0;
  border-radius: 14px;
  background: var(--brand-cream);
}

.g-store--checkout .g-table {
  min-width: 1060px;
}

.g-store--checkout .g-table input,
.g-store--checkout .g-table select {
  min-width: 0;
  width: 100%;
}

.recipient-sheet {
  border: 1px solid var(--store-line);
  border-radius: 8px;
  background: #fff;
  max-height: 560px;
}

.recipient-sheet .recipient-sheet__table {
  min-width: 2170px;
  table-layout: fixed;
  border-collapse: separate;
  border-spacing: 0;
}

.recipient-sheet .recipient-sheet__table th,
.recipient-sheet .recipient-sheet__table td {
  width: var(--cell-width);
  min-width: var(--cell-width);
  max-width: var(--cell-width);
  height: 38px;
  padding: 0;
  border-right: 1px solid #dfe5d9;
  border-bottom: 1px solid #dfe5d9;
  vertical-align: middle;
}

.recipient-sheet .recipient-sheet__table th {
  position: sticky;
  z-index: 4;
  color: #4b5546;
  background: #f4f6ef;
  font-size: 0.76rem;
  font-weight: 900;
  text-align: center;
}

.recipient-sheet__letters th {
  top: 0;
  height: 24px;
  color: #7b8574;
  background: #eef2e8;
  font-family: var(--brand-font-en);
}

.recipient-sheet__headers th {
  top: 24px;
  height: 34px;
  background: #fff8df;
  font-size: 0.78rem;
}

.recipient-sheet__rownum {
  position: sticky;
  left: 0;
  z-index: 3;
  width: 54px !important;
  min-width: 54px !important;
  max-width: 54px !important;
  color: #7b8574;
  background: #f4f6ef;
  text-align: center;
  font-size: 0.78rem;
  font-weight: 900;
}

.recipient-sheet__corner,
.recipient-sheet__rowhead {
  left: 0;
  z-index: 6 !important;
  width: 54px !important;
  min-width: 54px !important;
  max-width: 54px !important;
}

.recipient-sheet__cell {
  position: relative;
  background: #fff;
}

.recipient-sheet__calculated-head {
  color: #276047 !important;
  background: #eaf5ea !important;
}

.recipient-sheet__calculated {
  padding: 0 8px !important;
  color: #276047;
  background: #f2faf1;
  font-size: 0.8rem;
  font-weight: 800;
  text-align: center;
}

.recipient-sheet__calculated--fee {
  font-variant-numeric: tabular-nums;
}

.recipient-sheet__calculated--pending {
  color: #72786d;
  background: #f6f7f3;
}

.recipient-sheet__calculated--missing {
  color: #9a3f23;
  background: #fff2ea;
}

.recipient-sheet__cell--active {
  z-index: 2;
  box-shadow: inset 0 0 0 2px var(--brand-green);
}

.recipient-sheet__control {
  width: 100%;
  height: 37px;
  min-width: 0;
  padding: 0 8px;
  border: 0;
  border-radius: 0;
  color: var(--store-ink);
  background: transparent;
  font: inherit;
  font-size: 0.84rem;
}

.recipient-sheet__control:focus {
  outline: 0;
  background: #fffef8;
}

.recipient-sheet__select {
  appearance: none;
  padding-right: 20px;
  background:
    linear-gradient(45deg, transparent 50%, #7b8574 50%) right 10px center / 6px 6px no-repeat,
    linear-gradient(135deg, #7b8574 50%, transparent 50%) right 6px center / 6px 6px no-repeat;
}

.recipient-sheet__remove {
  width: 20px;
  height: 20px;
  margin-left: 3px;
  border: 1px solid #d9e0d3;
  border-radius: 4px;
  color: #7b8574;
  background: #fff;
  line-height: 1;
  opacity: 0;
}

.recipient-sheet tr:hover .recipient-sheet__remove,
.recipient-sheet__remove:focus-visible {
  opacity: 1;
}

.g-store .g-check {
  border-color: var(--store-line);
  border-radius: 12px;
}

@keyframes storeFadeUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 960px) {
  .store-checkout__grid {
    grid-template-columns: 1fr;
  }

  .store-summary {
    position: static;
  }
}

@media (max-width: 900px) {
  .store-flow,
  .store-home__steps,
  .store-progress {
    grid-template-columns: 1fr;
  }

  .store-bag__bar {
    flex-direction: column;
    align-items: stretch;
  }

  .store-bag__actions {
    width: 100%;
  }

  .store-bag__actions .store-btn {
    flex: 1;
  }

  .store-nav__sep {
    display: none;
  }

  .store-nav__links {
    gap: 8px;
  }

  .store-nav__step {
    font-size: 0.74rem;
  }

  .g-store--catalog .g-shell {
    padding-bottom: calc(var(--store-bag-h) + 96px);
  }

  .g-store .g-catalog-options__grid {
    grid-template-columns: 1fr;
  }

  .store-toolbar {
    grid-template-columns: 1fr;
  }

  .recipient-mode {
    grid-template-columns: 1fr;
  }

  .recipient-later-panel {
    align-items: flex-start;
    flex-direction: column;
  }

  .recipient-excel-bar {
    grid-template-columns: 54px minmax(0, 1fr);
  }

  .recipient-excel-bar__help {
    grid-column: 1 / -1;
    white-space: normal;
  }

  .g-store--checkout .g-product-grid {
    grid-template-columns: 1fr;
  }

  .g-store--checkout .g-field-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .g-product-period-filter {
    grid-template-columns: 1fr;
    gap: 7px;
  }

  .store-hero {
    padding: 12px 14px 0;
  }

  .store-hero__frame {
    aspect-ratio: 16 / 9;
    border-radius: 20px;
  }

  .g-store--catalog .store-hero__frame {
    min-height: 210px;
    max-height: none;
    aspect-ratio: 16 / 8.5;
  }

  .store-hero__img {
    object-position: center 34%;
  }

  .store-hero__content {
    padding: 10px 14px 14px;
    text-align: left;
  }

  .store-hero__brand {
    margin-bottom: 3px;
    font-size: 0.92rem;
  }

  .store-hero h1 {
    font-size: clamp(1.5rem, 8vw, 2.05rem);
  }

  .store-hero__lead {
    margin-top: 6px;
    font-size: 0.78rem;
    line-height: 1.35;
  }

  .store-hero .store-btn {
    min-height: 36px;
    margin-top: 10px;
    padding: 7px 12px;
    font-size: 0.78rem;
  }

  .store-hero__cta {
    justify-content: flex-start;
  }

  .store-nav__inner {
    padding: 10px 14px;
    gap: 10px;
  }

  .store-brand__logo {
    width: 178px;
  }

  .store-brand__audience {
    padding-left: 7px;
    font-size: 0.56rem;
  }

  .store-nav__links {
    order: 3;
    width: 100%;
    justify-content: flex-start;
    border-top: 1px solid var(--store-line);
    padding-top: 8px;
  }

  .g-store--catalog .store-wrap {
    padding-top: 12px;
  }

  .store-tab-group {
    grid-template-columns: 1fr;
    gap: 5px;
  }

  .store-tab-group__label {
    padding-left: 3px;
  }

  .store-brand__name {
    display: none;
  }

  .store-checkout {
    padding: 20px 14px 56px;
  }

  .store-section__head,
  .store-section__body {
    padding-left: 16px;
    padding-right: 16px;
  }

  .store-cart-item__controls {
    grid-template-columns: 1fr;
  }

  .store-flow__item strong {
    font-size: 0.84rem;
  }

  .g-store .g-catalog-grid,
  .g-store .g-catalog-grid--showcase,
  .g-store .g-catalog-grid--tiers {
    grid-template-columns: 1fr;
  }

  .g-store .g-catalog-card__add {
    grid-template-columns: 64px minmax(0, 1fr);
  }
}

/* 注文後の送り先入力 */
.recipient-entry-page {
  min-height: 100vh;
  background: #fff;
}

.recipient-entry-header {
  min-height: 76px;
  display: flex;
  align-items: center;
  padding: 14px var(--page-gutter);
  border-bottom: 1px solid #e5e5ea;
  background: rgba(255, 255, 255, 0.96);
}

.recipient-entry-brand {
  display: flex;
  align-items: center;
  gap: 18px;
  text-decoration: none;
}

.recipient-entry-brand img {
  width: min(260px, 54vw);
  height: 44px;
  object-fit: contain;
  object-position: left center;
}

.recipient-entry-brand span {
  padding-left: 18px;
  border-left: 1px solid #d8d8dc;
  color: #6e6e73;
  font-size: 0.78rem;
  font-weight: 700;
}

.recipient-entry-main {
  width: 100%;
  padding: 38px var(--page-gutter) 72px;
}

.recipient-entry-main > * {
  width: min(100%, 1480px);
  margin-inline: auto;
}

.recipient-entry-loading,
.recipient-entry-error,
.recipient-entry-complete {
  padding: 80px 24px;
  text-align: center;
}

.recipient-entry-error strong,
.recipient-entry-complete h1 {
  display: block;
  margin: 0 0 12px;
  font-size: clamp(1.5rem, 3vw, 2.25rem);
}

.recipient-entry-error p,
.recipient-entry-complete p {
  color: #6e6e73;
}

.recipient-entry-complete > span {
  display: inline-block;
  margin-bottom: 14px;
  padding: 5px 10px;
  border-radius: 999px;
  color: #fff;
  background: var(--brand-orange);
  font-size: 0.72rem;
  font-weight: 700;
}

.recipient-entry-complete__summary {
  width: min(100%, 680px);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 32px auto 0;
  border-top: 1px solid #e5e5ea;
}

.recipient-entry-complete__summary div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 15px 12px;
  border-bottom: 1px solid #e5e5ea;
}

.recipient-entry-complete__summary span {
  color: #6e6e73;
  font-size: 0.78rem;
}

.recipient-entry-title {
  padding: 0 0 28px;
}

.recipient-entry-title p {
  margin: 0 0 8px;
  color: var(--brand-orange);
  font-family: var(--brand-font-en);
  font-size: 0.72rem;
  font-weight: 700;
}

.recipient-entry-title h1 {
  margin: 0 0 8px;
  font-size: clamp(1.7rem, 4vw, 2.8rem);
  letter-spacing: 0;
}

.recipient-entry-title > span {
  color: #6e6e73;
}

.recipient-entry-order {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 28px;
  border-block: 1px solid #e5e5ea;
}

.recipient-entry-order div {
  min-width: 0;
  padding: 18px 20px;
  border-right: 1px solid #e5e5ea;
}

.recipient-entry-order div:last-child {
  border-right: 0;
}

.recipient-entry-order span,
.recipient-entry-order strong {
  display: block;
  overflow-wrap: anywhere;
}

.recipient-entry-order span {
  margin-bottom: 5px;
  color: #6e6e73;
  font-size: 0.72rem;
}

.recipient-entry-guide {
  display: grid;
  grid-template-columns: minmax(300px, 0.85fr) minmax(520px, 1.15fr);
  align-items: center;
  gap: 28px;
  margin-bottom: 28px;
  padding: 24px 26px;
  border: 1px solid #ffd7c2;
  border-radius: 12px;
  background: #fff8f4;
}

.recipient-entry-guide__eyebrow {
  display: inline-block;
  margin-bottom: 7px;
  color: var(--brand-orange);
  font-size: 0.72rem;
  font-weight: 700;
}

.recipient-entry-guide h2,
.recipient-entry-guide p {
  margin: 0;
}

.recipient-entry-guide h2 {
  font-size: 1.1rem;
}

.recipient-entry-guide p,
.recipient-entry-guide small {
  color: #6e6e73;
}

.recipient-entry-guide p {
  margin-top: 6px;
  font-size: 0.84rem;
}

.recipient-entry-guide small {
  display: block;
  margin-top: 8px;
  font-size: 0.7rem;
}

.recipient-entry-guide ol {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.recipient-entry-guide li {
  min-height: 78px;
  padding: 12px;
  border: 1px solid #f0d8cb;
  border-radius: 8px;
  background: #fff;
  font-size: 0.78rem;
  font-weight: 700;
}

.recipient-entry-guide li span {
  display: flex;
  width: 24px;
  height: 24px;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
  border-radius: 50%;
  color: #fff;
  background: var(--brand-orange);
  font-size: 0.68rem;
}

.recipient-entry-editor {
  border: 1px solid #e5e5ea;
  border-radius: 8px;
  overflow: hidden;
}

.recipient-entry-editor__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 20px 22px;
  border-bottom: 1px solid #e5e5ea;
}

.recipient-entry-editor__head h2,
.recipient-entry-editor__head p {
  margin: 0;
}

.recipient-entry-editor__head h2 {
  font-size: 1.1rem;
}

.recipient-entry-editor__head p {
  margin-top: 3px;
  color: #6e6e73;
  font-size: 0.78rem;
}

.recipient-entry-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.recipient-entry-paste {
  padding: 14px 22px;
  border-bottom: 1px solid #e5e5ea;
}

.recipient-entry-paste summary {
  color: #6e6e73;
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 700;
}

.recipient-entry-paste > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  margin-top: 12px;
}

.recipient-entry-paste textarea {
  min-height: 92px;
}

.recipient-entry-status {
  padding: 10px 22px;
  color: #276749;
  background: #f0faf4;
  font-size: 0.78rem;
}

.recipient-entry-status--error {
  color: #a13333;
  background: #fff3f3;
}

.recipient-entry-sheet {
  width: 100%;
  overflow: auto;
  background: #fff;
}

.recipient-entry-sheet table {
  width: max(100%, 1780px);
  border-collapse: separate;
  border-spacing: 0;
}

.recipient-entry-sheet th,
.recipient-entry-sheet td {
  padding: 0;
  border-right: 1px solid #e5e5ea;
  border-bottom: 1px solid #e5e5ea;
  white-space: nowrap;
}

.recipient-entry-sheet thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  padding: 9px 10px;
  color: #6e6e73;
  background: #f7f7f8;
  font-size: 0.72rem;
  text-align: left;
}

.recipient-entry-sheet tbody th {
  width: 42px;
  color: #6e6e73;
  background: #fafafa;
  text-align: center;
}

.recipient-entry-sheet input,
.recipient-entry-sheet select {
  width: 100%;
  min-width: 120px;
  height: 46px;
  padding: 8px 10px;
  border: 0;
  border-radius: 0;
  outline: 0;
  background: #fff;
}

.recipient-entry-sheet input:focus,
.recipient-entry-sheet select:focus {
  box-shadow: inset 0 0 0 2px var(--brand-orange);
}

.recipient-entry-sheet td:nth-child(2) input,
.recipient-entry-sheet td:nth-child(3) input {
  min-width: 180px;
}

.recipient-entry-sheet td:nth-child(7) input {
  min-width: 340px;
}

.recipient-entry-sheet td:nth-child(12) input {
  min-width: 220px;
}

.recipient-entry-sheet td:last-child button {
  width: 44px;
  height: 46px;
  border: 0;
  color: #86868b;
  background: #fff;
}

.recipient-entry-submit {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 20px;
  padding: 24px 0 0;
}

.recipient-entry-submit p {
  margin: 0;
  color: #6e6e73;
  font-size: 0.76rem;
}

.recipient-entry-submit .store-btn {
  min-width: 220px;
}

@media (max-width: 820px) {
  .recipient-entry-main {
    padding-top: 24px;
  }

  .recipient-entry-order {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .recipient-entry-guide {
    grid-template-columns: 1fr;
  }

  .recipient-entry-order div:nth-child(2) {
    border-right: 0;
  }

  .recipient-entry-order div:nth-child(-n + 2) {
    border-bottom: 1px solid #e5e5ea;
  }

  .recipient-entry-editor__head,
  .recipient-entry-submit {
    align-items: stretch;
    flex-direction: column;
  }

  .recipient-entry-actions {
    justify-content: stretch;
  }

  .recipient-entry-actions > * {
    flex: 1 1 140px;
  }

  .recipient-entry-submit .store-btn {
    width: 100%;
  }
}

@media (max-width: 520px) {
  .recipient-entry-brand img {
    width: 190px;
  }

  .recipient-entry-brand span {
    display: none;
  }

  .recipient-entry-guide ol {
    grid-template-columns: 1fr;
  }

  .recipient-entry-order,
  .recipient-entry-complete__summary {
    grid-template-columns: 1fr;
  }

  .recipient-entry-order div {
    border-right: 0;
    border-bottom: 1px solid #e5e5ea;
  }

  .recipient-entry-paste > div {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .store-hero__content,
  .g-store .g-catalog-panel--active,
  .g-store .g-catalog-card {
    animation: none !important;
    transition: none !important;
  }
}

/* ============================================================
   行事別ギフト / 詳細 / クーポン / 顧客台帳
   ============================================================ */
.g-catalog-card__img-button {
  width: 100%;
  padding: 0;
  border: 0;
  color: inherit;
  cursor: pointer;
}

.gift-collection-tabs {
  display: flex;
  gap: 8px;
  margin: 18px 0 24px;
  overflow-x: auto;
  scrollbar-width: none;
}

.gift-collection-tabs::-webkit-scrollbar {
  display: none;
}

.gift-collection-tab {
  min-width: 112px;
  padding: 10px 14px;
  border: 1px solid var(--store-line);
  border-radius: 999px;
  color: var(--store-ink);
  background: #fff;
  white-space: nowrap;
}

.gift-collection-tab span,
.gift-collection-tab small {
  display: block;
  letter-spacing: 0;
}

.gift-collection-tab span {
  font-weight: 700;
}

.gift-collection-tab small {
  margin-top: 1px;
  color: var(--store-muted);
  font-size: 0.64rem;
}

.gift-collection-tab--active {
  border-color: var(--brand-orange);
  color: #fff;
  background: var(--brand-orange);
}

.gift-collection-tab--active small {
  color: rgba(255, 255, 255, 0.75);
}

.gift-collection-panel {
  display: grid;
  gap: 28px;
}

.gift-collection-tier-layout {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  align-items: start;
}

.gift-collection-tier {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 10px;
  align-items: start;
}

.gift-collection-tier__head {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 5px;
  padding: 8px 4px;
  border-bottom: 2px solid var(--brand-orange);
  text-align: center;
}

.gift-collection-tier__head strong,
.gift-collection-tier__head span {
  display: inline;
}

.gift-collection-tier__head strong {
  font-size: 1.16rem;
}

.gift-collection-tier__head span {
  color: var(--store-muted);
  font-size: 0.75rem;
}

.g-store .gift-collection-tier__grid {
  grid-template-columns: minmax(0, 1fr);
}

.g-store .gift-collection-direct__grid {
  grid-template-columns: repeat(auto-fit, minmax(240px, 360px));
  justify-content: start;
}

.gift-collection-ready {
  display: flex;
  gap: 10px;
  align-items: baseline;
  padding: 14px 0;
  border-bottom: 1px solid var(--store-line);
}

.gift-collection-ready span,
.gift-collection-slot small {
  color: var(--store-muted);
}

.gift-collection-slot {
  min-height: 180px;
  display: grid;
  place-content: center;
  gap: 4px;
  border: 1px dashed rgba(35, 24, 22, 0.22);
  border-radius: 8px;
  color: var(--store-muted);
  background: #fafafa;
  text-align: center;
}

.g-store .g-catalog-card__add {
  grid-template-columns: 68px minmax(0, 1fr);
}

.g-store .g-catalog-card__add > .g-btn:first-child {
  grid-column: 1 / -1;
  border: 1px solid var(--store-line);
  color: var(--store-ink);
  background: #fff;
}

.g-store .g-catalog-card__add > .g-catalog-card__unavailable {
  grid-column: 1 / -1;
  width: 100%;
  min-height: 40px;
  border: 1px solid var(--store-line);
  border-radius: 999px;
  color: var(--store-muted);
  background: #f5f5f7;
  opacity: 1;
  cursor: default;
}

.gift-detail-modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: var(--page-gutter);
  background: rgba(20, 17, 16, 0.48);
  overflow: auto;
}

.g-modal-open {
  overflow: hidden;
}

.gift-detail-modal__dialog {
  position: relative;
  width: min(1040px, 100%);
  max-height: calc(100svh - 32px);
  overflow: auto;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 26px 80px rgba(0, 0, 0, 0.24);
}

.gift-detail-modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: rgba(0, 0, 0, 0.66);
  font-size: 1.35rem;
}

.gift-detail {
  display: grid;
  grid-template-columns: minmax(320px, 0.92fr) minmax(360px, 1.08fr);
  align-items: start;
  min-height: 540px;
}

.gift-detail__image {
  min-height: 0;
  aspect-ratio: 4 / 3;
  display: grid;
  place-items: center;
  padding: 20px;
  color: var(--gift-muted);
  background: #f5f5f7;
}

.gift-detail__image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.gift-detail__content {
  padding: 42px;
}

.gift-detail__content h2,
.customer-profile h3 {
  margin: 4px 0 8px;
  letter-spacing: 0;
}

.gift-detail__price {
  margin-bottom: 22px;
  font-size: 1.2rem;
  font-weight: 700;
}

.gift-detail dl,
.gift-detail dl div {
  margin: 0;
}

.gift-detail dl div {
  display: grid;
  grid-template-columns: 116px minmax(0, 1fr);
  gap: 14px;
  padding: 12px 0;
  border-top: 1px solid var(--gift-line);
}

.gift-detail dt {
  color: var(--gift-muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.gift-detail dd {
  margin: 0;
  font-size: 0.88rem;
}

.store-cart-item__option-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding-top: 12px;
  border-top: 1px solid var(--store-line);
}

.g-cart-item__locked-value {
  min-height: 42px;
  display: flex;
  align-items: center;
  padding: 0 12px;
  border: 1px solid var(--store-line);
  border-radius: 6px;
  color: #315340;
  background: #f4f8f5;
  font-size: 0.84rem;
}

.store-cart-item__options small {
  color: var(--store-muted);
  font-size: 0.72rem;
}

.store-coupon {
  margin: 16px 0;
  padding: 14px 0;
  border-top: 1px solid var(--store-line);
  border-bottom: 1px solid var(--store-line);
}

.store-coupon__input {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.store-coupon__status {
  margin-top: 7px;
  color: var(--store-muted);
  font-size: 0.76rem;
  line-height: 1.5;
}

.collection-admin__bar,
.collection-admin__tools,
.collection-admin__tabs {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

#collectionBoard {
  overflow-anchor: none;
}

.collection-admin__mode {
  margin: 16px 0 12px;
}

.collection-admin__intro {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px 18px;
  margin-top: 14px;
  padding: 14px;
  border: 1px solid var(--gift-line);
  border-left: 4px solid var(--brand-orange);
  border-radius: 8px;
  background: #fff;
}

.collection-admin__intro > div {
  display: grid;
  gap: 2px;
}

.collection-admin__intro strong {
  font-size: 0.95rem;
}

.collection-admin__intro span {
  color: var(--gift-muted);
  font-size: 0.78rem;
}

.g-price-tier-editor,
.g-ota-shipping {
  border: 1px solid var(--gift-line);
  border-radius: 8px;
  background: #fff;
}

.collection-admin + .g-price-tier-editor,
.g-empty + .g-price-tier-editor {
  margin-top: 18px;
}

.collection-admin__mode + .g-price-tier-editor {
  margin: 14px 0 18px;
}

.g-price-tier-editor > summary,
.g-ota-shipping > summary {
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 14px;
  cursor: pointer;
}

.g-price-tier-editor > summary span,
.g-ota-shipping > summary span {
  color: var(--gift-muted);
  font-size: 0.75rem;
}

.g-price-tier-editor form,
.g-ota-shipping__body {
  padding: 14px;
  border-top: 1px solid var(--gift-line);
}

.g-price-tier-editor__grid {
  display: grid;
  grid-template-columns: repeat(var(--price-tier-count, 5), minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.g-price-tier-editor__item {
  min-width: 0;
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 10px 0 10px 12px;
  border-left: 3px solid var(--brand-orange);
}

.g-price-tier-editor__item--hidden {
  border-left-color: #c9c7c5;
  opacity: 0.72;
}

.g-price-tier-editor__visibility {
  width: fit-content;
  min-height: 28px;
  color: var(--gift-ink);
  font-weight: 800;
}

.g-price-tier-editor .g-label small {
  color: var(--gift-muted);
  font-weight: 500;
}

.collection-admin__bar {
  justify-content: space-between;
  margin-bottom: 14px;
}

.collection-admin__tabs {
  flex: 1 1 auto;
  min-width: 0;
  overflow-x: auto;
  flex-wrap: nowrap;
  scrollbar-width: none;
}

.collection-admin__tabs::-webkit-scrollbar {
  display: none;
}

.collection-admin__tabs .g-choice {
  flex: 0 0 auto;
  white-space: nowrap;
}

.collection-admin__tools {
  padding: 12px 0;
  border-top: 1px solid var(--gift-line);
  border-bottom: 1px solid var(--gift-line);
}

.collection-admin {
  display: grid;
  grid-template-columns: minmax(240px, 300px) minmax(0, 1fr);
  gap: 18px;
  margin-top: 18px;
  min-width: 0;
}

.collection-bench {
  position: sticky;
  top: 82px;
  align-self: start;
  max-height: calc(100vh - 104px);
  padding: 14px;
  overflow: auto;
  border: 1px solid var(--gift-line);
  border-radius: 8px;
  background: #fff;
}

.collection-bench__destination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 12px 0;
  padding: 10px 11px;
  border: 1px solid #ffd8c3;
  border-radius: 7px;
  background: #fff8f4;
}

.collection-bench__destination span {
  color: var(--gift-muted);
  font-size: 0.72rem;
  font-weight: 700;
}

.collection-bench__destination strong {
  color: var(--brand-orange);
  font-size: 0.88rem;
}

.collection-bench__period-filter {
  display: grid;
  gap: 7px;
  margin-bottom: 13px;
}

.collection-bench__period-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}

.collection-bench__period-tabs .g-choice {
  min-width: 0;
  min-height: 34px;
  padding: 6px 8px;
  font-size: 0.72rem;
}

.collection-bench__list,
.collection-lineup,
.collection-tier__slots {
  display: grid;
  gap: 10px;
}

.collection-product,
.collection-slot {
  min-width: 0;
  border: 1px solid var(--gift-line);
  border-radius: 8px;
  background: #fff;
}

.collection-product {
  display: grid;
  grid-template-columns: 22px 58px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 8px;
  cursor: grab;
}

.collection-product[data-collection-edit-product],
.collection-slot--filled[data-collection-edit-product] {
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.collection-product[data-collection-edit-product]:hover,
.collection-product[data-collection-edit-product]:focus-visible,
.collection-slot--filled[data-collection-edit-product]:hover,
.collection-slot--filled[data-collection-edit-product]:focus-visible {
  border-color: rgba(241, 90, 36, 0.72);
  outline: 0;
  box-shadow: 0 8px 24px rgba(69, 45, 31, 0.12);
  transform: translateY(-1px);
}

.collection-product__body {
  min-width: 0;
}

.collection-product__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 5px;
}

.collection-product__tags span,
.collection-product__tags em {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.64rem;
  font-style: normal;
  font-weight: 800;
  line-height: 1.3;
}

.collection-product__tags span {
  color: #5f5a57;
  background: #f2f1f0;
}

.collection-product__tags em {
  color: #ad3b00;
  background: #fff0e7;
}

.collection-drag-handle {
  width: 22px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 5px;
  color: var(--brand-orange);
  background: #fff3eb;
  cursor: grab;
  font-size: 0.9rem;
  font-style: normal;
  font-weight: 900;
}

.collection-product--dragging,
.collection-slot.collection-product--dragging {
  opacity: 0.52;
}

.collection-product > span,
.collection-slot > span {
  width: 58px;
  height: 48px;
  overflow: hidden;
  border-radius: 6px;
  background: #f3f3f3;
}

.collection-product img,
.collection-slot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.collection-product strong,
.collection-product small,
.collection-slot strong,
.collection-slot small,
.collection-slot em {
  display: block;
  overflow-wrap: anywhere;
}

.collection-product strong,
.collection-slot strong {
  font-size: 0.82rem;
}

.collection-product small,
.collection-slot small,
.collection-slot em {
  color: var(--gift-muted);
  font-size: 0.7rem;
  font-style: normal;
}

.collection-product .collection-product__edit-hint {
  margin-top: 3px;
  color: var(--brand-orange);
  font-size: 0.65rem;
  font-weight: 800;
}

.collection-tier {
  display: grid;
  grid-template-columns: 108px minmax(0, 1fr);
  gap: 12px;
}

.collection-lineup--ota-tiers {
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  align-items: start;
}

.collection-lineup--ota-tiers .collection-tier {
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
}

.collection-lineup--ota-tiers .collection-tier__head {
  padding: 8px 4px;
  border-bottom: 2px solid var(--brand-orange);
  text-align: center;
}

.collection-tier__head strong,
.collection-tier__head span {
  display: block;
}

.collection-tier__head span {
  color: var(--gift-muted);
  font-size: 0.72rem;
}

.collection-tier--hidden {
  opacity: 0.58;
}

.collection-tier__slots {
  grid-template-columns: minmax(0, 1fr);
}

.collection-lineup--direct {
  align-content: start;
}

.collection-direct__head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: baseline;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--gift-line);
}

.collection-direct__head span {
  color: var(--gift-muted);
  font-size: 0.74rem;
  font-weight: 700;
}

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

.collection-slot {
  position: relative;
  min-height: 0;
  display: block;
  padding: 0;
  border-style: dashed;
  overflow: hidden;
  transition: border-color 0.18s ease, background 0.18s ease;
}

.collection-slot--filled {
  border-style: solid;
  cursor: grab;
}

.collection-layout-card {
  min-width: 0;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.collection-layout-card__image {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #ececf0;
}

.collection-layout-card__image > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.collection-layout-card__placeholder {
  width: 100%;
  height: 100%;
  display: grid;
  place-content: center;
  gap: 4px;
  padding: 18px;
  color: var(--gift-muted);
  text-align: center;
}

.collection-layout-card__placeholder strong,
.collection-layout-card__placeholder span {
  display: block;
}

.collection-layout-card__placeholder strong {
  color: var(--gift-ink);
  font-size: 0.85rem;
}

.collection-layout-card__placeholder span {
  font-size: 0.72rem;
}

.collection-layout-card__slot {
  position: absolute;
  left: 10px;
  top: 10px;
  padding: 4px 8px;
  border-radius: 999px;
  color: #fff;
  background: rgba(29, 29, 31, 0.82);
  font-size: 0.68rem;
  font-weight: 700;
}

.collection-layout-card__handle {
  position: absolute;
  right: 10px;
  bottom: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.collection-layout-card__body {
  min-height: 116px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 16px 16px;
}

.collection-layout-card__body h3 {
  margin: 0;
  overflow-wrap: anywhere;
  font-size: 1rem;
  line-height: 1.45;
}

.collection-layout-card__meta {
  min-height: 1.2em;
  margin-top: 3px;
  color: var(--gift-muted);
  font-size: 0.76rem;
}

.collection-layout-card__edit-hint {
  margin-top: 7px;
  color: var(--brand-orange);
  font-size: 0.7rem;
  font-weight: 800;
}

.collection-layout-card__foot {
  display: flex;
  align-items: baseline;
  gap: 5px;
}

.collection-layout-card__foot strong {
  color: var(--gift-ink);
  font-size: 1.02rem;
}

.collection-layout-card__foot span {
  color: var(--gift-muted);
  font-size: 0.68rem;
}

.collection-layout-card__remove {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: rgba(29, 29, 31, 0.82);
  cursor: pointer;
}

.collection-layout-card--empty .collection-layout-card__body {
  min-height: 98px;
}

.collection-card-editor {
  width: min(820px, calc(100vw - 32px));
  max-width: none;
  max-height: calc(100svh - 32px);
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--gift-line);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 24px 64px rgb(25 22 20 / 24%);
}

.collection-card-editor::backdrop {
  background: rgb(25 22 20 / 48%);
}

.collection-card-editor__surface {
  max-height: calc(100svh - 32px);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  margin: 0;
}

.collection-card-editor__header,
.collection-card-editor__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  background: #fff;
}

.collection-card-editor__header {
  border-bottom: 1px solid var(--gift-line);
}

.collection-card-editor__header > div {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.collection-card-editor__header span,
.collection-card-editor__preview span {
  color: var(--gift-muted);
  font-size: 0.72rem;
}

.collection-card-editor__header strong,
.collection-card-editor__preview strong {
  overflow-wrap: anywhere;
}

.collection-card-editor__close {
  width: 36px;
  height: 36px;
  display: inline-grid;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid var(--gift-line);
  border-radius: 50%;
  color: var(--gift-ink);
  background: #fff;
  cursor: pointer;
  font: inherit;
  font-size: 1.35rem;
  line-height: 1;
}

.collection-card-editor__content {
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(200px, 0.72fr) minmax(0, 1.28fr);
  gap: 22px;
  padding: 20px;
  overflow: auto;
}

.collection-card-editor__preview {
  align-self: start;
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--gift-line);
  border-radius: 8px;
  background: #fafafa;
}

.collection-card-editor__image {
  aspect-ratio: 4 / 3;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 7px;
  color: var(--gift-muted);
  background: #f0f0f2;
}

.collection-card-editor__image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.collection-card-editor__fields {
  display: grid;
  align-content: start;
  gap: 14px;
}

.collection-card-editor__footer {
  border-top: 1px solid var(--gift-line);
}

.collection-admin--drag-active .collection-slot {
  border-color: rgba(221, 96, 37, 0.68);
  background: #fffaf6;
}

.collection-slot--over {
  border-color: var(--brand-orange);
  background: #fff7f1;
}

.collection-slot > button:not(.collection-layout-card__remove) {
  position: absolute;
  top: 5px;
  right: 5px;
  width: 26px;
  height: 26px;
  border: 0;
  border-radius: 50%;
  background: #f1f1f1;
}

.collection-slot__empty {
  color: var(--gift-muted);
  text-align: center;
}

.coupon-list,
.coupon-history,
.customer-timeline {
  display: grid;
  gap: 10px;
}

.coupon-row {
  display: grid;
  grid-template-columns: minmax(190px, 1.3fr) minmax(110px, 0.7fr) minmax(100px, 0.6fr) auto;
  gap: 12px;
  align-items: center;
  padding: 14px;
  border-bottom: 1px solid var(--gift-line);
}

.coupon-row--stopped {
  opacity: 0.56;
}

.coupon-row code,
.coupon-row strong,
.coupon-row span {
  display: block;
}

.coupon-row code {
  color: var(--brand-orange);
  font-weight: 800;
}

.coupon-row span,
.coupon-history span {
  color: var(--gift-muted);
  font-size: 0.74rem;
}

.coupon-row__actions {
  display: flex;
  gap: 5px;
}

.coupon-history {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--gift-line);
}

.g-clickable-row {
  cursor: pointer;
}

.g-clickable-row--active td {
  background: #fff4ed;
}

.customer-profile {
  padding-bottom: 16px;
  border-bottom: 1px solid var(--gift-line);
}

.customer-profile p {
  color: var(--gift-muted);
  font-size: 0.84rem;
}

.customer-timeline {
  margin-top: 16px;
}

.g-admin-layout--customers {
  grid-template-columns: minmax(520px, 0.9fr) minmax(540px, 1.1fr);
}

.g-admin-layout--customers .g-detail {
  max-height: calc(100vh - 104px);
  overflow: auto;
}

.customer-profile__title,
.customer-profile-editor__head,
.customer-pricing-editor__head,
.customer-section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.customer-profile-editor,
.customer-pricing-editor,
.customer-b2b-share,
.customer-pricing-section,
.customer-order-history {
  display: grid;
  gap: 14px;
}

.customer-profile-editor__head,
.customer-pricing-editor__head {
  margin-bottom: 2px;
}

.customer-profile-editor__head > span,
.customer-pricing-editor__head span,
.customer-section-head span {
  color: var(--gift-muted);
  font-size: 0.76rem;
}

.customer-profile-editor__head > span {
  max-width: 260px;
  text-align: right;
}

.customer-profile-editor__b2b {
  padding: 12px;
  border: 1px solid #ead8ca;
  border-radius: 8px;
  background: #fff8f3;
}

.customer-b2b-share {
  margin-top: 16px;
  padding: 16px;
  border: 1px solid #d9e6dc;
  border-radius: 10px;
  background: #f6fbf7;
}

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

.customer-b2b-share__url {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 8px;
}

.customer-b2b-share__url .g-input {
  min-width: 0;
  font-size: 0.72rem;
}

.customer-pricing-section,
.customer-order-history {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--gift-line);
}

.customer-pricing-editor {
  padding: 16px;
  border: 1px solid var(--gift-line);
  border-radius: 10px;
  background: #fbfbfc;
}

.customer-pricing-editor__head > div {
  display: grid;
  gap: 4px;
}

.customer-pricing-editor__money-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  align-items: end;
}

.customer-pricing-editor__calc {
  min-height: 67px;
  display: grid;
  align-content: center;
  gap: 4px;
  padding: 10px 12px;
  border-radius: 8px;
  color: #fff;
  background: #273c32;
}

.customer-pricing-editor__calc span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.7rem;
}

.customer-pricing-editor__calc strong {
  font-size: 1rem;
}

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

.customer-month-lines {
  display: grid;
  gap: 14px;
}

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

.customer-month-card {
  overflow: hidden;
  border: 1px solid var(--gift-line);
  border-radius: 10px;
  background: #fff;
}

.customer-month-card__head {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 11px 12px;
  color: #315340;
  background: #f2f7f3;
  cursor: pointer;
}

.customer-month-card__head span {
  display: flex;
  flex: 1;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}

.customer-month-card__head small {
  color: #63796a;
  font-size: 0.66rem;
}

.customer-month-card__lines {
  display: grid;
  gap: 1px;
  background: var(--gift-line);
}

.customer-month-line {
  display: grid;
  grid-template-columns: auto 48px minmax(72px, 1fr) auto;
  gap: 7px;
  align-items: center;
  padding: 7px 9px;
  background: #fff;
  font-size: 0.7rem;
}

.customer-month-line .g-input {
  min-height: 34px;
  padding: 6px 8px;
  text-align: right;
}

.customer-month-line small {
  color: var(--gift-muted);
}

.customer-pricing-card {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--gift-line);
  border-radius: 10px;
  background: #fff;
}

.customer-pricing-card--hidden {
  opacity: 0.62;
  background: #f5f5f5;
}

.customer-pricing-card__product {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
}

.customer-pricing-card__product img,
.customer-pricing-card__product > span {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  object-fit: cover;
  border-radius: 8px;
  color: var(--gift-muted);
  background: #f1f1f1;
  font-size: 0.65rem;
}

.customer-pricing-card__product div {
  display: grid;
  gap: 3px;
}

.customer-pricing-card__product small,
.customer-pricing-card > p {
  margin: 0;
  color: var(--gift-muted);
  font-size: 0.72rem;
}

.customer-pricing-card dl {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin: 0;
  overflow: hidden;
  border-radius: 8px;
  background: var(--gift-line);
}

.customer-pricing-card dl div {
  display: grid;
  gap: 3px;
  padding: 9px;
  background: #fafafa;
}

.customer-pricing-card dt {
  color: var(--gift-muted);
  font-size: 0.64rem;
}

.customer-pricing-card dd {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 700;
}

.customer-order-history .customer-timeline {
  margin-top: 0;
}

.store-nav__wholesale-label {
  padding: 7px 10px;
  border-radius: 999px;
  color: #315340;
  background: #edf5ef;
  font-size: 0.72rem;
  font-weight: 700;
}

.store-wholesale-notice {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
  padding: 14px 16px;
  border: 1px solid #d9e6dc;
  border-radius: 10px;
  color: #315340;
  background: #f6fbf7;
}

.store-wholesale-notice span {
  color: #567060;
  font-size: 0.78rem;
}

.g-catalog-card__customer-shipping {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 7px;
  color: #315340;
  background: #edf5ef;
  font-size: 0.75rem;
}

.g-catalog-card__fulfillment {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--gift-muted);
  font-size: 0.72rem;
}

.g-catalog-card__fulfillment strong {
  color: var(--gift-ink);
}

.g-catalog-card__wholesale-note {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  color: var(--gift-muted);
  font-size: 0.74rem;
  font-weight: 700;
}

.collection-preview-dialog {
  width: min(1180px, calc(100vw - 32px));
  max-width: none;
  height: min(860px, calc(100vh - 32px));
  max-height: none;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--gift-line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 24px 64px rgb(25 22 20 / 24%);
}

.collection-preview-dialog::backdrop {
  background: rgb(25 22 20 / 48%);
}

.collection-preview-dialog__surface {
  height: 100%;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
}

.collection-preview-dialog__header,
.collection-preview-dialog__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  background: #fff;
}

.collection-preview-dialog__header {
  border-bottom: 1px solid var(--gift-line);
}

.collection-preview-dialog__header > div {
  display: grid;
  gap: 2px;
}

.collection-preview-dialog__header span {
  color: var(--gift-muted);
  font-size: 0.72rem;
}

.collection-preview-dialog__close {
  width: 36px;
  height: 36px;
  display: inline-grid;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid var(--gift-line);
  border-radius: 50%;
  background: #fff;
  color: var(--gift-ink);
  cursor: pointer;
  font: inherit;
  font-size: 1.35rem;
  line-height: 1;
}

.collection-preview-dialog__frame {
  width: 100%;
  height: 100%;
  min-height: 0;
  display: block;
  border: 0;
  background: #fff;
}

.collection-preview-dialog__footer {
  justify-content: flex-end;
  border-top: 1px solid var(--gift-line);
}

.customer-timeline article {
  display: grid;
  gap: 5px;
  padding: 0 0 16px 18px;
  border-left: 2px solid var(--brand-orange);
}

.customer-timeline time,
.customer-timeline span {
  color: var(--gift-muted);
  font-size: 0.76rem;
}

@media (max-width: 900px) {
  .store-hero__frame {
    aspect-ratio: 4 / 3;
  }

  .gift-collection-tier,
  .collection-tier {
    grid-template-columns: 1fr;
  }

  .gift-collection-tier__head {
    position: static;
  }

  .collection-admin {
    grid-template-columns: 1fr;
  }

  .g-price-tier-editor__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .collection-bench {
    position: static;
    max-height: 340px;
  }

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

  .coupon-row__actions {
    justify-content: flex-start;
  }

  .g-admin-layout--customers {
    grid-template-columns: 1fr;
  }

  .g-admin-layout--customers .g-detail {
    position: static;
    max-height: none;
  }
}

@media (max-width: 640px) {
  .customer-pricing-editor__money-grid,
  .customer-pricing-card dl {
    grid-template-columns: 1fr;
  }

  .customer-b2b-share__url {
    grid-template-columns: 1fr;
  }

  .customer-month-lines__grid {
    grid-template-columns: 1fr;
  }

  .store-wholesale-notice {
    display: grid;
  }
  .store-hero {
    padding: 0;
  }

  .collection-admin__intro {
    align-items: stretch;
    flex-direction: column;
  }

  .collection-preview-dialog {
    width: 100vw;
    height: 100svh;
    border: 0;
    border-radius: 0;
  }

  .collection-preview-dialog__footer {
    flex-wrap: wrap;
  }

  .collection-card-editor {
    width: 100vw;
    max-height: 100svh;
    border: 0;
    border-radius: 0;
  }

  .collection-card-editor__surface {
    max-height: 100svh;
  }

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

  .collection-card-editor__preview {
    grid-template-columns: 96px minmax(0, 1fr);
    align-items: center;
  }

  .collection-card-editor__image {
    grid-row: 1 / span 2;
  }

  .collection-card-editor__footer {
    align-items: stretch;
    flex-direction: column;
  }

  .store-hero__frame {
    aspect-ratio: 4 / 5;
    max-height: calc(100svh - var(--store-nav-h) - var(--store-bag-h) - 64px);
    border-radius: 0;
  }

  .store-hero__img {
    object-position: center 34%;
  }

  .g-store .gift-collection-tier__grid,
  .g-store .gift-collection-direct__grid,
  .collection-tier__slots,
  .collection-direct__slots,
  .store-cart-item__option-fields,
  .coupon-row {
    grid-template-columns: 1fr;
  }

  .g-price-tier-editor__grid {
    grid-template-columns: 1fr;
  }

  .g-store--catalog .store-channel-tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .g-store--catalog .store-channel-tab {
    min-height: 76px;
    padding: 10px 12px;
  }

  .gift-detail {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .gift-detail__image {
    min-height: 0;
    aspect-ratio: 4 / 3;
    padding: 12px;
  }

  .gift-detail__content {
    padding: 24px 18px;
  }

  .gift-detail dl div {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .gift-collection-tab {
    min-width: 96px;
  }
}
