.cart-empty, .cart-contents { border-radius: 16px; min-width: 0; }
.cart-empty {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  container-type: inline-size;
  display: flex;
  align-items: center;
  min-height: clamp(230px, 20vw, 290px);
  background: #e9e0f5;
  color: #32223f;
}
.cart-empty-copy { position: relative; z-index: 1; width: 59%; padding: clamp(20px, 4.6cqw, 42px); padding-right: 0; }
.cart-empty-copy h2 {
  margin: 0;
  max-width: 9.5em;
  font: 800 clamp(1.75rem, 5.6cqw, 3rem)/1.02 var(--display);
  letter-spacing: -.055em;
  text-wrap: balance;
}
.cart-empty-copy p { margin: 10px 0 22px; color: #584566; font-size: clamp(.9rem, 2.3cqw, 1rem); }
.cart-browse-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: .72rem .98rem;
  min-height: 42px;
  color: #fffaf2;
  background: #34223f;
  border-radius: 8px;
  text-decoration: none;
  font-size: .88rem;
  font-weight: 700;
}
.cart-browse-button:hover { background: #563181; }
.cart-browse-button .ico { width: 17px; height: 17px; }

/* A paper book bag holds the actual series covers. All dimensions follow the size of the panel. */
.cart-art { position: absolute; inset: 0 0 0 55%; overflow: hidden; font-size: clamp(.55rem, 2.2cqw, 1.1rem); pointer-events: none; }
.cart-art-orbit { position: absolute; border-radius: 50%; height: 87%; aspect-ratio: 1; left: 3%; top: 14%; background: #d7c6eb; }
.cart-art-orbit::before {
  content: ""; position: absolute; width: 55%; height: 51%; left: 66%; top: -5%;
  background-image: radial-gradient(#9471ac 1px, transparent 1.5px); background-size: 7px 7px;
  opacity: .52; transform: rotate(9deg); border-radius: 50%;
}
.cart-tote {
  position: absolute; width: 11.8em; height: 12.9em; left: 51%; top: 51%;
  transform: translate(-50%, -50%) rotate(6deg); isolation: isolate;
}
.cart-tote-book { position: absolute; width: 5.5em; aspect-ratio: .71; box-shadow: 2px 2px 0 #fffae8, 3px 3px 0 #63526c; }
.cart-tote-backbook { left: 4.9em; top: 1.4em; transform: rotate(13deg); }
.cart-tote-frontbook { left: 1.45em; top: .45em; transform: rotate(-14deg); }
.cart-tote-front {
  position: absolute; left: 1em; bottom: .25em; width: 9.7em; height: 6.45em;
  display: grid; place-items: center;
  background: #ffdc77; border: max(1px, .1em) solid #493443;
  border-radius: .12em .1em .25em .3em;
  box-shadow: .48em .17em 0 #d89d3d, .57em .23em 0 #514042, .65em .62em 0 #4e325621;
  transform: skewY(-3deg);
}
.cart-tote-front img { display: block; width: 54%; height: auto; transform: rotate(-5deg); }
.cart-tote-handle {
  position: absolute; width: 3.9em; height: 2.8em; left: 3.7em; top: 3.9em;
  border: .22em solid #4a3240; border-bottom: 0; border-radius: 2em 2em 0 0;
}
.cart-tote-handle.back { top: 3.6em; left: 4.65em; border-color: #a46b3b; }
.cart-tote-handle.front::before, .cart-tote-handle.front::after { content: ""; position: absolute; bottom: -.08em; width: .35em; height: .35em; border-radius: 50%; background: #4a3240; }
.cart-tote-handle.front::before { left: -.28em; }
.cart-tote-handle.front::after { right: -.28em; }
.cart-art-spark { position: absolute; color: #583886; width: 1.45em; height: 1.9em; top: 14%; left: 5%; background: currentColor; clip-path: polygon(50% 0, 62% 36%, 100% 50%, 62% 62%, 50% 100%, 38% 63%, 0 50%, 37% 36%); transform: rotate(-12deg); }
.cart-art-spark.small { left: auto; right: 9%; top: 72%; width: 1.2em; height: 1.4em; color: #fff4ce; }

.cart-contents { padding: clamp(18px, 2.3vw, 32px); border: 1px solid #ded8ce; background: #fffdf8; }
.cart-panel-head, .cart-suggestions-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.cart-panel-head h2, .cart-suggestions-head h2 { margin: 0; font: 750 clamp(1.5rem, 2.1vw, 1.95rem)/1.08 var(--display); letter-spacing: -.045em; }
.cart-panel-head > span { color: #6e656e; font-size: .87rem; white-space: nowrap; }
.cart-items, .cart-suggestions ul { list-style: none; margin: 0; padding: 0; }
.cart-items { margin-top: 18px; }
.cart-item {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; column-gap: clamp(13px, 1.5vw, 23px);
  align-items: center; padding: 20px 0; border-top: 1px solid #e3ddd3;
}
.cart-item:last-child { border-bottom: 1px solid #e3ddd3; }
.cart-book-tile {
  display: grid; place-items: center; width: clamp(70px, 7.2vw, 105px); aspect-ratio: 1;
  border-radius: 8px; background: var(--tile-color);
}
.cart-cover { width: 53%; aspect-ratio: .71; transform: rotate(-6deg); box-shadow: 2px 2px 0 #fff5df, 3px 3px 0 #42313c66, 4px 5px 5px #2d143127; }
.cart-item:nth-child(2n) .cart-cover, .cart-suggestion:nth-child(2n) .cart-cover { transform: rotate(5deg); }
.cart-category { color: #65536b; font-size: .71rem; font-weight: 700; text-transform: uppercase; letter-spacing: .11em; }
.cart-item h3, .cart-suggestion h3 { margin: .22rem 0; line-height: 1.12; }
.cart-name { padding: 0; border: 0; background: transparent; color: #302434; font: 750 clamp(1.03rem, 1.57vw, 1.37rem)/1.12 var(--display); letter-spacing: -.033em; text-align: left; }
.cart-name:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .16em; }
.cart-item-meta { color: #675e66; font-size: .86rem; }
.cart-item-meta > span { padding: 0 .12em; }
.cart-item-actions { display: grid; justify-items: end; gap: .3rem; }
.cart-item-actions strong { font-size: 1.03rem; letter-spacing: -.02em; }
.cart-remove { background: none; padding: .3rem 0; border: 0; color: #71666e; font-size: .8rem; text-decoration: underline; text-underline-offset: .18em; }
.cart-remove:hover, .cart-keep-browsing:hover, .cart-suggestions-head a:hover { color: var(--purple); }
.cart-keep-browsing { display: inline-flex; align-items: center; gap: .5rem; margin-top: 17px; color: #4b3b50; font-size: .87rem; font-weight: 650; text-underline-offset: .2em; }
.cart-keep-browsing .ico { width: 16px; height: 16px; }

.cart-suggestions { margin-top: clamp(32px, 4.2vw, 65px); }
.cart-suggestions-head { margin-bottom: 16px; }
.cart-suggestions-head a { color: #574561; font-size: .86rem; font-weight: 650; text-underline-offset: .18em; white-space: nowrap; }
.cart-suggestions ul { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.cart-suggestion { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; min-width: 0; padding: 12px; border: 1px solid #dfd8ce; border-radius: 11px; background: #fffdf8; }
.cart-suggestion .cart-book-tile { width: clamp(52px, 5.4vw, 72px); aspect-ratio: .85; border-radius: 5px; }
.cart-suggestion .cart-cover { width: 63%; }
.cart-suggestion .cart-name { font-size: clamp(1rem, 1.3vw, 1.18rem); }
.cart-suggestion .cart-category { font-size: .66rem; letter-spacing: .09em; }
.cart-suggestion-price { font-size: .84rem; font-weight: 650; }
.cart-suggestion-add {
  display: grid; place-items: center; align-self: end; padding: 0; width: 35px; height: 35px;
  border-radius: 50%; color: #563583; border: 1px solid #ccbddc; background: #f2ecf8;
}
.cart-suggestion-add .ico { width: 16px; height: 16px; }
.cart-suggestion-add:hover { background: #563583; border-color: #563583; color: white; }

@container (max-width: 440px) {
  .cart-empty-copy { padding-left: 20px; }
  .cart-art { left: 57%; }
  .cart-tote { left: 48%; }
  .cart-empty-copy p { margin-bottom: 15px; }
  .cart-browse-button { font-size: .84rem; padding-inline: .74rem; }
}
@media (max-width: 1000px) and (min-width: 761px) {
  .cart-suggestion { gap: 8px; padding: 9px; grid-template-columns: auto minmax(0, 1fr); position: relative; }
  .cart-suggestion-add { position: absolute; right: 7px; bottom: 7px; width: 29px; height: 29px; }
  .cart-suggestion-price { display: block; padding-right: 28px; }
}
@media (max-width: 760px) {
  .cart-suggestions ul { grid-template-columns: 1fr; gap: 8px; }
  .cart-suggestion { padding: 9px 13px 9px 9px; }
  .cart-suggestion-add { align-self: center; width: 40px; height: 40px; }
  .cart-empty { min-height: 210px; }
}
@media (max-width: 480px) {
  .cart-item { gap: 10px; padding: 15px 0; }
  .cart-contents { padding: 16px; }
  .cart-item .cart-book-tile { width: 53px; aspect-ratio: .8; }
  .cart-item .cart-cover { width: 65%; }
  .cart-item-meta { font-size: .76rem; }
  .cart-category { font-size: .64rem; }
  .cart-item-actions strong { font-size: .91rem; }
  .cart-suggestions-head { gap: 5px; }
  .cart-suggestions-head h2 { font-size: 1.4rem; }
  .cart-suggestions-head a { font-size: .77rem; }
}
