.checkout-page {
  color: #1c1917;
  background: #f7f6f4;
}

.checkout-hero {
  position: relative;
  min-height: 390px;
  padding: 150px 24px 78px;
  overflow: hidden;
  color: #fff;
  background: #141414;
}

.checkout-hero-glow {
  position: absolute;
  inset: -50% 12% -55%;
  background: radial-gradient(ellipse at 50% 50%, rgba(147,15,23,.54) 0, rgba(83,12,18,.24) 28%, transparent 68%);
  filter: blur(34px);
}

.checkout-hero-inner {
  position: relative;
  width: min(100%, 1152px);
  margin: 0 auto;
}

.checkout-hero-inner > p,
.checkout-cart-card header p,
.checkout-form-card header > p {
  margin: 0;
  color: #fa2d37;
  font: 500 10px/15px "DM Mono", monospace;
  letter-spacing: .3em;
  text-transform: uppercase;
}

.checkout-hero h1 {
  margin: 18px 0 24px;
  font-family: Syne, sans-serif;
  font-size: clamp(54px, 6vw, 86px);
  line-height: .92;
  letter-spacing: -.055em;
}

.checkout-hero h1 span { color: #fa2d37; }
.checkout-hero-inner > div { display: flex; gap: 34px; color: rgba(255,255,255,.58); font-size: 14px; line-height: 22px; }

.checkout-shell {
  width: min(100% - 48px, 1280px);
  margin: 0 auto;
  padding: 74px 0 110px;
}

.checkout-notice { margin: 0 0 24px; padding: 15px 18px; border-radius: 12px; font-size: 13px; }
.checkout-notice.error { color: #991b1b; border: 1px solid #fecaca; background: #fef2f2; }

.checkout-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(390px, .8fr);
  align-items: start;
  gap: 24px;
}

.checkout-cart-card,
.checkout-form-card {
  overflow: hidden;
  border: 1px solid #dedbd6;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 18px 50px rgba(38,31,26,.045);
}

.checkout-cart-card > header,
.checkout-form-card > header {
  min-height: 126px;
  padding: 29px 30px;
  display: flex;
  border-bottom: 1px solid #ece9e5;
}

.checkout-cart-card > header { align-items: flex-end; justify-content: space-between; gap: 18px; }
.checkout-cart-card h2,
.checkout-form-card h2 { margin: 9px 0 0; font-family: Syne, sans-serif; font-size: 30px; line-height: 35px; letter-spacing: -.03em; }
.checkout-cart-card > header > span { color: #77716b; font: 500 10px/14px "DM Mono", monospace; text-transform: uppercase; letter-spacing: .14em; white-space: nowrap; }

.checkout-items { padding: 0 30px; }
.checkout-items[hidden] { display: none; }
.checkout-item {
  min-height: 132px;
  padding: 20px 0;
  display: grid;
  grid-template-columns: 88px minmax(130px, 1fr) 118px 104px 78px;
  align-items: center;
  gap: 15px;
  border-bottom: 1px solid #ece9e5;
}
.checkout-item:last-child { border-bottom: 0; }
.checkout-item > img { width: 88px; height: 88px; display: block; object-fit: contain; border: 1px solid #ece9e5; border-radius: 13px; background: #fff; }
.checkout-item-copy { min-width: 0; display: flex; flex-direction: column; }
.checkout-item-copy small { color: #9a2027; font: 500 9px/13px "DM Mono", monospace; letter-spacing: .1em; }
.checkout-item-copy strong { margin-top: 7px; color: #211f1d; font-size: 13px; line-height: 18px; overflow-wrap: anywhere; }
.checkout-item-copy span { margin-top: 7px; color: #746f69; font-size: 11px; }

.checkout-item-controls { display: flex; flex-direction: column; gap: 7px; }
.checkout-item-controls > span { color: #77716b; font-size: 9px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; }
.checkout-quantity-stepper { height: 38px; display: grid; grid-template-columns: 34px minmax(38px, 1fr) 34px; overflow: hidden; border: 1px solid #d9d5d0; border-radius: 10px; background: #faf9f8; }
.checkout-quantity-stepper button { padding: 0; color: #655f59; border: 0; background: transparent; font-size: 17px; cursor: pointer; }
.checkout-quantity-stepper button:hover { color: #fff; background: #171717; }
.checkout-quantity-stepper input { min-width: 0; width: 100%; height: 36px; padding: 0; color: #25221f; border: 0; border-right: 1px solid #e3dfda; border-left: 1px solid #e3dfda; background: #fff; font-family: "DM Mono", monospace; font-size: 11px; text-align: center; outline: 0; appearance: textfield;  font-weight: 500;}
.checkout-quantity-stepper input::-webkit-inner-spin-button,
.checkout-quantity-stepper input::-webkit-outer-spin-button { margin: 0; appearance: none; }
.checkout-item-total { color: #2a2725; font: 500 12px/18px "DM Mono", monospace; text-align: right; }
.checkout-item-remove { min-width: 0; height: 36px; padding: 0 8px; display: inline-flex; align-items: center; justify-content: center; gap: 5px; color: #77716b; border: 1px solid #e3dfda; border-radius: 9px; background: transparent; cursor: pointer; }
.checkout-item-remove span { font-size: 18px; line-height: 1; }
.checkout-item-remove small { font-size: 8px; font-weight: 650; }
.checkout-item-remove:hover { color: #fff; border-color: #930f17; background: #930f17; }

.checkout-empty { min-height: 350px; padding: 60px 28px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.checkout-empty[hidden] { display: none; }
.checkout-empty > span { width: 62px; height: 62px; display: grid; place-items: center; color: #746f69; border: 1px solid #dedad5; border-radius: 18px; background: #faf9f8; }
.checkout-empty svg { width: 24px; }
.checkout-empty h3 { margin: 20px 0 8px; font-family: Syne, sans-serif; font-size: 23px; }
.checkout-empty p { max-width: 340px; margin: 0; color: #746f69; font-size: 12px; line-height: 20px; }
.checkout-empty a { height: 44px; margin-top: 22px; padding: 0 19px; display: flex; align-items: center; gap: 10px; color: #fff; border-radius: 11px; background: #e7000b; font-size: 11px; font-weight: 700; }
.checkout-empty a:hover { background: #fa2d37; }

.checkout-cart-card > footer { padding: 25px 30px; border-top: 1px solid #e6e2dd; background: #f5f3f0; }
.checkout-cart-card > footer > div { display: flex; align-items: center; justify-content: space-between; }
.checkout-cart-card > footer span { color: #514c47; font-size: 13px; font-weight: 650; }
.checkout-cart-card > footer strong { font-family: Syne, sans-serif; font-size: 25px; }
.checkout-cart-card > footer p { margin: 12px 0 0; display: flex; align-items: center; gap: 8px; color: #746f69; font-size: 10px; }
.checkout-cart-card > footer i { width: 6px; height: 6px; flex: none; border-radius: 50%; background: #930f17; }
.checkout-cart-card > footer > a { width: max-content; margin-top: 18px; display: flex; align-items: center; gap: 8px; color: #5d5751; font-size: 10px; font-weight: 700; }
.checkout-cart-card > footer > a:hover { color: #930f17; }

.checkout-form-card > header { flex-direction: column; }
.checkout-form-card > header > span { margin-top: 12px; color: #6f6963; font-size: 12px; line-height: 20px; }
.checkout-assurances { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 7px; }
.checkout-assurances small { padding: 6px 9px; color: #6d6761; border: 1px solid #e2ded9; border-radius: 999px; background: #faf9f8; font: 500 8px/12px "DM Mono", monospace; text-transform: uppercase; letter-spacing: .08em; }
.checkout-form-card form { padding: 28px 30px 30px; }
.checkout-form-grid { display: grid; grid-template-columns: 1fr; gap: 18px; }
.checkout-form-grid label { display: flex; flex-direction: column; gap: 8px; }
.checkout-form-grid label > span { color: #4d4843; font-size: 11px; font-weight: 650; }
.checkout-form-grid input { width: 100%; height: 48px; padding: 0 14px; color: #25221f; border: 1px solid #d9d5d0; border-radius: 11px; background: #faf9f8; font-family: inherit; font-size: 13px; outline: 0; transition: border-color .2s, box-shadow .2s, background .2s; }
.checkout-form-grid input:focus { border-color: #a82a31; background: #fff; box-shadow: 0 0 0 3px rgba(147,15,23,.08); }
.checkout-submit { margin-top: 26px; padding-top: 23px; border-top: 1px solid #ece9e5; }
.checkout-submit p { margin: 0 0 17px; color: #746f69; font-size: 10px; line-height: 17px; }
.checkout-submit button { width: 100%; height: 52px; padding: 0 18px; display: flex; align-items: center; justify-content: center; gap: 12px; color: #fff; border: 0; border-radius: 12px; background: #e7000b; font-size: 13px; font-weight: 700; cursor: pointer; transition: background .2s, transform .2s; }
.checkout-submit button b { font-size: 17px; }
.checkout-submit button:hover:not(:disabled) { background: #fa2d37; transform: translateY(-1px); }
.checkout-submit button:disabled { color: #8d8882; background: #e5e2de; cursor: not-allowed; }
.checkout-submit > small { margin-top: 11px; display: block; color: #827c76; font-size: 9px; line-height: 15px; text-align: center; }

.checkout-success { max-width: 760px; margin: 0 auto; padding: 64px; text-align: center; border: 1px solid #e3e0dc; border-radius: 22px; background: #fff; }
.checkout-success > span { width: 72px; height: 72px; margin: 0 auto 26px; display: grid; place-items: center; color: #fff; border-radius: 50%; background: #930f17; }
.checkout-success svg { width: 34px; height: 34px; }
.checkout-success > p:first-of-type { color: #930f17; font: 500 10px/15px "DM Mono", monospace; letter-spacing: .28em; }
.checkout-success h2 { margin: 14px 0 24px; font-family: Syne, sans-serif; font-size: 38px; line-height: 43px; }
.checkout-success > div { padding: 16px; color: #625c56; border: 1px solid #e5e1dc; border-radius: 12px; background: #faf9f8; font-size: 12px; }
.checkout-success > div strong { color: #25211e; font-family: "DM Mono", monospace;  font-weight: 500;}
.checkout-success > p:last-of-type { max-width: 520px; margin: 22px auto 0; color: #6f6963; font-size: 13px; line-height: 22px; }
.checkout-success > a { height: 46px; margin: 28px auto 0; padding: 0 20px; display: inline-flex; align-items: center; gap: 12px; color: #fff; border-radius: 12px; background: #e7000b; font-size: 12px; font-weight: 700; }

@media (max-width: 1119px) {
  .checkout-layout { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  .checkout-hero { min-height: 330px; padding: 112px 20px 58px; }
  .checkout-hero h1 { font-size: 50px; }
  .checkout-hero-inner > div { flex-direction: column; gap: 5px; }
  .checkout-shell { width: calc(100% - 28px); padding: 38px 0 150px; }
  .checkout-cart-card,
  .checkout-form-card { border-radius: 15px; }
  .checkout-cart-card > header,
  .checkout-form-card > header { min-height: 116px; padding: 22px 20px; }
  .checkout-cart-card > header { align-items: flex-start; flex-direction: column; gap: 11px; }
  .checkout-cart-card h2,
  .checkout-form-card h2 { font-size: 25px; line-height: 30px; }
  .checkout-items { padding: 0 16px; }
  .checkout-item {
    min-height: 132px;
    padding: 17px 0;
    grid-template-columns: 64px minmax(0, 1fr) auto;
    grid-template-areas: "image copy remove" "image controls total";
    align-items: center;
    gap: 10px;
  }
  .checkout-item > img { grid-area: image; width: 64px; height: 64px; }
  .checkout-item-copy { grid-area: copy; }
  .checkout-item-copy strong { margin-top: 4px; font-size: 12px; line-height: 16px; }
  .checkout-item-copy span { margin-top: 4px; font-size: 10px; }
  .checkout-item-controls { grid-area: controls; }
  .checkout-item-controls > span { display: none; }
  .checkout-quantity-stepper { width: min(112px, 100%); grid-template-columns: 32px minmax(32px, 1fr) 32px; }
  .checkout-item-total { grid-area: total; font-size: 10px; }
  .checkout-item-remove { grid-area: remove; width: 30px; padding: 0; }
  .checkout-item-remove small { display: none; }
  .checkout-cart-card > footer,
  .checkout-form-card form { padding: 22px 20px; }
  .checkout-success { padding: 42px 22px; }
  .checkout-success h2 { font-size: 29px; line-height: 35px; }
}

@media (max-width: 360px) {
  .checkout-shell { width: calc(100% - 20px); }
  .checkout-items { padding: 0 14px; }
  .checkout-item { grid-template-columns: 58px minmax(0, 1fr) auto; gap: 8px; }
  .checkout-item > img { width: 58px; height: 58px; }
  .checkout-cart-card > header,
  .checkout-form-card > header,
  .checkout-cart-card > footer,
  .checkout-form-card form { padding-right: 17px; padding-left: 17px; }
}

.checkout-privacy-consent { margin-top: 22px; }

.checkout-item { grid-template-columns: 70px minmax(0, 1fr) 112px auto; }
@media (max-width: 640px) { .checkout-item { grid-template-columns: 60px minmax(0, 1fr) auto; } .checkout-item-controls { grid-column: 2; } .checkout-item-remove { grid-column: 3; grid-row: 1 / span 2; } }
