:root {
  --ink: #09162b;
  --muted: #536174;
  --green: #176428;
  --green-dark: #103f1d;
  --gold: #d6b45f;
  --paper: #fffefa;
  --soft: #f4f5f1;
  --line: #d9e0d7;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --serif: Georgia, "Times New Roman", serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--soft);
  font-family: var(--sans);
  text-rendering: optimizeLegibility;
}

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

a {
  color: inherit;
}

.checkout-header {
  display: flex;
  min-height: 76px;
  align-items: center;
  justify-content: space-between;
  padding: 1rem max(1.25rem, calc((100vw - 1180px) / 2));
  border-bottom: 1px solid rgba(255, 255, 255, .12);
  background: #0d2118;
}

.checkout-brand {
  display: inline-flex;
  flex-direction: column;
  color: #fff;
  line-height: 1;
  text-decoration: none;
}

.checkout-brand strong {
  font-family: var(--serif);
  font-size: 1.3rem;
}

.checkout-brand span {
  margin-top: .2rem;
  color: var(--gold);
  font-family: var(--serif);
  font-size: .96rem;
}

.secure-label {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  color: #e6ebe7;
  font-size: .85rem;
  font-weight: 700;
}

.secure-label span {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .35);
  border-radius: 50%;
  color: var(--gold);
}

.checkout-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, .92fr);
  gap: 3.5rem;
  width: min(100% - 2.5rem, 1180px);
  margin: 0 auto;
  padding: 4.5rem 0 5rem;
}

.checkout-main {
  min-width: 0;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  margin-bottom: 2.5rem;
  color: var(--green);
  font-size: .88rem;
  font-weight: 750;
  text-decoration: none;
}

.eyebrow,
.summary-kicker {
  margin: 0 0 .85rem;
  color: var(--green);
  font-size: .76rem;
  font-weight: 850;
  letter-spacing: .11em;
  text-transform: uppercase;
}

h1 {
  max-width: 13ch;
  margin: 0;
  font-family: var(--serif);
  font-size: 3.8rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0;
}

.checkout-intro {
  max-width: 610px;
  margin: 1.25rem 0 1rem;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.6;
}

.checkout-preview-link {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  margin-bottom: 2rem;
  color: var(--green);
  font-size: .9rem;
  font-weight: 800;
  text-decoration: underline;
  text-decoration-color: rgba(23, 100, 40, .35);
  text-underline-offset: .25rem;
}

.checkout-preview-link:hover {
  text-decoration-color: currentColor;
}

.checkout-progress {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin: 0 0 2rem;
  padding: 1rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  list-style: none;
}

.checkout-progress li {
  display: flex;
  align-items: center;
  gap: .55rem;
  color: #768193;
  font-size: .8rem;
  font-weight: 700;
}

.checkout-progress span {
  display: grid;
  width: 27px;
  height: 27px;
  place-items: center;
  border: 1px solid #cbd3cb;
  border-radius: 50%;
}

.checkout-progress .is-current {
  color: var(--green);
}

.checkout-progress .is-current span {
  border-color: var(--green);
  background: var(--green);
  color: #fff;
}

.order-form {
  display: grid;
  gap: 1.25rem;
}

.order-form fieldset {
  min-width: 0;
  margin: 0;
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.order-form legend {
  padding: 0 .45rem;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 800;
}

.field-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.field {
  display: grid;
  gap: .5rem;
}

.field label {
  color: #3c4b5e;
  font-size: .82rem;
  font-weight: 750;
}

.field input {
  width: 100%;
  min-height: 50px;
  padding: .75rem .85rem;
  border: 1px solid #c9d2c8;
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  font: inherit;
}

.field input:focus {
  border-color: var(--green);
  outline: 3px solid rgba(23, 100, 40, .12);
}

.field-help {
  margin: .85rem 0 0;
  color: #747f8f;
  font-size: .77rem;
  line-height: 1.45;
}

.payment-handoff {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.payment-handoff > div {
  display: flex;
  align-items: center;
  gap: .9rem;
}

.payment-mark {
  display: grid;
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 50%;
  background: #edf5eb;
  color: var(--green);
  font-weight: 900;
}

.payment-handoff strong {
  display: block;
  margin-bottom: .25rem;
  font-size: .94rem;
}

.payment-handoff p {
  max-width: 390px;
  margin: 0;
  color: var(--muted);
  font-size: .8rem;
  line-height: 1.45;
}

.payment-total {
  flex: 0 0 auto;
  color: var(--ink);
  font-weight: 850;
  white-space: nowrap;
}

.terms {
  display: flex;
  align-items: flex-start;
  gap: .7rem;
  color: #4e5d70;
  font-size: .82rem;
  line-height: 1.5;
}

.terms input {
  width: 18px;
  height: 18px;
  margin-top: .1rem;
  accent-color: var(--green);
}

.pay-button {
  display: flex;
  min-height: 58px;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  border: 0;
  border-radius: 7px;
  background: var(--green);
  color: #fff;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  transition: background .2s ease, transform .2s ease, box-shadow .2s ease;
}

.pay-button:hover {
  background: var(--green-dark);
  box-shadow: 0 14px 28px rgba(16, 63, 29, .18);
  transform: translateY(-2px);
}

.payment-note {
  margin: -.55rem 0 0;
  color: #758091;
  font-size: .74rem;
  text-align: center;
}

.provider-message {
  padding: 1.5rem;
  border: 1px solid #c9dac6;
  border-left: 4px solid var(--green);
  border-radius: 6px;
  background: #f1f7ef;
  outline: 0;
}

.provider-message strong {
  display: block;
  margin-bottom: .55rem;
  font-size: 1.1rem;
}

.provider-message p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.embedded-checkout {
  margin-top: 28px;
  min-height: 560px;
  overflow: hidden;
  border: 1px solid rgba(18, 60, 45, 0.14);
  border-radius: 18px;
  background: #fff;
}

.order-summary {
  position: sticky;
  top: 1.5rem;
  align-self: start;
  padding: 2rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 38px rgba(18, 34, 25, .08);
}

.order-summary h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: 2rem;
  line-height: 1.08;
}

.summary-products {
  position: relative;
  height: 235px;
  margin: 1.5rem 0;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.summary-products img {
  position: absolute;
  bottom: 10px;
  width: 27%;
  height: 205px;
  object-fit: contain;
  filter: drop-shadow(0 10px 12px rgba(16, 31, 22, .12));
}

.summary-products img:nth-child(1) {
  left: 0;
  transform: rotate(-6deg);
}

.summary-products img:nth-child(2) {
  left: 24%;
  transform: rotate(-2deg);
}

.summary-products img:nth-child(3) {
  left: 49%;
  transform: rotate(3deg);
}

.summary-products img:nth-child(4) {
  right: 0;
  transform: rotate(7deg);
}

.included-list {
  display: grid;
  gap: .55rem;
  margin: 0 0 1.5rem;
  padding: 0;
  list-style: none;
}

.included-list li {
  position: relative;
  padding-left: 1.35rem;
  color: #455468;
  font-size: .86rem;
}

.included-list li::before {
  position: absolute;
  left: 0;
  color: var(--green);
  content: "✓";
  font-weight: 850;
}

.price-breakdown {
  display: grid;
  gap: .8rem;
  padding: 1.25rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.price-breakdown > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  color: #667284;
  font-size: .84rem;
}

.price-breakdown strong {
  color: #314055;
  white-space: nowrap;
}

.price-breakdown .total {
  margin-top: .25rem;
  color: var(--ink);
  font-size: 1.02rem;
}

.price-breakdown .total strong {
  color: var(--ink);
  font-size: 1.25rem;
}

.order-assurances {
  display: grid;
  gap: .45rem;
  margin-top: 1.25rem;
}

.order-assurances p {
  margin: 0;
  color: #586679;
  font-size: .78rem;
}

.order-assurances span {
  margin-right: .4rem;
  color: var(--green);
  font-weight: 850;
}

.checkout-footer {
  display: flex;
  min-height: 90px;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.5rem max(1.25rem, calc((100vw - 1180px) / 2));
  border-top: 1px solid var(--line);
  background: #fff;
  color: #6e7989;
  font-size: .77rem;
}

.checkout-footer a {
  color: var(--green);
  font-weight: 700;
  text-decoration: none;
}

@media (max-width: 850px) {
  .checkout-layout {
    grid-template-columns: 1fr;
    padding-top: 3rem;
  }

  .order-summary {
    position: static;
    grid-row: 2;
  }

  .checkout-main {
    grid-row: 1;
  }
}

@media (max-width: 560px) {
  .checkout-header {
    min-height: 68px;
  }

  .secure-label {
    font-size: .76rem;
  }

  .checkout-layout {
    width: min(100% - 1.5rem, 1180px);
    gap: 2rem;
    padding-top: 2rem;
  }

  .order-summary {
    padding: 1.25rem;
  }

  h1 {
    font-size: 2.65rem;
  }

  .checkout-progress li {
    align-items: flex-start;
    flex-direction: column;
  }

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

  .payment-handoff {
    align-items: flex-start;
    flex-direction: column;
  }

  .summary-products {
    height: 200px;
  }

  .summary-products img {
    height: 175px;
  }

  .checkout-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  .pay-button {
    transition: none;
  }
}
