.mw-cart-item-layout {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.mw-cart-item-photo {
  width: 120px;
  height: 120px;
  object-fit: cover;
  display: block;
  background: color-mix(in srgb, var(--dw-color-surface-2) 92%, var(--dw-color-page));
}

.mw-cart-item-copy {
  display: grid;
  gap: 14px;
}

.mw-cart-item-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.mw-cart-item-row--bottom {
  align-items: center;
}

.mw-cart-item-detail-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.mw-cart-item-chip {
  min-height: 32px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid color-mix(in srgb, var(--dw-color-border-strong) 60%, transparent);
  background: color-mix(in srgb, var(--dw-color-surface) 94%, var(--dw-color-page));
  color: var(--dw-color-text);
  font-size: 0.82rem;
  font-weight: var(--dw-weight-semibold, 600);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.mw-cart-item-price,
.mw-cart-line-total {
  margin: 0;
  color: var(--dw-color-text);
  font-family: var(--dw-font-heading);
  font-size: 1.1rem;
}

.mw-cart-line-total {
  text-align: right;
}

.mw-cart-qty {
  display: inline-grid;
  grid-template-columns: 42px minmax(42px, auto) 42px;
  align-items: center;
}

.mw-cart-qty-button,
.mw-cart-qty-value {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid color-mix(in srgb, var(--dw-color-border-strong) 60%, transparent);
  background: color-mix(in srgb, var(--dw-color-surface) 96%, var(--dw-color-page));
  color: var(--dw-color-text);
  font: inherit;
  border-radius: 0;
}

.mw-cart-qty-button {
  cursor: pointer;
}

.mw-cart-qty-value {
  min-width: 52px;
  border-inline-width: 0;
  font-weight: var(--dw-weight-semibold, 600);
}

@media (max-width: 48rem) {
  .mw-cart-item-layout {
    grid-template-columns: 1fr;
  }

  .mw-cart-item-photo {
    width: 100%;
    height: 220px;
  }

  .mw-cart-item-row,
  .mw-cart-item-row--bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .mw-cart-line-total {
    text-align: left;
  }
}
