#order-form.delivery-modal {
  width: min(1080px, calc(100vw - 32px));
}

.checkout-review {
  margin-top: 18px;
  padding: 18px;
  border: 1px solid #cfe0da;
  border-radius: 14px;
  background: #f7faf9;
}

.checkout-review-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 14px;
}

.checkout-review-head h4,
.delivery-section-heading h4 {
  margin: 2px 0 3px;
  color: #102035;
  font-size: 18px;
  line-height: 1.25;
}

.checkout-review-head p,
.delivery-section-heading p {
  margin: 0;
  color: #687586;
  font-size: 13px;
}

.checkout-section-kicker {
  color: #287458;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .1em;
}

#checkout-review-add {
  min-height: 42px;
  padding: 9px 14px;
  border: 1px solid #b9d6ca;
  border-radius: 9px;
  background: #edf7f2;
  color: #15543e;
  font-weight: 700;
  white-space: nowrap;
}

#checkout-review-add:hover,
#checkout-review-add:focus-visible {
  border-color: #4c9177;
  background: #dcefe7;
}

.checkout-review-table {
  overflow: hidden;
  border: 1px solid #dce6e2;
  border-radius: 11px;
  background: #fff;
}

.checkout-review-columns,
.checkout-review-row {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) 150px 100px 145px 74px;
  gap: 12px;
  align-items: center;
}

.checkout-review-columns {
  padding: 10px 14px;
  background: #edf3f0;
  color: #52675f;
  font-size: 11px;
  font-weight: 800;
}

.checkout-review-row {
  min-height: 92px;
  padding: 13px 14px;
  border-top: 1px solid #e7edeb;
}

.checkout-review-columns + #checkout-review-items .checkout-review-row:first-child {
  border-top: 0;
}

.checkout-review-product,
.checkout-review-price,
.checkout-review-value,
.checkout-review-readonly-quantity {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.checkout-review-product strong {
  overflow-wrap: anywhere;
  color: #102035;
  font-size: 14px;
  line-height: 1.35;
}

.checkout-review-product > small,
.checkout-review-price small {
  color: #6c7b75;
  font-size: 11px;
  line-height: 1.35;
}

.checkout-review-product .checkout-review-promotion {
  color: #176b49;
  font-weight: 700;
}

.checkout-review-price strong,
.checkout-review-value strong,
.checkout-review-readonly-quantity strong {
  overflow-wrap: anywhere;
  color: #102035;
  font-size: 14px;
}

.checkout-review-quantity {
  display: grid;
  gap: 4px;
  margin: 0;
}

.checkout-review-quantity > span,
.checkout-review-mobile-label {
  display: none;
  color: #687870;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.checkout-review-quantity input {
  width: 82px;
  min-height: 44px;
  margin: 0;
  padding: 8px 9px;
  border: 1px solid #bfd1ca;
  border-radius: 8px;
  background: #fff;
  color: #102035;
  font: inherit;
  font-weight: 700;
  text-align: center;
}

.checkout-review-quantity input:focus-visible {
  outline: 3px solid rgba(41, 116, 87, .23);
  outline-offset: 1px;
  border-color: #277657;
}

.checkout-review-action {
  display: flex;
  justify-content: flex-end;
}

.checkout-review-action button {
  min-height: 40px;
  padding: 8px 10px;
  border: 1px solid #eccbc6;
  border-radius: 8px;
  background: #fff4f2;
  color: #a53b2b;
  font-weight: 700;
}

.checkout-review-action button:hover,
.checkout-review-action button:focus-visible {
  border-color: #cf6b5c;
  background: #ffe9e5;
}

.checkout-review-reward {
  background: #f0f8f3;
}

.checkout-review-regular + .checkout-review-discount {
  border-top-style: dashed;
}

.checkout-review-group {
  background: #f9fbfa;
}

.checkout-review-group + .checkout-review-breakdown {
  border-top-style: dashed;
}

.checkout-review-breakdown .checkout-review-product {
  padding-left: 12px;
  border-left: 3px solid #bad8ca;
}

.checkout-review-line-kind {
  color: #48665c !important;
  font-weight: 700;
}

.checkout-review-discount .checkout-review-product strong {
  font-size: 13px;
}

.checkout-review-split-label {
  color: #48665c !important;
  font-size: 12px !important;
}

.checkout-review-gift-label {
  padding: 5px 8px;
  border-radius: 999px;
  background: #dff1e6;
  color: #176b49;
  font-size: 11px;
  font-weight: 800;
}

.checkout-review-status {
  min-height: 0;
  margin: 0;
}

.delivery-section-heading {
  margin: 22px 0 0;
  padding-top: 18px;
  border-top: 1px solid #e1e9e6;
}

#order-form .address-book {
  margin-top: 10px;
}

@media (max-width: 820px) {
  .checkout-review {
    padding: 14px;
  }

  .checkout-review-columns {
    display: none;
  }

  .checkout-review-table {
    border: 0;
    background: transparent;
  }

  .checkout-review-row {
    grid-template-columns: minmax(0, 1fr) 92px 92px;
    grid-template-areas:
      "product product action"
      "price quantity value";
    gap: 12px 10px;
    margin-top: 10px;
    padding: 13px;
    border: 1px solid #dce6e2;
    border-radius: 10px;
    background: #fff;
  }

  .checkout-review-row:first-child {
    margin-top: 0;
  }

  .checkout-review-reward {
    background: #f0f8f3;
  }

  .checkout-review-product { grid-area: product; }
  .checkout-review-price { grid-area: price; }
  .checkout-review-quantity,
  .checkout-review-readonly-quantity { grid-area: quantity; }
  .checkout-review-value { grid-area: value; }
  .checkout-review-action { grid-area: action; align-self: start; }

  .checkout-review-quantity > span,
  .checkout-review-mobile-label {
    display: block;
  }

  .checkout-review-quantity input {
    width: 82px;
  }
}

@media (max-width: 520px) {
  .checkout-review-head {
    display: grid;
  }

  #checkout-review-add {
    width: 100%;
  }

  .checkout-review-row {
    grid-template-columns: minmax(0, 1fr) minmax(74px, .7fr) minmax(86px, .8fr);
  }

  .checkout-review-action button {
    min-width: 58px;
  }
}

@media (max-width: 380px) {
  .checkout-review-row {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-areas:
      "product action"
      "price value"
      "quantity quantity";
  }

  .checkout-review-quantity input {
    width: 100%;
    max-width: 110px;
  }
}
