:root {
  --green: #BAFFAF;
  --black: #000;
  --white: #fff;
  --grey: #707070;
  --light-grey: #f3f3f3;
  --border: #dedede;
  --danger: #a40000;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--white);
}

body {
  margin: 0;
  color: var(--black);
  background: var(--white);
  font-family:
    Arial,
    Helvetica,
    sans-serif;
  -webkit-font-smoothing: antialiased;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
  opacity: .45;
}

.hidden {
  display: none !important;
}

.app {
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  min-height: 100vh;
}

.head {
  padding:
    max(24px, env(safe-area-inset-top))
    22px
    24px;
  background: var(--green);
  border-bottom: 3px solid var(--black);
}

.brand {
  font-size: 32px;
  line-height: 1;
  font-weight: 900;
  letter-spacing: -1.5px;
}

.strap {
  margin-top: 8px;
  font-size: 13px;
  font-weight: 700;
}

.intro {
  padding: 32px 22px 24px;
}

.kicker {
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 1.5px;
}

.intro h1 {
  margin: 0;
  max-width: 620px;
  font-size: clamp(30px, 7vw, 50px);
  line-height: .98;
  letter-spacing: -2px;
}

.subtitle {
  margin: 18px 0 0;
  max-width: 540px;
  color: var(--grey);
  font-size: 15px;
  line-height: 1.5;
}

.menu {
  padding: 0 22px;
}

.dish {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 12px;
  padding: 22px 0;
  border-top: 1px solid var(--border);
}

.dish:last-child {
  border-bottom: 1px solid var(--border);
}

.dish-number {
  font-size: 13px;
  font-weight: 900;
  padding-top: 4px;
}

.dish-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.dish-info {
  min-width: 0;
  flex: 1;
}

.dish-name {
  margin: 0;
  font-size: 20px;
  line-height: 1.15;
  letter-spacing: -.45px;
}

.dish-price {
  margin-top: 7px;
  font-size: 15px;
  font-weight: 800;
}

.stepper {
  flex: 0 0 auto;
  display: grid;
  grid-template-columns:
    42px
    42px
    42px;
  align-items: center;
  border: 2px solid var(--black);
}

.stepper button {
  width: 42px;
  height: 42px;
  padding: 0;
  border: 0;
  background: var(--white);
  color: var(--black);
  font-size: 25px;
  line-height: 1;
  font-weight: 500;
}

.stepper button:active {
  background: var(--green);
}

.qty {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-left: 2px solid var(--black);
  border-right: 2px solid var(--black);
  font-size: 16px;
  font-weight: 900;
}

.checkout {
  padding: 30px 22px 50px;
}

.summary {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 22px;
  margin-bottom: 30px;
  background: var(--green);
  border: 2px solid var(--black);
}

.summary > span {
  font-size: 14px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .8px;
}

.summary-totals {
  display: grid;
  text-align: right;
  gap: 5px;
}

.summary-totals strong {
  font-size: 20px;
}

.summary-price {
  font-size: 28px !important;
  line-height: 1;
}

form {
  display: grid;
  gap: 20px;
}

form label {
  display: grid;
  gap: 8px;
}

form label > span {
  font-size: 13px;
  font-weight: 900;
}

input {
  width: 100%;
  height: 54px;
  padding: 0 15px;
  border: 2px solid var(--black);
  border-radius: 0;
  outline: none;
  background: var(--white);
  color: var(--black);
  font-size: 16px;
}

input:focus {
  box-shadow: 0 0 0 3px var(--green);
}

.pickup-notice {
  padding: 18px;
  border-left: 5px solid var(--black);
  background: var(--light-grey);
}

.pickup-notice strong {
  display: block;
  margin-bottom: 7px;
  font-size: 14px;
}

.pickup-notice p {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
}

.confirm,
.secondary {
  min-height: 56px;
  padding: 14px 20px;
  border: 2px solid var(--black);
  border-radius: 0;
  font-size: 15px;
  font-weight: 900;
}

.confirm {
  background: var(--black);
  color: var(--white);
}

.confirm:not(:disabled):active {
  background: var(--green);
  color: var(--black);
}

.secondary {
  background: var(--white);
  color: var(--black);
}

.error {
  margin: 0;
  padding: 14px;
  border: 2px solid var(--danger);
  color: var(--danger);
  font-size: 14px;
  line-height: 1.4;
  font-weight: 700;
}

.closed {
  margin: 0 22px 28px;
  padding: 20px;
  border: 2px solid var(--black);
  background: var(--light-grey);
}

.closed strong {
  display: block;
  margin-bottom: 6px;
  font-size: 18px;
}

.closed p {
  margin: 0;
  color: var(--grey);
}

.success {
  margin: 20px 22px 50px;
  padding: 30px 22px;
  border: 2px solid var(--black);
}

.ok {
  display: inline-grid;
  place-items: center;
  min-width: 58px;
  height: 34px;
  margin-bottom: 20px;
  padding: 0 12px;
  background: var(--green);
  border: 2px solid var(--black);
  font-size: 13px;
  font-weight: 900;
}

.success h2 {
  margin: 0;
  font-size: 32px;
  letter-spacing: -1px;
}

.success > p {
  line-height: 1.5;
}

.success-summary {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 25px;
  padding: 18px;
  background: var(--green);
  border: 2px solid var(--black);
  font-size: 20px;
}

.order-code {
  margin: 18px 0;
  padding: 14px;
  background: var(--light-grey);
  font-family:
    Consolas,
    Monaco,
    monospace;
  font-size: 13px;
  overflow-wrap: anywhere;
}

.success-pickup {
  margin-bottom: 24px !important;
  color: var(--grey);
  font-size: 14px;
}

@media (max-width: 560px) {

  .head,
  .intro,
  .menu,
  .checkout {
    padding-left: 18px;
    padding-right: 18px;
  }

  .dish {
    grid-template-columns: 34px 1fr;
  }

  .dish-main {
    align-items: flex-start;
    flex-direction: column;
    gap: 15px;
  }

  .stepper {
    align-self: flex-end;
  }

  .summary {
    align-items: flex-start;
  }

  .summary-price {
    font-size: 24px !important;
  }

  .success {
    margin-left: 18px;
    margin-right: 18px;
  }

}