:root {
  color-scheme: light;
  --wood-dark: #402416;
  --wood-deep: #28170f;
  --paper: #fff2d6;
  --paper-light: #fff9e9;
  --ink: #392319;
  --muted: #796048;
  --line: #d8ba88;
  --gold: #e6b45c;
  --gold-light: #ffe1a0;
  --green: #098c3e;
  --green-dark: #05672e;
  --focus: #08783a;
  --heading-font: Rockwell, "Bookman Old Style", Georgia, "Times New Roman", serif;
  --wood-texture: url("assets/counter-wood.webp");
  --paper-texture: repeating-linear-gradient(0deg, transparent 0 3px, rgba(124, 83, 32, 0.025) 3px 4px);
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--wood-deep);
}

body {
  min-width: 320px;
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(39, 22, 16, 0.45), rgba(39, 22, 16, 0.72)),
    url("assets/western-background.jpg") center 54% / cover fixed,
    var(--wood-dark);
  font-family: "Segoe UI", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  -webkit-font-smoothing: antialiased;
}

button {
  font: inherit;
}

button,
[role="radio"] {
  -webkit-tap-highlight-color: transparent;
}

/* Keep the visibility contract used by the payment controller. */
[hidden] {
  display: none !important;
}

.checkout-shell {
  width: 100%;
  padding: 36px 24px;
}

.checkout-layout {
  position: relative;
  width: min(100%, 744px);
  margin: 0 auto;
  padding: 10px;
  border: 2px solid #d3984e;
  border-radius: 25px;
  background: var(--wood-texture) center / 320px auto, var(--wood-dark);
  box-shadow:
    0 0 0 3px #321a10,
    0 0 0 5px rgba(233, 165, 84, 0.6),
    inset 0 0 0 2px #6e3b1e,
    0 22px 65px rgba(20, 9, 4, 0.55);
}

.checkout-layout::before,
.checkout-layout::after {
  content: "";
  position: absolute;
  z-index: 2;
  top: 14px;
  width: 9px;
  height: 9px;
  border: 1px solid #28190f;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 25%, #fff1c6, #b7a17e 35%, #514438 70%);
  box-shadow: 0 1px 2px #1b100b;
  pointer-events: none;
}

.checkout-layout::before {
  left: 15px;
}

.checkout-layout::after {
  right: 15px;
}

.brand-rail {
  padding: 12px 22px 0;
  border: 1px solid rgba(255, 206, 132, 0.22);
  border-bottom: 0;
  border-radius: 16px 16px 0 0;
  color: #fff2d3;
  background: linear-gradient(180deg, rgba(33, 15, 7, 0.13), rgba(33, 15, 7, 0.6));
}

.brand-lockup {
  display: flex;
  justify-content: center;
}

.brand-mark {
  display: block;
  width: 284px;
  max-width: 82%;
  height: auto;
  filter: drop-shadow(0 4px 2px rgba(26, 11, 3, 0.45));
}

.checkout-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 500px;
  margin: 15px auto 0;
  padding: 0 0 18px;
  list-style: none;
}

.checkout-steps li {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-width: 0;
  color: #d1b58d;
  font-size: 0.76rem;
  font-weight: 650;
}

.checkout-steps li + li::before {
  content: "";
  position: absolute;
  left: 0;
  width: 16px;
  height: 1px;
  background: #9a7149;
  transform: translateX(-50%);
}

.step-number {
  display: grid;
  flex: 0 0 auto;
  width: 25px;
  height: 25px;
  place-items: center;
  border: 1px solid #ab814d;
  border-radius: 50%;
  background: rgba(40, 20, 11, 0.6);
  font-size: 0.7rem;
  font-weight: 800;
}

.checkout-steps .is-complete {
  color: #ebd6b5;
}

.is-complete .step-number {
  color: #f2e1bc;
  border-color: #a4ae66;
  background: #43653a;
}

.checkout-steps .is-current {
  color: var(--gold-light);
}

.is-current .step-number {
  color: #4b2b12;
  border-color: #ffe3a0;
  background: linear-gradient(#ffe3a0, #dea044);
  box-shadow: 0 0 0 3px rgba(239, 179, 80, 0.13);
}

.checkout-workspace {
  min-width: 0;
  overflow: hidden;
  border: 1px solid #a86f31;
  border-radius: 9px;
  background:
    var(--paper-texture),
    radial-gradient(ellipse at top, #fffcf1 10%, #f7e4bd 100%);
  box-shadow: 0 3px 9px rgba(28, 12, 4, 0.5), inset 0 0 20px rgba(181, 129, 59, 0.12);
}

.workspace-header {
  padding: 26px 32px 23px;
  text-align: center;
}

.eyebrow,
.section-label {
  margin: 0;
  color: #76522d;
  font-size: 0.68rem;
  font-weight: 800;
  line-height: 1.4;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.eyebrow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.eyebrow span {
  color: #a6742a;
  font-size: 0.72rem;
}

.workspace-header h1 {
  margin: 9px 0 7px;
  color: #4c2c1a;
  font-family: var(--heading-font);
  font-size: clamp(1.55rem, 4vw, 2.15rem);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.04em;
  text-shadow: 0 1px 0 #ffffff;
}

.workspace-intro {
  margin: 0;
  color: var(--muted);
  font-size: 0.83rem;
  line-height: 1.5;
}

.checkout-content {
  display: flex;
  flex-direction: column;
  gap: 25px;
  padding: 0 32px 25px;
}

.amount-card {
  position: relative;
  min-width: 0;
  padding: 17px 21px 15px;
  border: 1px solid #bc8c4d;
  border-radius: 9px;
  background:
    linear-gradient(100deg, rgba(255, 251, 230, 0.8), rgba(243, 215, 166, 0.35)),
    var(--paper-texture),
    #f9e7c3;
  box-shadow: inset 0 0 0 3px rgba(255, 250, 225, 0.7), 0 3px 0 rgba(115, 70, 24, 0.1);
}

.receipt-heading,
.receipt-total,
.section-heading,
.card-fields-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.receipt-tag {
  padding: 3px 8px;
  border: 1px solid #c3a366;
  border-radius: 4px;
  color: #735326;
  background: rgba(255, 250, 226, 0.65);
  font-size: 0.65rem;
  font-weight: 750;
  line-height: 1.3;
}

.receipt-total {
  margin-top: 13px;
}

.receipt-caption {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
  font-size: 0.86rem;
  font-weight: 750;
}

.receipt-coin {
  display: grid;
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 2px solid #b6731a;
  border-radius: 50%;
  color: #ac6612;
  background: linear-gradient(140deg, #fff4a8, #ffd057 45%, #dc921f);
  box-shadow: inset 0 0 0 3px #f9d75d, inset 0 0 0 4px #d89624, 0 2px 0 #bf8a37;
  font-size: 1.2rem;
  text-shadow: 0 1px 0 #ffe99b;
}

.receipt-subtitle {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.69rem;
  font-weight: 400;
}

.amount-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: flex-end;
  gap: 5px 8px;
  min-width: 0;
  text-align: right;
}

.currency {
  color: #896039;
  font-size: 0.68rem;
  font-weight: 800;
}

#amountValue {
  max-width: 100%;
  color: #4b2c19;
  font-family: var(--heading-font);
  font-size: clamp(2rem, 5vw, 2.65rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.045em;
  overflow-wrap: anywhere;
}

.summary-list {
  display: grid;
  grid-template-columns: 1.2fr 0.7fr 1fr;
  gap: 12px;
  margin: 15px 0 0;
  padding-top: 12px;
  border-top: 1px dashed #c5a16c;
}

.summary-list > div {
  min-width: 0;
}

.summary-list dt,
.summary-list dd {
  margin: 0;
  font-size: 0.66rem;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.summary-list dt {
  color: var(--muted);
}

.summary-list dd {
  margin-top: 2px;
  font-weight: 700;
}

.payment-section {
  min-width: 0;
}

.section-heading h2 {
  margin: 0;
  color: #4a2c1d;
  font-family: var(--heading-font);
  font-size: 1.23rem;
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -0.025em;
}

.channel-status {
  flex: 0 0 auto;
  color: #83623f;
  font-size: 0.68rem;
  font-weight: 650;
}

.payment-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
  margin-top: 14px;
}

.payment-option {
  position: relative;
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) 23px;
  align-items: center;
  gap: 15px;
  width: 100%;
  min-width: 0;
  min-height: 77px;
  padding: 13px 17px;
  border: 1px solid #ceb07f;
  border-radius: 8px;
  color: var(--ink);
  background: linear-gradient(110deg, #fffdf5, #fff7e3);
  box-shadow: 0 2px 0 rgba(106, 65, 25, 0.1), inset 0 0 0 2px rgba(255, 255, 255, 0.6);
  text-align: left;
  cursor: pointer;
  transition: border-color 150ms ease, background-color 150ms ease, box-shadow 150ms ease;
}

.payment-option:hover {
  border-color: #9c763e;
  box-shadow: 0 2px 0 rgba(106, 65, 25, 0.1), 0 0 0 1px #bf9c61;
}

.payment-option.is-selected {
  border-color: #3d8543;
  background: linear-gradient(100deg, #f5f7de, #fff8e3);
  box-shadow: 0 0 0 1px #3d8543, inset 4px 0 0 #398342, 0 3px 0 rgba(44, 86, 30, 0.1);
}

.payment-option:focus-visible,
.pay-button:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 4px;
}

.payment-icon {
  position: relative;
  display: grid;
  width: 54px;
  height: 42px;
  place-items: center;
  font-weight: 800;
  line-height: 1;
}

.apple-icon {
  height: 34px;
  border-radius: 6px;
  color: #ffffff;
  background: #171717;
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;
  font-size: 0.75rem;
  white-space: nowrap;
}

.payment-icon-image {
  display: block;
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.card-icon::before,
.card-icon::after {
  content: "";
  position: absolute;
}

.card-icon::before {
  inset: 5px 2px;
  border: 1px solid #a69b87;
  border-radius: 5px;
  background:
    linear-gradient(to bottom, transparent 0 8px, #4a4c48 8px 14px, transparent 14px),
    linear-gradient(145deg, #fffdf6, #e7e3d8);
  box-shadow: 0 2px 3px rgba(58, 39, 18, 0.14);
}

.card-icon::after {
  right: 7px;
  bottom: 8px;
  width: 21px;
  height: 10px;
  background:
    radial-gradient(circle at 35% 50%, #eb001b 0 42%, transparent 44%),
    radial-gradient(circle at 65% 50%, #f79e1b 0 42%, transparent 44%);
}

.payment-copy {
  min-width: 0;
}

.payment-copy strong,
.payment-copy small {
  display: block;
  overflow-wrap: anywhere;
}

.payment-copy strong {
  font-size: 0.91rem;
  font-weight: 750;
  line-height: 1.35;
}

.payment-copy small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.71rem;
  line-height: 1.45;
}

.selection-mark {
  position: relative;
  display: block;
  width: 23px;
  height: 23px;
  border: 1px solid #bc9f73;
  border-radius: 50%;
  background: #fffdf5;
  box-shadow: inset 0 1px 2px rgba(115, 73, 26, 0.1);
}

.is-selected .selection-mark {
  border-color: #146c35;
  background: linear-gradient(#28a64d, #087d36);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.is-selected .selection-mark::after {
  content: "";
  position: absolute;
  top: 5px;
  left: 7px;
  width: 6px;
  height: 10px;
  border: solid #fff9df;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.empty-state {
  margin: 0;
  padding: 23px 18px;
  border: 1px dashed #bfa070;
  border-radius: 8px;
  color: var(--muted);
  background: rgba(255, 252, 242, 0.75);
  font-size: 0.85rem;
  line-height: 1.5;
  text-align: center;
}

.card-fields {
  margin-top: 18px;
  padding: 17px;
  border: 1px solid #d5bd95;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 2px 0 rgba(106, 65, 25, 0.08);
}

.card-fields-heading {
  align-items: baseline;
  margin-bottom: 15px;
}

.card-fields-heading > span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #7b6b59;
  font-size: 0.67rem;
}

.card-fields-heading .lock-mark {
  transform: scale(0.8);
}

.card-loading {
  display: grid;
  min-height: 80px;
  margin: 0;
  padding: 18px 10px;
  place-items: center;
  color: var(--muted);
  font-size: 0.81rem;
  line-height: 1.5;
  text-align: center;
}

.checkout-card-container {
  width: 100%;
  min-width: 0;
  color-scheme: light;
}

.payment-actions {
  min-width: 0;
}

.pay-button {
  position: relative;
  display: block;
  width: 100%;
  min-height: 65px;
  padding: 15px 35px;
  border: 2px solid #795023;
  border-radius: 12px;
  color: #fff9df;
  background: linear-gradient(180deg, #39c85b 0, #0c8d39 4px, #087a31 14px, #006929 100%);
  box-shadow:
    0 0 0 2px #d7a659,
    0 5px 0 #55351c,
    0 8px 12px rgba(69, 43, 17, 0.2),
    inset 0 2px 0 #b7f6a5,
    inset 0 0 0 3px rgba(3, 95, 31, 0.55);
  font-family: var(--heading-font);
  font-size: 1.22rem;
  font-weight: 900;
  line-height: 1.35;
  text-align: center;
  text-shadow: 0 2px 1px #064e22;
  overflow-wrap: anywhere;
  cursor: pointer;
  transition: filter 150ms ease, transform 150ms ease;
}

.pay-button::before,
.pay-button::after {
  content: "";
  position: absolute;
  top: calc(50% - 4px);
  width: 8px;
  height: 8px;
  border: 1px solid #17331d;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 25%, #f5eac9, #858d70 40%, #293a29 80%);
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.4);
}

.pay-button::before {
  left: 13px;
}

.pay-button::after {
  right: 13px;
}

.pay-button:hover:not(:disabled) {
  filter: brightness(1.08);
}

.pay-button:active:not(:disabled) {
  transform: translateY(2px);
}

.pay-button:disabled {
  color: #e9dfca;
  background: linear-gradient(#8d9076, #636d53);
  text-shadow: 0 1px 1px #48503d;
  box-shadow: 0 0 0 2px #c4a16e, 0 4px 0 #765638, inset 0 2px 0 #bfc2a6;
  cursor: not-allowed;
}

.action-assurance {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 8px;
  max-width: 450px;
  margin: 19px auto 0;
  color: #7b6246;
}

.action-assurance p {
  margin: 0;
  font-size: 0.67rem;
  line-height: 1.6;
  text-align: center;
}

.lock-mark {
  position: relative;
  display: inline-block;
  flex: 0 0 auto;
  width: 10px;
  height: 9px;
  margin-top: 5px;
  border-radius: 2px;
  background: currentColor;
}

.lock-mark::before {
  content: "";
  position: absolute;
  top: -5px;
  left: 2px;
  width: 6px;
  height: 6px;
  border: 1.5px solid currentColor;
  border-bottom: 0;
  border-radius: 5px 5px 0 0;
}

.workspace-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 20px;
  border-top: 1px solid #dfc69c;
  color: #796246;
  background: rgba(221, 192, 140, 0.15);
  font-size: 0.62rem;
  line-height: 1.5;
}

.secure-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #4c6535;
  font-weight: 750;
}

.shield-mark {
  display: inline-block;
  width: 10px;
  height: 12px;
  border: 1.5px solid currentColor;
  border-radius: 4px 4px 6px 6px;
}

.counter-signoff {
  margin: 13px 0 3px;
  color: #e7c48b;
  font-family: var(--heading-font);
  font-size: 0.66rem;
  font-weight: 800;
  line-height: 1.4;
  letter-spacing: 0.15em;
  text-align: center;
  text-shadow: 0 1px 1px #28140b;
}

.counter-signoff span {
  margin: 0 12px;
  color: #f7d184;
  font-size: 0.6rem;
}

.page-state,
.success-shell {
  display: grid;
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  padding: 30px 20px;
  place-items: center;
}

.state-card,
.success-panel {
  width: min(100%, 470px);
  padding: 23px 11px 11px;
  border: 2px solid #c18b48;
  border-radius: 22px;
  background: var(--wood-texture) center / 320px auto, var(--wood-dark);
  box-shadow: 0 0 0 3px #362014, 0 18px 50px rgba(25, 10, 4, 0.5), inset 0 0 0 2px #6e3b1e;
  text-align: center;
}

.loading-logo {
  display: block;
  width: 265px;
  max-width: 82%;
  height: auto;
  margin: 0 auto 20px;
  filter: drop-shadow(0 3px 2px rgba(26, 11, 3, 0.4));
}

.state-paper {
  padding: 32px 25px;
  border: 1px solid #c69d61;
  border-radius: 9px;
  background: var(--paper-texture), radial-gradient(ellipse at top, #fffcf1, #f7e4bd);
  box-shadow: inset 0 0 0 3px rgba(255, 251, 230, 0.7);
}

.spinner {
  display: block;
  width: 39px;
  height: 39px;
  margin: 0 auto 22px;
  border: 3px solid #e4c894;
  border-top-color: #9b651e;
  border-radius: 50%;
  animation: spin 850ms linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.state-paper h1,
.state-paper h2 {
  margin: 10px 0;
  color: #4c2c1a;
  font-family: var(--heading-font);
  font-size: 1.65rem;
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: -0.035em;
}

.state-paper > p:not(.section-label) {
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.55;
}

.success-mark {
  position: relative;
  width: 63px;
  height: 63px;
  margin: 0 auto 21px;
  border: 2px solid #a87529;
  border-radius: 50%;
  background: linear-gradient(#24b556, #067e38);
  box-shadow: 0 0 0 3px #f2d492, inset 0 2px 0 rgba(211, 255, 191, 0.6), 0 4px 7px rgba(106, 65, 25, 0.16);
}

.success-mark::after {
  content: "";
  position: absolute;
  top: 13px;
  left: 21px;
  width: 16px;
  height: 27px;
  border: solid #fff9df;
  border-width: 0 4px 4px 0;
  transform: rotate(45deg);
}

.success-details {
  margin-top: 26px;
  border-top: 1px dashed #c9a66e;
}

.success-detail {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 0;
  border-bottom: 1px solid #e1cba5;
  color: var(--muted);
  font-size: 0.79rem;
  text-align: left;
}

.success-detail strong {
  min-width: 0;
  color: var(--ink);
  text-align: right;
  overflow-wrap: anywhere;
}

.toast {
  position: fixed;
  z-index: 20;
  bottom: max(22px, env(safe-area-inset-bottom));
  left: 50%;
  width: max-content;
  max-width: min(440px, calc(100% - 32px));
  padding: 14px 20px;
  border: 1px solid #e4b66e;
  border-radius: 9px;
  color: #fff2d3;
  background: #472b1c;
  box-shadow: 0 5px 20px rgba(30, 15, 8, 0.4), inset 0 0 0 2px rgba(228, 182, 110, 0.15);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 10px);
  transition: opacity 160ms ease, transform 160ms ease;
  font-size: 0.82rem;
  line-height: 1.5;
  text-align: center;
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

@media (min-width: 1100px) {
  body {
    background-size: auto, 100% auto;
  }
}

@media (max-width: 600px) {
  body {
    background-attachment: scroll;
  }

  .checkout-shell {
    padding: 16px 12px max(20px, env(safe-area-inset-bottom));
  }

  .checkout-layout {
    padding: 7px;
    border-radius: 19px;
  }

  .brand-rail {
    padding: 10px 9px 0;
    border-radius: 12px 12px 0 0;
  }

  .brand-mark {
    width: 238px;
  }

  .checkout-steps {
    margin-top: 13px;
    padding-bottom: 16px;
  }

  .checkout-steps li {
    gap: 5px;
    font-size: 0.63rem;
  }

  .checkout-steps li + li::before {
    width: 9px;
  }

  .step-number {
    width: 22px;
    height: 22px;
    font-size: 0.64rem;
  }

  .workspace-header {
    padding: 23px 15px 20px;
  }

  .workspace-header h1 {
    font-size: clamp(1.35rem, 5.8vw, 1.85rem);
  }

  .workspace-intro {
    max-width: 240px;
    margin-inline: auto;
    font-size: 0.75rem;
  }

  .eyebrow {
    gap: 8px;
    font-size: 0.59rem;
  }

  .checkout-content {
    gap: 22px;
    padding: 0 17px 23px;
  }

  .amount-card {
    padding: 14px;
  }

  .receipt-total {
    gap: 10px;
  }

  .receipt-caption {
    gap: 8px;
    font-size: 0.75rem;
  }

  .receipt-coin {
    width: 31px;
    height: 31px;
    font-size: 0.95rem;
  }

  .receipt-subtitle {
    font-size: 0.6rem;
  }

  .amount-row {
    gap: 3px 5px;
  }

  #amountValue {
    font-size: 2rem;
  }

  .summary-list {
    gap: 8px;
  }

  .summary-list dt,
  .summary-list dd {
    font-size: 0.59rem;
  }

  .section-heading {
    gap: 10px;
  }

  .section-heading h2 {
    font-size: 1.1rem;
  }

  .channel-status {
    font-size: 0.62rem;
  }

  .payment-option {
    grid-template-columns: 43px minmax(0, 1fr) 21px;
    gap: 10px;
    min-height: 76px;
    padding: 12px;
  }

  .payment-icon {
    width: 43px;
  }

  .payment-icon-image {
    width: 35px;
    height: 35px;
  }

  .payment-copy strong {
    font-size: 0.82rem;
  }

  .payment-copy small {
    font-size: 0.66rem;
  }

  .selection-mark {
    width: 21px;
    height: 21px;
  }

  .is-selected .selection-mark::after {
    top: 4px;
    left: 6px;
  }

  .card-fields {
    padding: 13px;
  }

  .card-fields-heading {
    gap: 8px;
  }

  .card-fields-heading > span {
    font-size: 0.59rem;
  }

  .pay-button {
    min-height: 62px;
    padding-inline: 28px;
    font-size: 1.03rem;
  }

  .pay-button::before {
    left: 10px;
  }

  .pay-button::after {
    right: 10px;
  }

  .action-assurance p {
    font-size: 0.61rem;
  }

  .workspace-footer {
    gap: 5px 7px;
    padding: 13px;
    font-size: 0.57rem;
  }

  .workspace-footer > span:last-child,
  .workspace-footer > .footer-divider:nth-last-child(2) {
    display: none;
  }

  .counter-signoff {
    margin-block: 12px 4px;
    font-size: 0.59rem;
  }

  .state-paper {
    padding: 27px 20px;
  }
}

@media (max-width: 359px) {
  .checkout-content {
    padding-inline: 12px;
  }

  .receipt-total {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .amount-row {
    align-self: flex-end;
  }

  .checkout-steps li {
    flex-direction: column;
    gap: 4px;
  }

  .checkout-steps li + li::before {
    top: 11px;
    width: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .spinner {
    animation: none;
    border-top-color: #9b651e;
    border-right-color: #9b651e;
  }

  .payment-option,
  .pay-button,
  .toast {
    transition: none;
  }
}
