:root {
  --fm-ink: #45433f;
  --fm-muted: #7e7a72;
  --fm-line: #ddd8ce;
  --fm-paper: #fffefa;
  --fm-warm: #f5f2eb;
  --fm-sage: #c9ccb3;
  --fm-sage-dark: #747a5d;
  --fm-coffee: #6f5442;
  --fm-white: #ffffff;
}

html {
  scroll-behavior: smooth;
}

body.fm-delivery-page {
  margin: 0;
  background: var(--fm-paper);
  color: var(--fm-ink);
  font-family: Roboto, "Zen Old Mincho", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  font-size: 16px;
  line-height: 1.9;
  letter-spacing: 0.04em;
  -webkit-font-smoothing: antialiased;
}

.fm-delivery-page *,
.fm-delivery-page *::before,
.fm-delivery-page *::after {
  box-sizing: border-box;
}

.fm-delivery-page a {
  color: inherit;
}

.fm-delivery-header {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 78px;
  padding: 20px;
  border-bottom: 1px solid rgba(221, 216, 206, 0.7);
  background: rgba(255, 254, 250, 0.96);
}

.fm-delivery-logo {
  color: var(--fm-ink);
  font-family: Georgia, "Times New Roman", "Yu Mincho", serif;
  font-size: 28px;
  letter-spacing: 0.08em;
  text-decoration: none;
}

.fm-delivery-main {
  width: min(100%, 760px);
  margin: 0 auto;
}

.fm-delivery-hero {
  padding: 72px 24px 54px;
  text-align: center;
}

.fm-delivery-eyebrow,
.fm-section-label {
  margin: 0 0 12px;
  color: #a29176;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.22em;
}

.fm-delivery-page h1,
.fm-delivery-page h2,
.fm-delivery-page h3 {
  margin-top: 0;
  color: var(--fm-ink);
  font-family: "Times New Roman", Times, "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-weight: 400;
}

.fm-delivery-page h1 {
  margin-bottom: 28px;
  font-size: clamp(29px, 7vw, 42px);
  line-height: 1.45;
  letter-spacing: 0.08em;
}

.fm-delivery-page h2 {
  margin-bottom: 22px;
  font-size: clamp(24px, 5.8vw, 32px);
  line-height: 1.5;
  letter-spacing: 0.06em;
}

.fm-delivery-page h3 {
  margin: 26px 0 8px;
  font-size: 18px;
}

.fm-delivery-customer {
	margin: 0 0 28px;
  font-family: "Times New Roman", Times, "Yu Mincho", serif;
  font-size: 21px;
  letter-spacing: 0.08em;
}

.fm-delivery-shoot-content {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: -12px 0 26px;
  padding: 8px 14px;
  border: 1px solid var(--fm-line);
  background: var(--fm-white);
  font-size: 13px;
  line-height: 1.5;
}

.fm-delivery-shoot-content span {
  color: var(--fm-muted);
  font-size: 10px;
  letter-spacing: 0.12em;
}

.fm-delivery-shoot-content strong {
  font-weight: 500;
}

.fm-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  min-height: 54px;
  padding: 14px 28px;
  border: 1px solid transparent;
  border-radius: 0;
  font: inherit;
  font-size: 14px;
  letter-spacing: 0.08em;
  line-height: 1.4;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background 180ms ease, color 180ms ease, border-color 180ms ease;
}

.fm-button-primary {
  width: min(100%, 420px);
  margin-top: 28px;
  background: var(--fm-sage-dark);
  color: var(--fm-white) !important;
  font-size: 17px;
}

.fm-button-primary:hover,
.fm-button-primary:focus-visible {
  background: #656a50;
}

.fm-button-secondary {
  background: var(--fm-ink);
  color: var(--fm-white) !important;
}

.fm-button-secondary:hover,
.fm-button-secondary:focus-visible {
  background: #2f2e2b;
}

.fm-button-outline {
  border-color: var(--fm-ink);
  background: transparent;
  color: var(--fm-ink);
}

.fm-button-outline:hover,
.fm-button-outline:focus-visible {
  background: var(--fm-ink);
  color: var(--fm-white);
}

.fm-button-coffee {
  border-color: var(--fm-coffee);
  background: var(--fm-coffee);
  color: var(--fm-white) !important;
}

.fm-section-review .fm-button,
.fm-section-payment .fm-button {
  margin-top: 22px;
}

.fm-review-campaign {
  margin-top: 32px;
  overflow: hidden;
  border: 1px solid #d7c6ae;
  background: #fffaf4;
}

.fm-review-campaign-band {
  margin: 0;
  padding: 10px 18px;
  background: #a29176;
  color: var(--fm-white);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-align: center;
}

.fm-review-campaign-body {
  padding: 26px 28px 28px;
}

.fm-review-campaign-body p {
  margin: 0;
}

.fm-review-campaign-body p + p {
  margin-top: 16px;
}

.fm-review-campaign-body strong {
  color: var(--fm-coffee);
  font-weight: 600;
}

.fm-review-campaign-body .fm-review-campaign-note {
  color: var(--fm-muted);
  font-size: 12px;
}

.fm-section.fm-section-payment-priority {
  margin: 0 24px 24px;
  padding: 42px 32px;
  border: 1px solid #d7c6ae;
  background: #f3eadf;
}

.fm-section-payment-priority .fm-button {
  width: min(100%, 420px);
  padding-right: 18px;
  padding-left: 18px;
  letter-spacing: 0.04em;
}

.fm-delivery-summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 0 24px 24px;
  border: 1px solid var(--fm-line);
  background: var(--fm-white);
}

.fm-delivery-summary div {
  min-width: 0;
  padding: 20px 10px;
  text-align: center;
}

.fm-delivery-summary div + div {
  border-left: 1px solid var(--fm-line);
}

.fm-delivery-summary span,
.fm-delivery-summary strong {
  display: block;
}

.fm-delivery-summary span {
  margin-bottom: 5px;
  color: var(--fm-muted);
  font-size: 10px;
  letter-spacing: 0.12em;
}

.fm-delivery-summary strong {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.fm-section {
  margin: 0 24px 24px;
  padding: 72px 48px;
  border: 1px solid var(--fm-line);
}

.fm-section-compact {
  padding-top: 54px;
  padding-bottom: 54px;
}

.fm-section-tint,
.fm-section-review,
.fm-section-payment {
  background: var(--fm-warm);
}

.fm-section-coffee {
  background: #eee8df;
}

.fm-accordion {
  margin-top: 26px;
  border-top: 1px solid var(--fm-line);
  border-bottom: 1px solid var(--fm-line);
}

.fm-accordion summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 60px;
  list-style: none;
  font-size: 14px;
  cursor: pointer;
}

.fm-accordion summary::-webkit-details-marker {
  display: none;
}

.fm-accordion[open] summary span {
  transform: rotate(45deg);
}

.fm-accordion summary span {
  font-size: 22px;
  transition: transform 180ms ease;
}

.fm-accordion-content {
  padding: 0 0 28px;
  color: #615e57;
  font-size: 14px;
}

.fm-choice-list {
  margin: 28px 0;
  border-top: 1px solid var(--fm-line);
}

.fm-choice {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 13px;
  padding: 20px 0;
  border-bottom: 1px solid var(--fm-line);
  cursor: pointer;
}

.fm-choice input {
  width: 18px;
  height: 18px;
  margin-top: 5px;
  accent-color: var(--fm-sage-dark);
}

.fm-choice strong,
.fm-choice small {
  display: block;
}

.fm-choice strong {
  margin-bottom: 5px;
  font-size: 15px;
}

.fm-choice small {
  color: #68645d;
  font-size: 13px;
  line-height: 1.7;
}

.fm-form-notice {
  margin: 22px 0;
  padding: 14px 16px;
  border-left: 3px solid var(--fm-sage-dark);
  background: var(--fm-white);
  font-size: 13px;
}

.fm-form-notice.is-error {
  border-left-color: #a45d52;
}

.fm-field {
  display: block;
  margin: 28px 0;
}

.fm-field > span,
.fm-fieldset legend {
  display: block;
  margin-bottom: 9px;
  font-size: 14px;
  font-weight: 500;
}

.fm-field em,
.fm-fieldset em {
  color: #9a665d;
  font-size: 11px;
  font-style: normal;
}

.fm-field textarea {
  width: 100%;
  min-height: 120px;
  padding: 14px;
  border: 1px solid var(--fm-line);
  border-radius: 0;
  background: var(--fm-white);
  color: var(--fm-ink);
  font: inherit;
  font-size: 16px;
  line-height: 1.7;
}

.fm-field textarea:focus {
  border-color: var(--fm-sage-dark);
  outline: 2px solid rgba(116, 122, 93, 0.15);
}

.fm-fieldset {
  display: grid;
  gap: 9px;
  margin: 28px 0;
  padding: 0;
  border: 0;
}

.fm-fieldset label {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 14px;
}

.fm-fieldset input {
  width: 18px;
  height: 18px;
  accent-color: var(--fm-sage-dark);
}

.fm-honeypot {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

.fm-delivery-alert {
  margin-top: 28px;
  padding: 16px;
  background: var(--fm-warm);
  font-size: 14px;
}

.fm-delivery-closing {
  padding: 88px 48px 84px;
  text-align: center;
}

.fm-closing-copy {
  font-family: "Times New Roman", Times, "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-size: 17px;
  line-height: 2.2;
}

.fm-signature {
  margin-top: 38px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 14px;
  letter-spacing: 0.08em;
}

.fm-signature span {
  font-size: 20px;
}

.fm-delivery-footer {
  padding: 36px 24px;
  background: #3e3d38;
  color: rgba(255, 255, 255, 0.78);
  text-align: center;
}

.fm-delivery-footer a {
  color: var(--fm-white);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 20px;
  letter-spacing: 0.1em;
  text-decoration: none;
}

.fm-delivery-footer p {
  margin: 8px 0 0;
  font-size: 10px;
  letter-spacing: 0.08em;
}

body.admin-bar .fm-delivery-header {
  margin-top: 32px;
}

@media (max-width: 600px) {
  body.fm-delivery-page {
    font-size: 15px;
    line-height: 1.85;
  }

  .fm-delivery-header {
    min-height: 68px;
  }

  .fm-delivery-logo {
    font-size: 25px;
  }

  .fm-delivery-hero {
    padding: 58px 22px 42px;
  }

  .fm-delivery-shoot-content {
    display: flex;
    width: fit-content;
    max-width: 100%;
    margin-right: auto;
    margin-left: auto;
    text-align: left;
  }

  .fm-delivery-page h1 {
    font-size: 30px;
  }

  .fm-delivery-page h2 {
    font-size: 25px;
  }

  .fm-delivery-summary {
    margin: 0 16px 16px;
  }

  .fm-section.fm-section-payment-priority {
    margin: 0 16px 16px;
    padding: 34px 22px;
  }

  .fm-delivery-summary div {
    padding: 17px 6px;
  }

  .fm-delivery-summary strong {
    font-size: 12px;
  }

  .fm-section,
  .fm-delivery-closing {
    padding: 58px 22px;
  }

  .fm-section {
    margin: 0 16px 16px;
  }

  .fm-button {
    width: 100%;
    min-height: 56px;
  }

  .fm-review-campaign {
    margin-top: 28px;
  }

  .fm-review-campaign-body {
    padding: 22px 18px 24px;
  }

  .fm-closing-copy {
    font-size: 16px;
  }

  body.admin-bar .fm-delivery-header {
    margin-top: 46px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .fm-button,
  .fm-accordion summary span {
    transition: none;
  }
}
