:root {
  --paper: #fbf7ef;
  --ivory: #f1ece3;
  --ink: #12110f;
  --muted: #6f675e;
  --forest: #42583d;
  --forest-dark: #243421;
  --champagne: #c7a96f;
  --line: rgba(18, 17, 15, 0.14);
  --serif: Georgia, "Times New Roman", serif;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
}

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

a {
  color: inherit;
}

.checkout-header {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  padding: 20px clamp(20px, 8vw, 150px);
  border-bottom: 1px solid var(--line);
  background: rgba(251, 247, 239, 0.95);
}

.brand {
  display: block;
  width: 174px;
  overflow: hidden;
}

.brand img {
  width: 214px;
  max-width: none;
  transform: translateX(-20px);
}

.checkout-header p {
  margin: 0;
  font-size: clamp(1.35rem, 2.2vw, 2rem);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.checkout-header a:last-child {
  justify-self: end;
  color: var(--forest-dark);
  font-weight: 760;
}

.checkout-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.72fr);
  min-height: calc(100vh - 82px);
}

.checkout-form-panel,
.order-summary {
  padding: clamp(34px, 5vw, 72px) clamp(22px, 8vw, 140px);
}

.checkout-form-panel {
  border-right: 1px solid var(--line);
}

.express-box {
  position: relative;
  max-width: 640px;
  margin-bottom: 38px;
  padding: 30px 24px 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  text-align: center;
}

.express-box span {
  position: absolute;
  left: 50%;
  top: 0;
  padding: 0 14px;
  color: var(--muted);
  background: var(--paper);
  transform: translate(-50%, -50%);
}

.express-button,
.continue-button,
.download-button {
  display: inline-flex;
  width: 100%;
  min-height: 58px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 8px;
  color: var(--paper);
  background: #050505;
  cursor: pointer;
  font: inherit;
  font-size: 1.02rem;
  text-decoration: none;
}

.express-box p,
.secure-note {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.checkout-form {
  display: grid;
  max-width: 640px;
  gap: 22px;
}

.checkout-form h1,
.delivery-state h2,
.order-summary h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(2rem, 3vw, 3rem);
  font-weight: 500;
  line-height: 1;
}

label {
  display: grid;
  gap: 8px;
  color: var(--ink);
  font-size: 0.95rem;
}

input {
  width: 100%;
  min-height: 56px;
  border: 1px solid rgba(18, 17, 15, 0.28);
  border-radius: 6px;
  padding: 12px 14px;
  background: #fffdfa;
  font: inherit;
}

input:focus {
  border-color: var(--forest);
  outline: 3px solid rgba(66, 88, 61, 0.12);
}

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

.delivery-state {
  display: grid;
  max-width: 640px;
  gap: 18px;
  margin-top: 34px;
  padding: 24px;
  border: 1px solid rgba(66, 88, 61, 0.24);
  border-radius: 8px;
  background: rgba(66, 88, 61, 0.06);
}

.delivery-state p {
  margin: 0;
  color: var(--muted);
}

.status-pill {
  padding: 12px 14px;
  border-radius: 999px;
  color: var(--forest-dark);
  background: rgba(199, 169, 111, 0.2);
  font-weight: 780;
}

.ghost-button {
  border: 1px solid var(--forest);
  border-radius: 8px;
  padding: 13px 18px;
  color: var(--forest-dark);
  background: transparent;
  cursor: pointer;
  font: inherit;
}

.order-summary {
  background: var(--ivory);
}

.order-summary h2 span {
  color: var(--muted);
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 500;
}

.summary-product {
  display: grid;
  grid-template-columns: 82px 1fr auto;
  gap: 18px;
  align-items: center;
  margin-top: 32px;
}

.product-thumb {
  position: relative;
  width: 82px;
  height: 96px;
  overflow: hidden;
  border-radius: 8px;
  background: var(--paper);
}

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

.product-thumb span {
  position: absolute;
  right: -6px;
  top: -6px;
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  background: #555;
  font-size: 0.82rem;
}

.summary-product h3 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 780;
}

.summary-product p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.promo-button {
  width: 100%;
  margin-top: 34px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  text-align: left;
  text-decoration: underline;
}

dl {
  display: grid;
  gap: 18px;
  margin: 34px 0 0;
}

dl div {
  display: flex;
  justify-content: space-between;
  gap: 22px;
}

dt,
dd {
  margin: 0;
}

.total {
  font-size: 1.35rem;
  font-weight: 850;
}

@media (max-width: 900px) {
  .checkout-header,
  .checkout-shell {
    grid-template-columns: 1fr;
  }

  .checkout-header {
    gap: 12px;
  }

  .checkout-header a:last-child {
    justify-self: start;
  }

  .checkout-form-panel {
    border-right: 0;
  }

  .two-fields,
  .summary-product {
    grid-template-columns: 1fr;
  }
}
