.delivery-page .order-hero {
  grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
  overflow: hidden;
}

.delivery-page .order-hero-copy {
  align-self: center;
  padding: clamp(30px, 4vw, 56px);
}

.delivery-page .order-hero-copy .eyebrow {
  color: #bcc0c6;
}

.order-hero-art {
  position: relative;
  min-height: 345px;
  margin: 0;
  background: linear-gradient(90deg, #202329, #2b2d30 36%);
}

.order-hero-art img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  padding: 8px 14px 0;
  object-fit: contain;
  object-position: center bottom;
}

.order-guide-jump {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  min-height: 44px;
  padding: 0 6px;
  color: #f0f1f2;
  font-size: 13px;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.order-guide-jump:hover {
  color: #fff;
  text-decoration-thickness: 2px;
}

.delivery-page .order-how {
  padding: 42px 0 0;
}

.delivery-page .order-steps {
  padding: 0;
  margin: 0;
  list-style: none;
}

.delivery-page .order-step {
  padding: 20px 22px;
  border-top: 1px solid #e1e3e6;
}

.order-step-icon {
  display: inline-grid;
  width: 36px;
  height: 36px;
  place-items: center;
  margin-bottom: 12px;
  border-radius: 8px;
  background: #f9ebe9;
  color: #a62e21;
}

.order-step-icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.delivery-page .order-contact {
  align-items: stretch;
  gap: 18px 24px;
  padding: 26px 28px;
  margin: 30px 0;
}

.delivery-page .order-contact h2 {
  grid-column: 1 / -1;
  margin: 0;
}

.order-contact .order-actions {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  align-items: stretch;
  justify-self: start;
}

.order-contact .order-actions .button {
  justify-content: center;
  min-height: 50px;
}

.order-carriers {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.order-carriers li {
  display: grid;
  justify-items: center;
  align-content: start;
  gap: 7px;
  padding: 12px 6px;
  border: 1px solid #e1e3e6;
  border-radius: 8px;
  background: #fff;
  color: #24272c;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
}

.order-carriers img {
  display: block;
  width: min(100%, 110px);
  height: 32px;
  object-fit: contain;
}

#delivery-guide {
  scroll-margin-top: 24px;
}

.delivery-page .order-guide {
  max-width: 1040px;
}

.delivery-page .order-guide .order-guide-step {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 330px);
  align-items: center;
  gap: 24px;
  padding: 20px;
  margin: 16px 0;
  border: 1px solid #e1e3e6;
  background: #fff;
  font-size: inherit;
  font-weight: normal;
  letter-spacing: normal;
}

.order-guide-step > div:first-child > div:first-child {
  display: inline-grid;
  width: 30px;
  height: 30px;
  place-items: center;
  margin-bottom: 8px;
  border-radius: 50%;
  background: #c53326;
  color: #fff;
  font-size: 14px;
  font-weight: bold;
}

.order-guide-step div:has(> p),
.order-guide-step div:has(> ul) {
  padding: 12px 14px;
  margin: 12px 0 0;
  border: 1px solid #e1e3e6;
  background: #f6f7f8;
  font-size: 13px;
}

.order-guide .order-image-link {
  display: grid;
  width: fit-content;
  max-width: 100%;
  gap: 4px;
  margin: 14px auto;
  border-radius: 5px;
  color: #ad3022;
  cursor: zoom-in;
}

.order-guide-step .order-image-link {
  width: 100%;
  margin: 0;
}

.order-guide .order-image-link img {
  display: block;
  width: 100%;
  height: auto;
  max-height: none;
  margin: 0;
  border-radius: 5px;
}

.order-guide .order-image-label {
  display: block;
  justify-self: start;
  padding: 3px 0;
  font-size: 12px;
  line-height: 1.4;
  font-weight: 700;
  letter-spacing: normal;
}

.order-guide .order-image-link:focus-visible {
  outline: 2px solid #a82b1d;
}

@media (max-width: 960px) {
  .delivery-page .order-contact {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 800px) {
  .delivery-page .order-hero {
    grid-template-columns: minmax(0, 1fr);
    border-left: 4px solid #d63a29;
  }

  .delivery-page .order-hero-copy {
    border-left: 0;
  }

  .order-hero-art {
    order: -1;
    min-height: 0;
    aspect-ratio: 16 / 8;
    background: linear-gradient(180deg, #2b2d30, #202329);
  }

  .delivery-page .order-steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
  }

  .delivery-page .order-step {
    padding: 16px;
  }
}

@media (max-width: 600px) {
  .delivery-page .order-hero-copy {
    padding: 24px 20px;
  }

  .delivery-page .order-hero .order-actions {
    display: flex;
    gap: 6px 12px;
  }

  .delivery-page .order-hero .order-actions .button {
    width: auto;
    gap: 14px;
  }

  .delivery-page .order-hero h1 {
    margin: 12px 0 14px;
  }

  .delivery-page .order-hero-copy > p {
    margin-bottom: 16px;
  }

  .delivery-page .order-how {
    padding-top: 28px;
  }

  .delivery-page .order-steps,
  .delivery-page .order-guide .order-guide-step {
    grid-template-columns: minmax(0, 1fr);
  }

  .delivery-page .order-step {
    display: grid;
    grid-template-columns: 32px minmax(0, 1fr);
    align-items: center;
    gap: 4px 12px;
  }

  .delivery-page .order-step-icon {
    width: 32px;
    height: 32px;
    margin: 0;
  }

  .delivery-page .order-step h3 {
    margin: 0;
    font-size: 17px;
  }

  .delivery-page .order-step p {
    grid-column: 2;
  }

  .delivery-page .order-contact {
    gap: 16px;
    padding: 20px;
  }

  .order-carriers {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .order-contact .order-actions {
    grid-auto-flow: row;
    grid-auto-rows: 1fr;
    justify-self: stretch;
  }

  .delivery-page .order-guide .order-guide-step {
    gap: 14px;
    padding: 16px;
  }
}

.order-image-dialog {
  width: min(1200px, calc(100% - 24px));
  height: min(890px, calc(100% - 30px));
  height: min(890px, calc(100dvh - 30px));
  max-width: none;
  max-height: none;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: #fff;
  color: #22252b;
}

.order-image-dialog:not([open]) {
  display: none;
}

.order-image-dialog[open] {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
}

.order-image-dialog::backdrop {
  background: rgb(20 22 27 / 80%);
}

.order-image-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
  padding: 10px 14px;
  border-bottom: 1px solid #e1e3e6;
}

.order-image-toolbar h2 {
  min-width: 0;
  margin: 0;
  font-size: 1rem;
  overflow-wrap: anywhere;
}

.order-image-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.order-image-controls button {
  min-height: 44px;
  padding: 6px 10px;
  border: 1px solid #a1a5ae;
  border-radius: 4px;
  background: #fff;
  color: #22252b;
  font-weight: 700;
}

.order-image-controls [aria-pressed="true"],
.order-image-controls button:hover {
  background: #22252b;
  color: #fff;
}

.order-image-view {
  min-width: 0;
  overflow: auto;
  overscroll-behavior: contain;
  background: #f3f4f5;
}

.order-image-view:focus-visible {
  outline: 2px solid #a82b1d;
  outline-offset: -3px;
}

.order-image-view img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.order-image-view.is-original-size img {
  width: auto;
  height: auto;
  max-width: none;
}
