:root {
  color: #1a1b1d;
  background: #f7f5f0;
  font-family: Arial, Helvetica, sans-serif;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  min-height: 100vh;
  background: #f7f5f0;
}
button,
input {
  font: inherit;
}
button {
  cursor: pointer;
}
a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 4px solid #225fd1;
  outline-offset: 3px;
}
header {
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 4vw;
  border-bottom: 1px solid #d5d0c8;
}
.logo {
  color: inherit;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: -0.04em;
  font-size: 20px;
}
.logo span {
  font-size: 8px;
  vertical-align: top;
}
nav {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 12px;
}
nav a {
  color: inherit;
  text-decoration: none;
}
nav button {
  border: 0;
  background: #1b1d1f;
  color: white;
  padding: 10px 14px;
}
main {
  min-height: calc(100vh - 70px);
  display: grid;
  grid-template-columns: 1.5fr 0.8fr;
}
.summary {
  padding: 7vh 7vw;
}
.step,
.cart > p,
.dialog-step {
  font: 10px monospace;
  letter-spacing: 0.12em;
  color: #73736e;
}
h1 {
  font-size: clamp(34px, 5vw, 70px);
  line-height: 0.94;
  letter-spacing: -0.055em;
  margin: 12px 0 5vh;
  max-width: 560px;
}
.delivery-card {
  display: grid;
  grid-template-columns: 42px 1fr auto;
  align-items: center;
  gap: 16px;
  border-top: 1px solid #aaa8a1;
  border-bottom: 1px solid #aaa8a1;
  padding: 18px 0;
}
.delivery-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #e5d4bd;
}
.delivery-card strong,
.delivery-card span {
  display: block;
}
.delivery-card span {
  font-size: 12px;
  color: #74736e;
  margin-top: 4px;
}
.delivery-card button {
  border: 0;
  border-bottom: 1px solid currentColor;
  background: transparent;
  padding: 5px 0;
  font-size: 12px;
}
form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 30px;
}
label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
input {
  display: block;
  width: 100%;
  border: 0;
  border-bottom: 1px solid #aaa8a1;
  background: transparent;
  padding: 12px 0;
  text-transform: none;
}
.continue {
  grid-column: 1 / -1;
  margin-top: 12px;
  padding: 15px;
  border: 0;
  background: #202225;
  color: white;
}
.cart {
  background: #dad8cf;
  padding: 7vh 3vw;
}
.product {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 14px;
  padding: 22px 0;
  border-bottom: 1px solid #aaa8a1;
}
.product-art {
  height: 94px;
  background: linear-gradient(145deg, #8e775f 0 44%, #a7937d 45% 65%, #705c49 66%);
}
.product span,
.product strong {
  display: block;
  font-size: 12px;
  margin-bottom: 7px;
}
.product span {
  color: #65645f;
}
dl div {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  font-size: 12px;
}
dd {
  margin: 0;
}
.total {
  border-top: 1px solid #aaa8a1;
  margin-top: 10px;
  padding-top: 16px;
  font-weight: bold;
}
#scrim {
  position: fixed;
  inset: 0;
  background: #14151699;
  z-index: 4;
}
#delivery-dialog {
  position: fixed;
  z-index: 5;
  width: min(430px, calc(100% - 32px));
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  padding: 32px;
  background: #f8f6f1;
  border: 0;
  box-shadow: 0 20px 60px #0005;
}
#delivery-dialog h2 {
  font-size: 30px;
  letter-spacing: -0.04em;
  margin: 8px 0 24px;
}
.option {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-align: left;
  border: 1px solid #aaa8a1;
  background: transparent;
  padding: 15px;
  margin-bottom: 9px;
}
.option.is-selected {
  border: 2px solid #225fd1;
  padding: 14px;
}
.option strong,
.option small {
  display: block;
}
.option small {
  color: #6c6c68;
  margin-top: 3px;
}
.apply {
  width: 100%;
  border: 0;
  background: #1d1f21;
  color: white;
  padding: 14px;
  margin-top: 12px;
}
.close {
  position: absolute;
  right: 12px;
  top: 10px;
  border: 0;
  background: transparent;
  font-size: 24px;
}

@media (max-width: 640px) {
  header {
    padding: 0 16px;
  }
  nav a {
    display: none;
  }
  main {
    display: block;
  }
  .summary {
    padding: 36px 22px;
  }
  .cart {
    display: none;
  }
  .delivery-card {
    grid-template-columns: 36px 1fr;
  }
  .delivery-card button {
    grid-column: 2;
    justify-self: start;
  }
  form {
    grid-template-columns: 1fr;
  }
  #delivery-dialog {
    padding: 26px 20px;
  }
}
