.delivery-flow {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: none;
  min-height: 100dvh;
  overflow: hidden;
  color: #f7f7f8;
  background: #16161a !important;
  background-image: none !important;
  font-family: "Avenir Next", Avenir, sans-serif;
}

.delivery-flow,
.delivery-flow * {
  box-sizing: border-box;
}

.delivery-flow.is-open {
  display: grid;
  grid-template-rows: 118px minmax(0, 1fr) 132px;
}

.delivery-header {
  display: grid;
  grid-template-columns: 58px 1fr 58px;
  align-items: center;
  padding: max(24px, env(safe-area-inset-top)) 36px 0;
}

.delivery-back {
  grid-column: 1;
  justify-self: start;
}

.delivery-close {
  grid-column: 3;
  justify-self: end;
}

.delivery-round {
  display: grid;
  width: 56px;
  height: 56px;
  padding: 0;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 50%;
  color: #f7f7f8;
  background: rgba(255, 255, 255, .025);
}

.delivery-round svg,
.delivery-icon svg,
.delivery-tick svg,
.delivery-success-icon svg {
  width: 25px;
  height: 25px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.delivery-progress {
  display: none;
  justify-self: center;
  gap: 8px;
}

.delivery-progress span {
  width: 34px;
  height: 3px;
  border-radius: 10px;
  background: rgba(255, 255, 255, .14);
}

.delivery-progress span.is-active {
  background: #ff5b27;
}

.delivery-content {
  position: fixed;
  top: calc(47.5vh - 27px);
  left: 50%;
  width: min(60vw, 768px);
  margin: 0;
  transform: translateX(-50%);
}

.delivery-step {
  display: none;
}

.delivery-step.is-active {
  display: block;
  animation: delivery-in .24s ease-out both;
}

.delivery-eyebrow {
  display: none;
}

.delivery-step h1 {
  margin: 0 0 27px;
  font: 500 30px/1.2 "Avenir Next", Avenir, sans-serif;
  letter-spacing: 0;
}

.delivery-intro {
  display: none;
}

.delivery-search {
  display: flex;
  height: 54px;
  align-items: center;
  gap: 13px;
  padding: 0;
  border-bottom: 2px solid #ff5b27;
  color: #aaa8ae;
}

.delivery-search svg {
  width: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

.delivery-search input {
  width: 100%;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  outline: 0 !important;
  color: #fff;
  background: transparent !important;
  box-shadow: none !important;
  font: 400 30px/1.25 "Avenir Next", Avenir, sans-serif;
}

.delivery-results {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  max-height: 170px;
  margin-top: 14px;
  overflow: hidden;
}

.delivery-matches {
  display: grid;
  gap: 9px;
  min-height: 0;
  overflow-y: auto;
}

.delivery-unknown-slot:not(:first-child) {
  margin-top: 9px;
}

.delivery-person {
  display: grid;
  grid-template-columns: 30px 1fr;
  min-height: 66px;
  align-items: center;
  gap: 14px;
  padding: 8px 18px;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 15px;
  color: #f7f7f8;
  background: rgba(255, 255, 255, .045);
  text-align: left;
}

.delivery-icon {
  display: none;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .15);
  border-radius: 12px;
}

.delivery-person-name {
  grid-column: 2;
  font-size: 17px;
  font-weight: 500;
}

.delivery-tick {
  display: grid;
  grid-column: 1;
  grid-row: 1;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .17);
  border-radius: 7px;
  color: transparent;
}

.delivery-person.is-selected {
  border-color: rgba(255, 91, 39, .7);
  background: rgba(255, 91, 39, .09);
}

.delivery-person.delivery-unknown {
  display: grid;
  width: 100%;
  min-height: 66px;
  margin: 0;
  padding: 8px 18px;
  justify-content: initial;
  border-color: rgba(255, 255, 255, .1);
  color: #f7f7f8;
  background: rgba(255, 255, 255, .045);
}

.delivery-person.delivery-unknown .delivery-tick {
  display: grid;
}

.delivery-person.delivery-unknown.is-selected {
  border-color: rgba(255, 91, 39, .45);
  color: #fff;
  background: rgba(255, 91, 39, .08);
}

.delivery-person.is-selected .delivery-tick {
  border-color: #ff5b27;
  color: #fff;
  background: #ff5b27;
}

.delivery-tick svg {
  width: 17px;
  height: 17px;
}

.delivery-number span {
  display: none;
}

.delivery-number input {
  width: 100%;
  height: 72px !important;
  padding: 6px 0 14px !important;
  border: 0 !important;
  border-bottom: 2px solid #ff5b27 !important;
  border-radius: 0 !important;
  outline: 0 !important;
  color: #fff !important;
  background: transparent !important;
  box-shadow: none !important;
  font: 400 30px/1.25 "Avenir Next", Avenir, sans-serif !important;
}

.delivery-footer {
  position: relative;
  z-index: 3;
  grid-row: 3;
  display: flex;
  width: min(60vw, 768px);
  margin: 0 auto;
  justify-content: flex-end;
  align-items: flex-start;
}

.delivery-continue {
  min-width: 176px;
  min-height: 58px;
  padding: 0 25px;
  border: 0;
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(135deg, #ff6a32, #f45122);
  box-shadow: 0 14px 34px rgba(244, 81, 34, .24);
  font: 700 18px/1 "Avenir Next", Avenir, sans-serif;
  font-weight: 700;
}

.delivery-continue:disabled {
  opacity: .28;
  box-shadow: none;
}

.delivery-complete-step {
  position: fixed !important;
  inset: 0 !important;
  display: none !important;
  width: 100vw !important;
  height: 100dvh !important;
  padding: 0 40px !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  transform: translateY(82px) !important;
  text-align: center;
}

.delivery-flow[data-step="3"] {
  grid-template-rows: 0 minmax(0, 1fr) 0;
}

.delivery-flow[data-step="3"] .delivery-header,
.delivery-flow[data-step="3"] .delivery-footer {
  display: none;
}

.delivery-flow[data-step="3"] .delivery-content {
  width: 100vw !important;
  height: 100dvh !important;
  margin: 0 !important;
  transform: none !important;
}

.delivery-flow[data-step="3"] .delivery-complete-step.is-active {
  display: flex !important;
}

.delivery-complete-logo {
  position: fixed;
  top: 15%;
  left: 50%;
  width: min(52vw, 670px);
  transform: translateX(-50%);
}

.delivery-complete-logo img {
  display: block;
  width: 100%;
  height: auto;
}

.delivery-complete-step h1 {
  margin: 24px 0 0 !important;
  font-size: 48px !important;
  font-weight: 400 !important;
  letter-spacing: -.025em !important;
}

.delivery-complete-step .delivery-intro {
  display: block !important;
  margin: 24px 0 0 !important;
  color: #a0a0a7 !important;
  font-size: 23px !important;
}

.delivery-complete-step .delivery-success-icon {
  flex: 0 0 auto;
  margin: 0 auto !important;
}

.delivery-success-icon {
  display: grid;
  width: 70px;
  height: 70px;
  place-items: center;
  border: 5px solid #f15a29;
  border-radius: 50%;
  color: #f15a29;
  font-size: 43px;
}

@keyframes delivery-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

@media (max-width: 700px) {
  .delivery-flow.is-open { grid-template-rows: 90px minmax(0, 1fr) 96px; }
  .delivery-header { padding-inline: 20px; }
  .delivery-content, .delivery-footer { width: calc(100vw - 80px); }
  .delivery-content { top: calc(42vh - 27px); }
  .delivery-results { max-height: 170px; }
}
