/* Base-theme stylesheet, vendored for the platform surfaces. Its rem values
   were authored against a 10px root (html{font-size:62.5%}); this theme keeps the
   browser's 16px root, so every rem here is rescaled x0.625 to render at the
   base theme's intended size. */
.cart-items td,
.cart-items th {
  padding: 0;
  border: none;
}

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

.cart-item__quantity {
  display: flex;
}

.cart-item__totals {
  position: relative;
}

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

.cart-item__image {
  height: auto;
  max-width: 100%;
}

.cart-item__details {
  font-size: 1rem;
  line-height: 1.4;
}

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

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

.cart-item__media {
  position: relative;
}

.cart-item__name {
  color: rgb(var(--color-foreground));
  text-decoration: none;
  display: block;
}

.cart-item__name:hover {
  text-decoration: underline;
  text-underline-offset: .1875rem;
  text-decoration-thickness: .125rem;
}

.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: .875rem;
}

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

.product-option {
  font-size: .875rem;
  line-height: 1.5;
}

.cart-item .product-bundle__toggle {
  cursor: pointer;
}

.cart-item .product-bundle__toggle:hover {
  color: rgb(var(--color-foreground));
}

.cart-item .product-bundle__toggle .chevron-icon.rotate .icon-caret {
  transform: rotate(180deg);
}

.cart-item .product-bundle__toggle .chevron-icon .icon-caret {
  vertical-align: middle;
  transition: transform 0.3s ease;
  height: .625rem;
  width: .625rem;
}

.cart-item .product-bundle__content {
  font-size: .875rem;
}

.cart-item .product-bundle__content ul {
  padding: 0;
}

.cart-item .product-bundle__content ul li {
  margin-bottom: .625rem;
}

.cart-item .product-bundle__item {
  display: flex;
}

.cart-item .product-bundle__image {
  flex-shrink: 0;
}

.cart-item .product-bundle__details {
  margin-left: .625rem;
  display: flex;
  flex-direction: column;
}

.cart-item .product-bundle__details .product-bundle__name {
  color: rgb(var(--color-foreground));
}

.cart-item .cart-action-icon {
  display: inline-block;
  margin-left: .625rem;
}

@media screen and (min-width: 750px) and (max-width: 989px) {
  .cart-item .cart-action-icon {
    width: 2.8125rem;
    height: 2.8125rem;
  }
}

.cart-action-icon .button {
  box-shadow: none;
  color: rgba(var(--color-base-text), 0.75);
  min-width: 2.8125rem;
  min-height: 2.8125rem;
  padding: 0;
  margin: -.3125rem .0625rem .0625rem 0;
}

.cart-action-icon .button:not([disabled]):hover {
  box-shadow: none;
  color: rgb(var(--color-foreground));
}

.cart-action-icon .button:not([disabled]):focus-visible {
  box-shadow: none;
}

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

.cart-action-icon .icon-remove {
  height: .9375rem;
  width: .9375rem;
}

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

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

.loading-overlay:not(.hidden) ~ * {
  visibility: hidden;
}

.cart-item__error {
  font-size: .75rem;
  display: flex;
  align-items: flex-start;
}

.cart-item__error-text {
  order: 1;
}

.cart-item__error-text + svg {
  flex-shrink: 0;
  width: .75rem;
  margin-right: .4375rem;
  margin-top: .0625rem;
}

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

.product-option {
  color: rgba(var(--color-foreground), 0.7);
}

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

.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: .0625rem solid rgba(var(--color-foreground), 0.2);
    margin-bottom: 2.5rem;
  }

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

  .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;
    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: .0625rem solid rgba(var(--color-foreground), 0.08);
  }

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

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

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

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

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

  .cart-item__details {
    width: 21.875rem;
  }

  .cart-item__media {
    width: 6.25rem;
  }

  .cart-item .cart-action-icon {
    margin: .3125rem 0 0 .9375rem;
  }

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

  .cart-item__error {
    align-items: center;
  }

  .cart-item__error-text + svg {
    margin-top: -.125rem;
  }
}

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

  .cart-item__details {
    width: 31.25rem;
  }

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