.checkout-start-body {
  min-height: 100vh;
}

.checkout-start-page {
  display: grid;
  min-height: calc(100svh - 110px);
  padding: clamp(38px, 6vw, 90px) 20px;
  place-items: start center;
  background:
    linear-gradient(rgba(255, 253, 250, 0.16), rgba(255, 239, 196, 0.2)),
    url("../assets/images/menu/glass-effect.png") center / cover fixed no-repeat;
}

.checkout-gate {
  position: relative;
  width: min(100%, 920px);
  margin-top: clamp(10px, 4vw, 55px);
  padding: clamp(38px, 6vw, 74px);
  border: 6px solid #6a412f;
  background: #ffe3a5;
  box-shadow: 12px 12px 0 rgba(56, 39, 28, 0.27);
  color: #2c241d;
}

.checkout-gate::before {
  position: absolute;
  inset: 9px;
  border: 3px solid rgba(180, 113, 61, 0.55);
  content: "";
  pointer-events: none;
}

.checkout-gate-close {
  position: absolute;
  z-index: 2;
  top: 20px;
  right: 20px;
}

.checkout-gate-kicker {
  margin: 0 0 10px;
  color: #8d4e38;
  font-family: var(--display-font);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.checkout-gate h1 {
  max-width: 720px;
  margin: 0;
  padding-right: 60px;
  color: #274333;
  font-family: var(--display-font);
  font-size: clamp(37px, 5vw, 62px);
  font-weight: 600;
  line-height: 1;
}

.checkout-gate-intro {
  max-width: 690px;
  margin: 18px 0 34px;
  font-family: var(--readable-font);
  font-size: clamp(17px, 1.6vw, 21px);
  line-height: 1.55;
}

.checkout-gate-form {
  position: relative;
  z-index: 1;
}

.checkout-gate-fields {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: end;
  gap: 14px;
}

.checkout-gate-fields label {
  display: grid;
  gap: 9px;
  min-width: 0;
  color: #274333;
  font-family: var(--readable-font);
  font-size: 17px;
  font-weight: 700;
}

.checkout-gate-fields input {
  width: 100%;
  min-width: 0;
  min-height: 58px;
  padding: 13px 15px;
  border: 3px solid #ad9e8b;
  border-radius: 9px;
  background: #fffdfa;
  color: #29231e;
  font: 18px/1.2 var(--readable-font);
}

.checkout-gate-fields input::placeholder { color: #78746d; opacity: 1; }
.checkout-gate-fields input[aria-invalid="true"] { border-color: #9b2c22; }
.checkout-gate-fields input:focus-visible,
.checkout-gate-consent input:focus-visible,
.checkout-gate-button:focus-visible { outline: 4px solid #176b87; outline-offset: 4px; }

.checkout-gate-or {
  padding-bottom: 19px;
  color: #6f7169;
  font-family: var(--readable-font);
  font-size: 15px;
}

.checkout-gate-consent {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 13px;
  margin-top: 24px;
  font-family: var(--readable-font);
  font-size: 16px;
  line-height: 1.5;
}

.checkout-gate-consent input { width: 24px; height: 24px; margin: 1px 0 0; accent-color: #274333; }
.checkout-gate-consent a { color: #274333; font-weight: 700; text-underline-offset: 3px; }
.checkout-gate-error { margin: 18px 0 0; color: #8e2018; font-family: var(--readable-font); font-weight: 700; }
.checkout-gate-status { min-height: 1.5em; margin: 12px 0 0; color: #274333; font-family: var(--readable-font); }
.checkout-honeypot { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.checkout-gate-button {
  display: grid;
  width: min(100%, 360px);
  min-height: 62px;
  margin: 10px auto 0;
  padding: 12px 24px;
  place-items: center;
  border: 5px solid #4f3025;
  border-radius: 8px;
  background: #a85e42;
  box-shadow: inset 0 0 0 4px #e68766, 7px 7px 0 #402d35;
  color: #fff8e8;
  font: 600 clamp(23px, 2.5vw, 31px)/1 var(--display-font);
  cursor: pointer;
}

.checkout-gate-button:hover { transform: translate(-2px, -2px); box-shadow: inset 0 0 0 4px #f0a07f, 9px 9px 0 #402d35; }
.checkout-gate-button:disabled { cursor: wait; filter: grayscale(0.55); opacity: 0.75; }

@media (max-width: 700px) {
  .checkout-start-page { min-height: calc(100svh - 84px); padding: 24px 12px 52px; background-attachment: scroll; }
  .checkout-gate { margin-top: 0; padding: 68px 25px 36px; border-width: 4px; box-shadow: 7px 7px 0 rgba(56, 39, 28, 0.27); }
  .checkout-gate-close { top: 16px; right: 16px; }
  .checkout-gate h1 { padding-right: 0; font-size: clamp(34px, 10vw, 46px); }
  .checkout-gate-intro { margin-bottom: 27px; font-size: 17px; }
  .checkout-gate-fields { grid-template-columns: 1fr; gap: 10px; }
  .checkout-gate-or { padding: 0; text-align: center; }
  .checkout-gate-consent { font-size: 15px; }
}
