.edc-cart-page,
.edc-state-page { padding: 24px 0 96px; }

.edc-cart-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin: 42px 0 34px; }
.edc-cart-heading h1 { margin: 4px 0 0; font-size: clamp(40px, 5vw, 74px); line-height: .94; letter-spacing: -.045em; }

.edc-cart-alert { margin: 0 0 16px; padding: 13px 16px; border: 1px solid var(--edc-line); border-radius: var(--edc-equipment-control, 7px); display: grid; grid-template-columns: 20px minmax(0, 1fr); align-items: start; gap: 11px; background: var(--edc-equipment-surface, #eef0ee); color: var(--edc-ink); font-size: 14px; line-height: 1.45; }
.edc-cart-alert .edc-status-icon { width: 20px; height: 20px; fill: none; stroke: var(--edc-muted); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.edc-cart-alert.is-success .edc-status-icon { stroke: var(--edc-positive, #27643c); }
.edc-cart-alert.is-error { color: var(--edc-danger, #9b2c24); }
.edc-cart-alert.is-error .edc-status-icon { stroke: currentColor; }
.edc-cart-alert a { color: inherit; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

.edc-cart-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 390px); gap: clamp(28px, 5vw, 72px); align-items: start; }
.edc-cart-items { border-top: 1px solid #d8d8d2; }
.edc-cart-item { display: grid; grid-template-columns: 144px minmax(180px, 1fr) 110px 150px 120px; gap: 22px; align-items: center; padding: 24px 0; border-bottom: 1px solid #d8d8d2; }
.edc-cart-item__image { display: grid; place-items: center; width: 144px; aspect-ratio: 1; padding: 10px; overflow: hidden; background: #f2f2ef; color: #70706b; font-size: 12px; text-align: center; }
.edc-cart-item__image img { display: block; width: 100%; height: 100%; max-width: 100%; max-height: 100%; object-fit: contain; object-position: center; mix-blend-mode: multiply; }
.edc-cart-item__info { min-width: 0; display: grid; gap: 7px; }
.edc-cart-item__name { color: #111; font-size: 20px; font-weight: 650; line-height: 1.15; text-decoration: none; }
.edc-cart-item__name:hover { text-decoration: underline; text-underline-offset: 3px; }
.edc-cart-item__model,
.edc-cart-item__info small { color: #72726d; font-size: 12px; }
.edc-cart-item__stock { display: inline-flex; align-items: center; gap: 6px; color: var(--edc-danger, #9b2c24); font-size: 12px; font-weight: 550; line-height: 1.35; }
.edc-cart-item__stock svg { width: 16px; height: 16px; flex: 0 0 16px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.edc-cart-item__options { margin: 0; font-size: 12px; }
.edc-cart-item__options div { display: flex; gap: 5px; }
.edc-cart-item__options dt { color: #777; font-weight: 400; }
.edc-cart-item__options dd { margin: 0; }
.edc-cart-item__price,
.edc-cart-item__total { display: grid; gap: 4px; font-variant-numeric: lining-nums tabular-nums; }
.edc-cart-item__price span,
.edc-cart-item__total span { color: #777; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; }
.edc-cart-item__price strong,
.edc-cart-item__total strong {
  font-size: 17px;
  letter-spacing: 0;
  word-spacing: 0;
  white-space: nowrap;
}
.edc-cart-item__controls { display: grid; gap: 8px; }
.edc-cart-item__controls > label { color: #777; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; }
.edc-cart-quantity { display: grid; grid-template-columns: 36px 54px 36px; width: max-content; border: 1px solid #cfcfc8; background: #fff; }
.edc-cart-quantity button,
.edc-cart-quantity input { width: 100%; height: 38px; border: 0; background: transparent; text-align: center; }
.edc-cart-quantity button { font-size: 19px; }
.edc-cart-quantity button:hover { background: #efefeb; }
.edc-cart-quantity input { border-inline: 1px solid #deded8; appearance: textfield; }
.edc-cart-quantity input::-webkit-inner-spin-button { appearance: none; }
.edc-cart-update,
.edc-cart-remove { width: max-content; padding: 0; border: 0; background: none; font-size: 12px; text-decoration: underline; text-underline-offset: 3px; }
.edc-cart-remove { color: #7d2922; }

.edc-cart-summary { position: sticky; top: 112px; padding: 30px; border: 1px solid #d1d1cb; background: #f4f4f0; }
.edc-cart-summary h2 { margin: 4px 0 24px; font-size: 28px; }
.edc-cart-summary dl { margin: 0 0 26px; font-variant-numeric: lining-nums tabular-nums; }
.edc-cart-summary dl div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid #d7d7d1; }
.edc-cart-summary dt { font-weight: 400; }
.edc-cart-summary dd { margin: 0; font-weight: 650; text-align: right; }
.edc-cart-summary dd { letter-spacing: 0; word-spacing: 0; }
.edc-cart-summary dl div:last-child { padding-top: 18px; border-bottom: 0; font-size: 20px; }
.edc-cart-checkout { display: flex; justify-content: center; align-items: center; min-height: 54px; padding: 12px 20px; background: #111; color: #fff !important; font-weight: 650; text-decoration: none !important; }
.edc-cart-checkout:hover { background: #2b2b2b; }
.edc-cart-continue { display: block; margin: 18px 0; color: #111; text-align: center; }
.edc-cart-note { margin: 20px 0 0; color: #6d6d68; font-size: 12px; line-height: 1.5; }

/* Promo code is the cart's only secondary utility: keep it open and concise. */
.edc-cart-tools { margin: 24px 0 0; max-width: 460px; }
.edc-cart-tools .panel { margin: 0; border: 0; box-shadow: none; }
.edc-cart-tools .panel-heading { display: none; }
.edc-cart-tools .panel-collapse.collapse {
  display: block;
  height: auto !important;
}
.edc-cart-tools .panel-body { padding: 0; border: 0 !important; }
.edc-cart-tools .form-group { margin: 0; }
.edc-cart-tools .input-group {
  width: 100%;
  max-width: none;
  border: 1px solid var(--edc-line, #dfe1dc);
  border-radius: var(--edc-equipment-control, 7px);
  background: var(--edc-white, #fff);
  box-shadow: none;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}
.edc-cart-tools .input-group:focus-within {
  border-color: #8f938c;
  box-shadow: 0 0 0 2px rgba(17, 18, 16, .08);
}
.edc-cart-tools .input-group.has-error {
  border-color: #a85b54;
}
.edc-cart-tools .control-label {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.edc-cart-tools .panel-body > .input-group {
  float: none;
  max-width: none;
}
.edc-cart-tools #input-coupon {
  min-height: 40px;
  height: 40px;
  padding: 8px 11px;
  border: 0;
  border-radius: var(--edc-equipment-control, 7px) 0 0 var(--edc-equipment-control, 7px);
  background: var(--edc-white, #fff);
  color: var(--edc-ink, #111210);
  font-size: 14px;
  box-shadow: none;
  outline: 0;
}
.edc-cart-tools #input-coupon:focus,
.edc-cart-tools #input-coupon:focus-visible {
  border-color: transparent;
  box-shadow: none;
  outline: 0;
}
.edc-cart-tools #button-coupon {
  width: auto;
  min-height: 40px;
  height: 40px;
  padding: 8px 13px;
  border: 0;
  border-radius: 0 var(--edc-equipment-control, 7px) var(--edc-equipment-control, 7px) 0;
  background: var(--edc-equipment-surface, #eef0ee);
  color: var(--edc-ink, #111210) !important;
  font-family: inherit;
  font-size: 13px !important;
  font-weight: 550;
  line-height: 1.2;
  letter-spacing: 0;
  text-indent: 0;
  text-transform: none;
  white-space: nowrap;
  opacity: 1;
  box-shadow: none;
}
.edc-cart-tools .input-group-btn {
  width: 1%;
  border-left: 1px solid var(--edc-line, #dfe1dc);
  white-space: nowrap;
}
@media (hover: hover) and (pointer: fine) {
  .edc-cart-tools #button-coupon:hover {
    background: var(--edc-equipment-surface-strong, #e8eae6);
    color: var(--edc-ink, #111210) !important;
  }
}
.edc-cart-tools #button-coupon:focus-visible {
  position: relative;
  z-index: 2;
  border-color: transparent;
  outline: 0;
  background: var(--edc-equipment-surface-strong, #e8eae6);
  box-shadow: none;
}
.edc-cart-tools .edc-coupon-feedback {
  margin: 8px 0 0;
  color: #6d6d68;
  font-size: 13px;
  line-height: 1.4;
}
.edc-cart-tools .edc-coupon-feedback[hidden] {
  display: none;
}
.edc-cart-tools .edc-coupon-feedback.is-error {
  color: #8b3e38;
}

.edc-cart-notice {
  position: fixed;
  z-index: 1100;
  top: calc(var(--edc-header-height, 88px) + 16px);
  right: max(16px, calc((100vw - var(--edc-container, 1440px)) / 2));
  width: min(420px, calc(100vw - 32px));
  margin: 0;
  padding: 13px 10px 13px 16px;
  border: 1px solid var(--edc-line, #dfe1dc);
  border-radius: var(--edc-equipment-control, 7px);
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr) 36px;
  align-items: center;
  gap: 11px;
  background: #fff;
  color: var(--edc-ink, #151715);
  font-family: inherit;
  font-size: 14px;
  line-height: 1.45;
  box-shadow: 0 16px 42px rgba(24, 28, 25, .14);
}
.edc-cart-notice > .edc-status-icon { width: 20px; height: 20px; fill: none; stroke: var(--edc-positive, #27643c); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.edc-cart-notice a {
  color: inherit;
  font-weight: 650;
  text-underline-offset: 3px;
}
.edc-cart-notice .close {
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  display: grid;
  place-items: center;
  background: transparent;
  color: inherit;
  opacity: .65;
}
.edc-cart-notice .close svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; }
.edc-cart-notice .close:hover { opacity: 1; }

.edc-empty-state { display: grid; justify-items: start; max-width: 720px; margin: clamp(64px, 12vw, 160px) auto; padding: clamp(32px, 6vw, 72px); border: 1px solid #d5d5cf; background: #f4f4f0; }
.edc-empty-state h1 { margin: 6px 0 20px; font-size: clamp(40px, 7vw, 76px); line-height: .95; letter-spacing: -.045em; }
.edc-empty-state__text { margin-bottom: 28px; color: #666; font-size: 17px; }
.edc-empty-state .edc-cart-checkout { min-width: 210px; }

@media (max-width: 1120px) {
  .edc-cart-layout { grid-template-columns: 1fr 320px; gap: 30px; }
  .edc-cart-item { grid-template-columns: 112px minmax(160px, 1fr) 130px 105px; }
  .edc-cart-item__image { width: 112px; }
  .edc-cart-item__price { display: none; }
}

@media (max-width: 820px) {
  .edc-cart-page { padding-top: 12px; }
  .edc-cart-heading { margin: 28px 0 24px; }
  .edc-cart-layout { grid-template-columns: 1fr; }
  .edc-cart-summary { position: static; order: 1; }
}

@media (max-width: 640px) {
  .edc-cart-heading { align-items: start; flex-direction: column; gap: 8px; }
  .edc-cart-heading h1 { font-size: 44px; }
  .edc-cart-item { grid-template-columns: 92px minmax(0, 1fr); gap: 14px; align-items: start; padding: 18px 0; }
  .edc-cart-item__image { width: 92px; }
  .edc-cart-item__info { padding-right: 4px; }
  .edc-cart-item__name { font-size: 17px; }
  .edc-cart-item__controls { grid-column: 1 / 3; grid-row: 2; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
  .edc-cart-item__controls > label { width: 100%; }
  .edc-cart-item__total { grid-column: 1 / 3; grid-row: 3; display: flex; justify-content: space-between; align-items: baseline; padding-top: 4px; }
  .edc-cart-item__price { display: none; }
  .edc-cart-summary { padding: 24px 20px; }
  .edc-empty-state { margin: 40px auto; padding: 30px 22px; }
}
