cart-items .title-wrapper-with-link {
  margin-top: 0;
}

.cart-items td,
.cart-items th {
  padding: 0;
  border: none;
}

.cart-items th {
  text-align: left;
  padding-bottom: 1.8rem;
  opacity: 0.85;
  font-weight: normal;
}

.cart-item__quantity-wrapper {
  display: flex;
}

.cart-item__totals {
  position: relative;
}

.cart-items *.right {
  text-align: right;
}

.cart-item__image-container {
  display: inline-flex;
  align-items: flex-start;
}

.cart-item__nested-line .cart-item__image-container {
  min-width: calc(10rem / var(--font-body-scale));
  justify-content: right;
  img {
    width: 60%;
  }
}

.cart-item__image-container:after {
  content: none;
}

.cart-item__image {
  height: auto;
  max-width: calc(10rem / var(--font-body-scale));
}

@media screen and (min-width: 750px) {
  .cart-item__image {
    max-width: 100%;
  }
}

.cart-item__details {
  font-size: 1.6rem;
  line-height: calc(1 + 0.4 / var(--font-body-scale));
}

.cart-item__details > * {
  margin: 0;
  max-width: 30rem;
}

.cart-item__details > * + * {
  margin-top: 0.6rem;
}

.cart-item__media {
  position: relative;
}

.cart-item__link {
  display: block;
  bottom: 0;
  left: 0;
  position: absolute;
  right: 0;
  top: 0;
  width: 100%;
  height: 100%;
}

.cart-item__name {
  text-decoration: none;
  display: block;
}

.cart-item__title {
  align-items: flex-start;
  display: flex;
  font-size: calc(var(--font-heading-scale) * 1.5rem);
  gap: 0.6rem;
  line-height: calc(1 + 0.3 / max(1, var(--font-heading-scale)));
}

.cart-item__title .cart-item__name {
  flex: 0 1 auto;
  min-width: 0;
}

.cart-item__disclosure {
  appearance: none;
  background: none;
  border: 0;
  color: inherit;
  cursor: pointer;
  display: inline-flex;
  flex: 0 0 auto;
  font: inherit;
  line-height: 1;
  margin: 0;
  padding: 0;
  position: relative;
  top: 0.2rem;
}

.cart-item__disclosure-indicator {
  --icon-stroke-width: 1.2;

  color: rgb(var(--color-foreground));
  height: 1em;
  width: 1em;
}

.cart-item__disclosure-tooltip {
  --cart-disclosure-tooltip-symbol-height: 1.3rem;
  --cart-disclosure-tooltip-symbol-width: calc(var(--cart-disclosure-tooltip-symbol-height) * 40 / 31);

  background-color: rgb(var(--color-background));
  border: var(--popup-border-width) solid rgba(var(--color-foreground), var(--popup-border-opacity));
  bottom: calc(100% + 0.9rem);
  box-shadow: var(--popup-shadow-horizontal-offset) var(--popup-shadow-vertical-offset)
    var(--popup-shadow-blur-radius) rgba(var(--color-shadow), var(--popup-shadow-opacity));
  color: rgb(var(--color-foreground));
  display: flex;
  flex-direction: column;
  font-family: var(--font-body-family);
  font-size: 1.2rem;
  font-style: var(--font-body-style);
  font-weight: var(--font-body-weight);
  gap: 0.6rem;
  left: 50%;
  letter-spacing: 0;
  line-height: 1.35;
  max-width: min(36rem, calc(100vw - 4rem));
  opacity: 0;
  padding: 0.8rem 1rem;
  pointer-events: none;
  position: absolute;
  text-align: left;
  transform: translateX(calc(-50% + var(--cart-disclosure-tooltip-shift, 0px)));
  transition: opacity var(--duration-short) ease, visibility var(--duration-short) ease;
  visibility: hidden;
  width: max-content;
  z-index: 3;
}

.cart-item__disclosure-tooltip-row {
  align-items: flex-start;
  column-gap: 0.6rem;
  display: grid;
  grid-template-columns: var(--cart-disclosure-tooltip-symbol-width) minmax(0, 1fr);
}

.cart-item__disclosure-tooltip-symbol-slot {
  align-items: flex-start;
  display: inline-flex;
  height: var(--cart-disclosure-tooltip-symbol-height);
  justify-content: center;
  margin-top: 0.16rem;
  width: var(--cart-disclosure-tooltip-symbol-width);
}

.cart-item__disclosure-tooltip-symbol {
  display: block;
  height: 100%;
  max-width: 100%;
  object-fit: contain;
  width: auto;
}

.cart-item__disclosure-tooltip-title {
  min-width: 0;
  overflow-wrap: anywhere;
  white-space: normal;
}

@media (hover: hover) and (pointer: fine) {
  .cart-item__disclosure:hover .cart-item__disclosure-tooltip {
    opacity: 1;
    visibility: visible;
  }
}

.cart-disclosure-modal {
  align-items: center;
  background: rgba(var(--color-foreground), 0.58);
  box-sizing: border-box;
  display: flex;
  height: 100%;
  justify-content: center;
  left: 0;
  opacity: 0;
  overflow: auto;
  padding: 2rem;
  pointer-events: none;
  position: fixed;
  top: 0;
  visibility: hidden;
  width: 100%;
  z-index: -1;
}

.cart-disclosure-modal[open] {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
  z-index: 1001;
}

.cart-disclosure-modal__content {
  background-color: rgb(var(--color-background));
  border: var(--popup-border-width) solid rgba(var(--color-foreground), var(--popup-border-opacity));
  border-radius: var(--popup-corner-radius);
  box-sizing: border-box;
  box-shadow: var(--popup-shadow-horizontal-offset) var(--popup-shadow-vertical-offset)
    var(--popup-shadow-blur-radius) rgba(var(--color-shadow), var(--popup-shadow-opacity));
  color: rgb(var(--color-foreground));
  margin: auto;
  max-height: calc(100vh - 4rem);
  max-width: min(100%, 56rem);
  min-width: min(100%, 39rem);
  overflow-y: auto;
  padding: 2rem;
  position: relative;
  width: fit-content;
}

.cart-disclosure-modal__close {
  align-items: center;
  appearance: none;
  background: none;
  border: 0;
  color: rgba(var(--color-foreground), 0.65);
  cursor: pointer;
  display: flex;
  height: 3.6rem;
  justify-content: center;
  margin: 0;
  padding: 0;
  position: absolute;
  right: 0.8rem;
  top: 0.8rem;
  width: 3.6rem;
}

.cart-disclosure-modal__close:hover {
  color: rgb(var(--color-foreground));
}

.cart-disclosure-modal__close .icon {
  height: 1.6rem;
  width: 1.6rem;
}

.cart-disclosure-modal__title {
  font-family: var(--font-heading-family);
  font-size: calc(var(--font-heading-scale) * 1.8rem);
  font-weight: var(--font-body-weight-bold);
  line-height: calc(1 + 0.3 / max(1, var(--font-heading-scale)));
  margin: 0 4rem 1.8rem 0;
}

.cart-disclosure-modal__item + .cart-disclosure-modal__item {
  margin-top: 2.4rem;
}

.cart-disclosure-modal__item-header {
  --cart-disclosure-modal-symbol-height: 1.8rem;
  --cart-disclosure-modal-symbol-width: calc(var(--cart-disclosure-modal-symbol-height) * 40 / 31);
  --cart-disclosure-modal-title-font-size: 1.4rem;
  --cart-disclosure-modal-title-line-height-ratio: calc(1 + 0.35 / var(--font-body-scale));
  --cart-disclosure-modal-title-line-height: calc(
    var(--cart-disclosure-modal-title-font-size) * var(--cart-disclosure-modal-title-line-height-ratio)
  );

  align-items: flex-start;
  display: grid;
  gap: 0.9rem;
  grid-template-columns: var(--cart-disclosure-modal-symbol-width) minmax(0, 1fr);
  margin-bottom: 0.8rem;
}

.cart-disclosure-modal__symbol-slot {
  align-items: flex-start;
  display: inline-flex;
  height: var(--cart-disclosure-modal-symbol-height);
  justify-content: center;
  margin-top: calc(
    (var(--cart-disclosure-modal-title-line-height) - var(--cart-disclosure-modal-symbol-height)) / 2
  );
  width: var(--cart-disclosure-modal-symbol-width);
}

.cart-disclosure-modal__symbol {
  display: block;
  height: 100%;
  max-width: 100%;
  object-fit: contain;
  width: auto;
}

.cart-disclosure-modal__item-title {
  font-size: var(--cart-disclosure-modal-title-font-size);
  font-weight: var(--font-body-weight-bold);
  line-height: var(--cart-disclosure-modal-title-line-height-ratio);
  margin: 0;
}

.cart-disclosure-modal__item-content {
  font-size: 1.3rem;
  line-height: calc(1 + 0.45 / var(--font-body-scale));
}

.cart-disclosure-modal__item-content p {
  margin: 0;
}

.cart-disclosure-modal__item-content p + p {
  margin-top: 1rem;
}

@media screen and (max-width: 749px) {
  .cart-disclosure-modal {
    padding: 1.6rem;
  }

  .cart-disclosure-modal__content {
    max-height: calc(100vh - 3.2rem);
    max-width: 100%;
    padding: 1.8rem;
  }
}

.cart-item__name:hover {
  text-decoration: underline;
  text-underline-offset: 0.3rem;
  text-decoration-thickness: 0.2rem;
}

.cart-item__price-wrapper > * {
  display: block;
  margin: 0;
  padding: 0;
}

.cart-item__discounted-prices dd {
  margin: 0;
}

.cart-item__discounted-prices .cart-item__old-price {
  font-size: 1.4rem;
}

.cart-item__old-price {
  opacity: 0.7;
}

.cart-item__final-price {
  font-weight: 400;
}

.product-option {
  font-size: 1.4rem;
  word-break: break-word;
  line-height: calc(1 + 0.5 / var(--font-body-scale));
}

.cart-item cart-remove-button {
  display: flex;
  margin-left: 1rem;
}

@media screen and (min-width: 750px) and (max-width: 989px) {
  .cart-item cart-remove-button {
    width: 4.5rem;
    height: 4.5rem;
  }
}

cart-remove-button .button {
  min-width: calc(4.5rem / var(--font-body-scale));
  min-height: 4.5rem;
  padding: 0;
  margin: 0 0.1rem 0.1rem 0;
}

cart-remove-button .button:before,
cart-remove-button .button:after {
  content: none;
}

cart-remove-button .button:not([disabled]):hover {
  color: rgb(var(--color-foreground));
}

@media screen and (min-width: 750px) {
  cart-remove-button .button {
    min-width: 3.5rem;
    min-height: 3.5rem;
  }
}

cart-remove-button .icon-remove {
  height: 1.5rem;
  width: 1.5rem;
}

.cart-item .loading__spinner {
  top: 0;
  left: auto;
  right: auto;
  bottom: 0;
  padding: 0;
}

@media screen and (min-width: 750px) {
  .cart-item .loading__spinner {
    right: 0;
    padding-top: 4.5rem;
    bottom: auto;
  }
}

.cart-item .loading__spinner:not(.hidden) ~ * {
  visibility: hidden;
}

.cart-item__error {
  display: flex;
  align-items: flex-start;
  margin-top: 0.2rem;
  width: min-content;
  min-width: 100%;
}

.cart-item__error-text {
  font-size: 1.3rem;
  line-height: 1.4;
  letter-spacing: 0.04rem;
  order: 1;
}

.cart-item__error-text + .svg-wrapper {
  flex-shrink: 0;
  width: 1.5rem;
  height: 1.5rem;
  margin-right: 0.7rem;
  margin-top: 0.25rem;
}

.cart-item__error-text:empty + .svg-wrapper {
  display: none;
}

.product-option + .product-option {
  margin-top: 0.4rem;
}

.product-option * {
  display: inline;
  margin: 0;
}

.cart-items thead th {
  text-transform: uppercase;
}

@media screen and (max-width: 749px) {
  .cart-items,
  .cart-items thead,
  .cart-items tbody {
    display: block;
    width: 100%;
  }

  .cart-items thead tr {
    display: flex;
    justify-content: space-between;
    border-bottom: 0.1rem solid rgba(var(--color-foreground), 0.2);
    margin-bottom: 4rem;
  }

  .cart-item {
    display: grid;
    grid-template: repeat(2, auto) / repeat(4, 1fr);
    gap: 1.5rem;
    margin-bottom: 3.5rem;
  }

  .cart-item:has(+ .cart-item__nested-line) {
    margin-bottom: 1.5rem;
  }

  .cart-item:last-child {
    margin-bottom: 0;
  }

  .cart-item__media {
    grid-row: 1 / 3;
  }

  .cart-item__details {
    grid-column: 2 / 4;
  }

  .cart-item__quantity {
    grid-column: 2 / 5;
  }

  .cart-item__quantity-wrapper {
    flex-wrap: wrap;
  }

  .cart-item__totals {
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
  }
}

@media screen and (min-width: 750px) {
  .cart-items {
    border-spacing: 0;
    border-collapse: separate;
    box-shadow: none;
    width: 100%;
    display: table;
  }

  .cart-items th {
    border-bottom: 0.1rem solid rgba(var(--color-foreground), 0.08);
  }

  .cart-items thead th:first-child {
    width: 50%;
  }

  .cart-items th + th {
    padding-left: 4rem;
  }

  .cart-items td {
    vertical-align: top;
    padding-top: 4rem;
  }

  .cart-items .cart-item__nested-line td {
    padding-top: 1rem;
  }

  .cart-item {
    display: table-row;
  }

  .cart-item > td + td {
    padding-left: 4rem;
  }

  .cart-item__details {
    width: 35rem;
  }

  .cart-item__media {
    width: 10rem;
  }

  .cart-item__price-wrapper > *:only-child:not(.cart-item__discounted-prices) {
    margin-top: 1rem;
  }

  .cart-item__error {
    margin-left: 0.3rem;
  }
}

@media screen and (min-width: 990px) {
  .cart-item .cart-item__quantity,
  .cart-items .cart-items__heading--wide {
    padding-left: 6rem;
  }

  .cart-item__details {
    width: 50rem;
  }

  .cart-items thead th:first-child {
    width: 60%;
  }
}

@media screen and (min-width: 750px) {
  .cart-items .cart-items__heading--quantity,
  .cart-item .cart-item__quantity,
  .cart-item__quantity--info quantity-popover > * {
    padding-left: 5rem;
  }

  .cart-item .cart-item__quantity--info,
  .cart-item__quantity--info .cart-item__quantity-wrapper,
  .cart-item__quantity--info .cart-items__info {
    padding-left: 0;
  }
}

@media screen and (max-width: 989px) {
  .cart-items .quantity-popover__info-button {
    padding-left: 0;
  }
}
