/* Order composition. Product photographs and their crops stay in index.css. */
.order-layout {
  padding-top: 42px;
  padding-bottom: 48px;
}
.order-welcome {
  padding-bottom: 48px;
  border-bottom: 1px solid var(--line);
}
.order-welcome h1 {
  margin-top: 12px;
}
.order-welcome-message {
  margin-top: 22px;
  color: var(--bronze);
  font-size: 20px;
  font-weight: 500;
}
.order-welcome-copy {
  margin-top: 4px;
  color: var(--muted);
}
.order-welcome .button {
  margin-top: 22px;
}
.order-favourites-heading {
  padding-block: 28px 32px;
}
.order-favourites-heading h2 {
  margin-top: 14px;
  font-size: 44px;
}
.order-favourites-heading > p:last-child {
  margin-top: 20px;
  color: var(--muted);
}
.empty-cart {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  column-gap: 18px;
  row-gap: 6px;
  align-items: start;
  text-align: left;
}
.empty-cart svg {
  grid-column: 1;
  grid-row: 1 / span 2;
  width: 38px;
  height: 38px;
  margin: 0;
}
.empty-cart h3 {
  grid-column: 2;
  margin: 0;
  font: 600 18px var(--sans);
}
.empty-cart p {
  grid-column: 2;
  max-width: none;
  margin: 0;
}
.empty-cart .button {
  grid-column: 1 / -1;
  width: 100%;
  margin-top: 24px;
  padding-inline: 12px;
  justify-content: center;
}
.order-moment {
  position: relative;
  isolation: isolate;
  min-height: 460px;
  overflow: hidden;
}
.order-moment-inner {
  min-height: inherit;
  display: flex;
  align-items: center;
  border-top: 1px solid var(--line);
}
.order-moment-scene {
  position: absolute;
  z-index: -2;
  inset-block: 0;
  /* Let the artwork extend 120px beyond the content column, within the viewport. */
  right: max(0px, calc((100% - 1200px) / 2 - 120px));
  width: 960px;
  max-width: 100%;
  display: flex;
  justify-content: flex-end;
  align-items: center;
}
.order-moment-scene img {
  width: auto;
  height: 100%;
  max-width: none;
  /* Show the complete photograph, including the book on the right. */
  object-fit: contain;
  object-position: center;
  mask-image: linear-gradient(90deg, transparent, #000 18%, #000 88%, transparent);
}
.order-moment::before {
  content: '';
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(90deg, var(--cream) 0%, var(--cream) calc(50% - 235px), #f8f5ee00 calc(50% - 60px));
}
.order-moment-copy {
  width: 440px;
  max-width: 48%;
  padding-block: 28px;
}
.order-moment-copy h2 {
  margin-top: 16px;
  font-size: 44px;
}
.order-moment-copy h2 > span {
  white-space: nowrap;
}
.order-moment-copy h2 em {
  display: block;
}
.order-moment-copy > p:not(.eyebrow) {
  max-width: 360px;
  margin-top: 20px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
}
.order-moment-copy .button {
  margin-top: 22px;
}
.order-bottom-note {
  margin-top: 0;
}
.order-summary-column {
  align-self: stretch;
  min-width: 0;
}
.has-order .order-welcome {
  padding-bottom: 0;
  border-bottom: 0;
}
.has-order .order-welcome-copy {
  margin-top: 12px;
}
.ordered-products {
  min-width: 0;
  margin-top: 24px;
}
.ordered-card .order-card-description {
  min-height: 22px;
}
.ordered-card .order-card-bottom {
  margin-top: 14px;
  flex-wrap: wrap;
}
.ordered-card .quantity-control button {
  width: 36px;
  height: 36px;
}
.ordered-card .quantity-control > span {
  min-width: 28px;
  font-size: 14px;
}
.ordered-card-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
}
.ordered-card-actions > span {
  color: var(--line);
}
.ordered-card-actions .remove-item {
  padding: 3px 0;
  font-size: 14px;
}
.order-add-more {
  display: inline-block;
  margin-top: 28px;
}
.has-order .order-favourites {
  margin-top: 36px;
  border-top: 1px solid var(--line);
}
.has-order .order-favourites-heading h2 {
  margin-top: 0;
}
.has-order .order-favourites-heading > p {
  display: none;
}
.order-card.is-added {
  position: relative;
  background: #efede8;
}
.order-card.is-added > img {
  filter: grayscale(0.65);
  opacity: 0.48;
}
.order-card.is-added .order-card-content {
  opacity: 0.6;
}
.favourite-added-label {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 7px 12px;
  border: 1px solid rgb(119 110 100 / 18%);
  border-radius: 3px;
  background: #e1d3bf;
  color: #5f5448;
  white-space: nowrap;
  font-size: 12px;
  font-weight: 500;
}
.order-card.is-added .add-button {
  font-size: 12px;
  background: transparent;
  color: var(--muted);
  border-color: var(--line);
}
@media (min-width: 701px) {
  .has-order .order-catalog {
    display: contents;
  }
  .has-order .order-layout {
    row-gap: 24px;
  }
  .has-order .order-welcome {
    grid-column: 1;
    grid-row: 1;
  }
  .has-order .ordered-products {
    grid-column: 1;
    grid-row: 2;
    margin-top: 0;
  }
  .has-order .order-summary-column {
    grid-column: 2;
    grid-row: 1 / span 2;
  }
  .has-order .order-favourites {
    grid-column: 1 / -1;
    grid-row: 3;
    margin-top: 12px;
  }
  .has-order .order-favourites .order-product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 900px) {
  .order-moment-scene {
    right: 0;
    max-width: none;
    width: 780px;
  }
  .order-moment-copy {
    max-width: 49%;
  }
  .order-moment::before {
    background: linear-gradient(90deg, var(--cream) 0%, var(--cream) 32%, #f8f5ee00 62%);
  }
}
@media (max-width: 700px) {
  .mobile-cart-link.is-over-summary {
    visibility: hidden;
    pointer-events: none;
  }
  .mobile-cart-link {
    background: var(--gold);
    color: var(--espresso);
    border-color: #b9946e;
    box-shadow: 0 5px 20px rgb(46 33 25 / 14%);
  }
  .mobile-cart-link small {
    color: #594530;
  }
  .mobile-cart-link:hover {
    background: #ebcfad;
  }
  .favourite-added-label {
    top: 8px;
    left: 8px;
    padding: 6px 9px;
    font-size: 12px;
  }
  .order-layout {
    padding-top: 30px;
    padding-bottom: 32px;
  }
  .order-welcome {
    padding-bottom: 32px;
  }
  .order-welcome h1 {
    font-size: 53px;
  }
  .order-favourites-heading {
    padding-block: 26px;
  }
  .order-moment {
    min-height: 0;
    display: flex;
    flex-direction: column-reverse;
    align-items: stretch;
  }
  .order-moment::before {
    display: none;
  }
  .order-moment-scene {
    position: static;
    width: 100%;
    max-width: 100%;
  }
  .order-moment-scene img {
    width: 100%;
    height: auto;
    mask-image: linear-gradient(90deg, transparent, #000 12%, #000 90%, transparent);
  }
  .order-moment-copy {
    width: 100%;
    max-width: none;
    padding: 32px 0;
  }
  .order-moment-copy > p:not(.eyebrow) {
    max-width: none;
    font-size: 16px;
    margin-top: 20px;
  }
}
