/**
 * File: assets/css/frontend/cart-part2.css
 * Purpose: Split piece of a larger source file (1.0.191 file-size programme; cascade/build order unchanged). Continuation part 2 of assets/css/frontend/cart.css (split for the 300-line standard; cascade order is preserved by the enqueue chain).
 * Scope: Same feature scope as the source file named in the provenance line; not a standalone design source.
 * Package: HyperDAF Engine
 */
.hdf-cart-line:last-child {
  border-bottom: 0;
}

.hdf-cart-line__product {
  display: grid;
  min-width: 0;
  grid-template-columns: var(--hdf-engine-cart-media-width) minmax(0, 1fr);
  align-items: center;
  gap: var(--hdf-engine-space-4);
}

.hdf-cart-line__media {
  display: block;
  width: var(--hdf-engine-cart-media-width);
  height: var(--hdf-engine-cart-media-height);
  overflow: hidden;
  border: var(--hdf-engine-border-width-default) solid var(--hdf-engine-color-border-subtle);
  border-radius: var(--hdf-engine-radius-sm);
  background: var(--hdf-engine-color-surface-muted);
  text-decoration: none;
}

.hdf-cart-line__image,
.hdf-cart-line__placeholder {
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  object-fit: cover;
}

.hdf-cart-line__placeholder {
  color: var(--hdf-engine-color-primary-strong);
  font-family: var(--hdf-engine-font-family-heading);
  font-size: var(--hdf-engine-font-size-2xl);
  font-weight: var(--hdf-engine-font-weight-bold);
}

.hdf-cart-line__copy {
  display: flex;
  min-width: 0;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--hdf-engine-space-1) var(--hdf-engine-space-2);
}

.hdf-cart-line__title {
  width: 100%;
  overflow: hidden;
  color: var(--hdf-engine-color-text-strong);
  font-family: var(--hdf-engine-font-family-heading);
  font-size: var(--hdf-engine-font-size-md);
  font-weight: var(--hdf-engine-font-weight-bold);
  line-height: var(--hdf-engine-line-height-snug);
  text-decoration: none;
  text-overflow: ellipsis;
}

.hdf-cart-line__title:hover,
.hdf-cart-line__title:focus-visible {
  color: var(--hdf-engine-color-link-hover);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.hdf-cart-line__plan {
  min-height: auto;
  border-color: var(--hdf-engine-color-border-subtle);
  border-radius: var(--hdf-engine-radius-sm);
  background: var(--hdf-engine-color-surface-muted);
  color: var(--hdf-engine-color-text-secondary);
}

.hdf-cart-line__billing {
  color: var(--hdf-engine-color-text-muted);
  font-size: var(--hdf-engine-font-size-xs);
}

.hdf-cart-line__metric {
  display: grid;
  gap: var(--hdf-engine-space-1);
}

.hdf-cart-line__label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.hdf-cart-line__metric strong {
  color: var(--hdf-engine-color-text-strong);
  font-size: var(--hdf-engine-font-size-sm);
  font-weight: var(--hdf-engine-font-weight-bold);
  line-height: var(--hdf-engine-line-height-snug);
}

.hdf-cart-line__total small {
  color: var(--hdf-engine-color-text-muted);
  font-size: var(--hdf-engine-font-size-xs);
  line-height: var(--hdf-engine-line-height-snug);
}

.hdf-cart-line__quantity {
  position: relative;
  display: grid;
  width: min(100%, var(--hdf-engine-cart-quantity-width));
  justify-items: stretch;
  gap: var(--hdf-engine-space-1);
}

.hdf-cart-line__quantity-input {
  width: 100%;
  min-width: 0;
  height: var(--hdf-engine-cart-quantity-height, var(--hdf-engine-control-height-md));
  min-height: var(--hdf-engine-cart-quantity-height, var(--hdf-engine-control-height-md));
  padding: 0 var(--hdf-engine-space-3);
  border: var(--hdf-engine-border-width-default) solid var(--hdf-engine-color-border);
  border-radius: var(--hdf-engine-control-radius);
  background: var(--hdf-engine-cart-panel-surface, var(--hdf-engine-color-surface));
  color: var(--hdf-engine-color-text-strong);
  appearance: textfield;
  font-size: var(--hdf-engine-font-size-sm);
  font-weight: var(--hdf-engine-font-weight-semibold);
  line-height: 1;
  text-align: center;
}

.hdf-cart-line__quantity-input::-webkit-inner-spin-button,
.hdf-cart-line__quantity-input::-webkit-outer-spin-button {
  margin: 0;
  appearance: none;
}

.hdf-cart-line__quantity-input:hover {
  border-color: var(--hdf-engine-color-border-strong);
}

.hdf-cart-line__quantity-input.is-updating {
  border-color: var(--hdf-engine-cart-primary, var(--hdf-engine-color-primary-strong));
}

.hdf-cart-line__quantity-status {
  min-height: 1em;
  color: var(--hdf-engine-color-text-muted);
  font-size: 0.6875rem;
  line-height: 1;
  text-align: center;
}

.hdf-cart-line__quantity-status[data-state="saved"] {
  color: var(--hdf-engine-color-success-text);
}

.hdf-cart-line__quantity-status[data-state="error"],
.hdf-cart-line__quantity-status[data-state="invalid"] {
  color: var(--hdf-engine-color-danger-text);
}

.hdf-cart-line__remove {
  justify-self: end;
}

.hdf-cart-line__remove button,
.hdf-coupon-applied button {
  display: inline-flex;
  align-items: center;
  gap: var(--hdf-engine-space-1);
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--hdf-engine-color-danger-text);
  font: inherit;
  font-size: var(--hdf-engine-font-size-xs);
  font-weight: var(--hdf-engine-font-weight-semibold);
  text-decoration: none;
  cursor: pointer;
}

.hdf-cart-line__remove button:hover,
.hdf-cart-line__remove button:focus-visible,
.hdf-coupon-applied button:hover,
.hdf-coupon-applied button:focus-visible {
  color: var(--hdf-engine-color-danger);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.hdf-cart-line__remove .hdf-engine-icon {
  width: var(--hdf-engine-font-size-sm);
  height: var(--hdf-engine-font-size-sm);
}

.hdf-cart-summary {
  padding: var(--hdf-engine-cart-panel-padding);
  position: static;
}

.hdf-cart-summary__heading {
  padding-bottom: var(--hdf-engine-space-4);
  border-bottom: var(--hdf-engine-border-width-default) solid var(--hdf-engine-color-border-subtle);
}

.hdf-cart-summary__heading > span {
  color: var(--hdf-engine-color-text-muted);
  font-size: var(--hdf-engine-font-size-xs);
  font-weight: var(--hdf-engine-font-weight-semibold);
}

.hdf-cart-summary__totals {
  margin: var(--hdf-engine-space-4) 0 0;
}

.hdf-cart-summary__totals > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--hdf-engine-space-4);
  padding-block: var(--hdf-engine-space-3);
  border-bottom: var(--hdf-engine-border-width-default) solid var(--hdf-engine-color-border-subtle);
}

.hdf-cart-summary__totals dt {
  color: var(--hdf-engine-color-text-tertiary);
  font-size: var(--hdf-engine-font-size-sm);
}

.hdf-cart-summary__totals dd {
  margin: 0;
  color: var(--hdf-engine-color-text-strong);
  font-size: var(--hdf-engine-font-size-sm);
  font-weight: var(--hdf-engine-font-weight-semibold);
  text-align: end;
}

.hdf-cart-summary__totals .hdf-cart-summary__discount dd {
  color: var(--hdf-engine-color-success-text);
}

.hdf-cart-summary__totals .hdf-cart-summary__total {
  padding-block: var(--hdf-engine-space-4);
  border-bottom: 0;
}

.hdf-cart-summary__total dt,
.hdf-cart-summary__total dd {
  color: var(--hdf-engine-color-text-strong);
  font-size: var(--hdf-engine-font-size-lg);
  font-weight: var(--hdf-engine-font-weight-bold);
}

