:root {
  --nst-cart-ink: #17171d;
  --nst-cart-white: #fff;
  --nst-cart-indigo: #5252c7;
  --nst-cart-signal: var(--nst-brand-yellow, #dcff59);
  --nst-cart-surface: #f5f5f7;
  --nst-cart-line: #d8d8dd;
  --nst-cart-muted: #66666f;
  --nst-cart-error: #b42318;
}

body.page-cart,
body.woocommerce-cart {
  overflow-x: clip;
  background: var(--nst-cart-white);
  color: var(--nst-cart-ink);
}

.nst-cart,
.nst-cart * {
  box-sizing: border-box;
}

.nst-cart [hidden] {
  display: none !important;
}

.nst-cart {
  min-height: 100vh;
  background: var(--nst-cart-white);
  color: var(--nst-cart-ink);
}

.nst-cart-header {
  min-height: 82px;
  border-bottom: 1px solid var(--nst-cart-line);
  background: var(--nst-cart-white);
}

.nst-cart-header__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(100%, 1440px);
  min-height: 81px;
  margin: 0 auto;
  padding: 0 48px;
}

.nst-cart-header__brand,
.nst-cart-header__continue {
  color: var(--nst-cart-ink);
  text-decoration: none;
}

.nst-cart-header__brand-frame {
  display: block;
  width: 144px;
  height: 36px;
}

.nst-cart-header__brand img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.nst-cart-header__continue {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.nst-cart-header__continue span {
  margin-left: 10px;
  font-size: 1rem;
}

.nst-cart-main {
  width: min(100%, 1440px);
  margin: 0 auto;
}

.nst-cart-intro {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  width: calc(100% - 112px - 380px - 36px);
  margin-left: 56px;
  padding: 64px 0 28px;
  border-bottom: 1px solid var(--nst-cart-ink);
}

.nst-cart-intro h1,
.nst-cart-intro p {
  margin: 0;
}

.nst-cart-intro h1 {
  font-size: clamp(3.25rem, 5vw, 5rem);
  font-weight: 800;
  letter-spacing: -0.06em;
  line-height: 0.92;
}

.nst-cart-intro p {
  color: var(--nst-cart-muted);
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.nst-cart-runtime .wp-block-woocommerce-cart {
  margin: 0 !important;
  max-width: none !important;
}

.nst-cart .wp-block-woocommerce-filled-cart-block {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 380px);
  align-items: start;
  gap: 36px;
  margin: 0;
  padding: 28px 56px 72px !important;
}

.nst-cart .wp-block-woocommerce-cart-items-block {
  width: 100% !important;
  max-width: none !important;
  min-width: 0;
  padding: 0 !important;
}

.nst-cart .wp-block-woocommerce-cart-totals-block {
  width: 100% !important;
  max-width: none !important;
  position: sticky;
  top: calc(24px + var(--wp-admin--admin-bar--height, 0px));
  align-self: start;
  min-width: 0;
  min-height: 0;
  padding: 28px !important;
  border: 1px solid var(--nst-cart-line);
  background: var(--nst-cart-surface);
}

.nst-cart .wc-block-cart-items {
  width: 100%;
  margin: 0;
  border: 0 !important;
  border-collapse: separate;
  border-spacing: 0 16px;
}

.nst-cart .wc-block-cart-items thead {
  display: none;
}

.nst-cart .wc-block-cart-items__row {
  display: grid;
  grid-template-columns: 152px minmax(0, 1fr) minmax(96px, auto) !important;
  gap: 28px;
  align-items: center;
  margin-bottom: 16px;
  padding: 24px !important;
  border: 1px solid var(--nst-cart-line);
}

.nst-cart .wc-block-cart-items__row > td {
  width: auto !important;
  padding: 0 !important;
  border: 0 !important;
  vertical-align: middle !important;
}

.nst-cart .wc-block-cart-item__image,
.nst-cart .wc-block-cart-item__image a {
  display: block;
  width: 152px !important;
  min-width: 152px !important;
  max-width: 152px !important;
  height: 152px !important;
  margin: 0;
  overflow: hidden;
  background: transparent;
}

.nst-cart .wc-block-cart-item__image img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: contain;
  object-position: 50% 48%;
  background: transparent;
  transform: none;
}

.nst-cart .wc-block-cart-item__product {
  display: flex;
  align-content: center;
  align-items: center;
  flex-wrap: wrap;
  column-gap: 12px;
  row-gap: 0;
  min-width: 0;
  padding: 0 !important;
}

.nst-cart .wc-block-components-product-name {
  flex: 0 0 100%;
  margin: 0 !important;
  color: var(--nst-cart-ink);
  font-size: 1.125rem !important;
  font-weight: 800 !important;
  letter-spacing: -0.025em;
  line-height: 1.333333 !important;
  text-decoration: none;
}

.nst-cart .wc-block-cart-item__prices,
.nst-cart .wc-block-components-product-price {
  flex: 0 0 100%;
  margin: 2px 0 0 !important;
  color: var(--nst-cart-muted);
  font-size: 0.875rem !important;
  font-weight: 500 !important;
  line-height: 1.428571 !important;
}

.nst-cart .wc-block-components-product-metadata,
.nst-cart .wc-block-components-product-details {
  flex: 0 0 100%;
  margin: 6px 0 0 !important;
  color: var(--nst-cart-muted);
  font-size: 0.8125rem;
  line-height: 1.45;
}

.nst-cart .wc-block-components-quantity-selector {
  display: inline-flex;
  width: max-content;
  min-height: 44px;
  margin: 16px 0 0 !important;
  overflow: hidden;
  border: 1px solid var(--nst-cart-ink);
  border-radius: 0;
}

.nst-cart .wc-block-components-quantity-selector__button,
.nst-cart .wc-block-components-quantity-selector__input {
  flex: 0 0 44px;
  width: 44px;
  max-width: 44px;
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  border-radius: 0;
  text-align: center;
}

.nst-cart .wc-block-cart-item__remove-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  min-width: 44px;
  min-height: 44px;
  margin: 16px 0 0 !important;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--nst-cart-ink);
  font-size: 0;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-decoration: none;
}

.nst-cart .wc-block-cart-item__remove-link::before {
  content: "×";
  font-size: 1.25rem;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1;
}

.nst-cart .wc-block-cart-item__remove-link:has(svg)::before {
  content: none;
}

.nst-cart .wc-block-cart-item__remove-link svg {
  display: block;
  width: 20px;
  height: 20px;
  pointer-events: none;
}

.nst-cart .wc-block-cart-item__total {
  display: flex !important;
  align-self: stretch;
  align-items: center;
  justify-content: flex-end;
  min-width: 96px;
  padding: 0 !important;
  font-size: 1rem !important;
  font-weight: 800 !important;
  line-height: 1.5 !important;
  text-align: right;
}

.nst-cart .wc-block-cart__totals-title {
  display: block !important;
  margin: 0 0 20px !important;
  padding: 0 !important;
  color: var(--nst-cart-ink);
  font-size: 1.25rem !important;
  font-weight: 800 !important;
  letter-spacing: -0.025em !important;
  line-height: 1.3 !important;
  text-align: left;
  text-transform: none !important;
}

.nst-cart .wc-block-components-totals-wrapper {
  padding: 0;
  border: 0;
}

.nst-cart .wp-block-woocommerce-cart-order-summary-totals-block {
  padding-bottom: 0 !important;
  border: 0 !important;
}

.nst-cart .wc-block-components-totals-item__description:empty {
  display: none;
}

.nst-cart .wc-block-components-totals-item {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 20px;
  min-height: 52px;
  padding: 14px 0 !important;
  border-top: 1px solid var(--nst-cart-line);
  font-size: 0.875rem !important;
  line-height: 1.428571 !important;
}

.nst-cart .wc-block-components-totals-shipping .wc-block-components-totals-item__label,
.nst-cart .wc-block-components-totals-shipping .wc-block-components-totals-item__value {
  align-self: center;
  margin: 0 !important;
  line-height: 1.428571 !important;
}

.nst-cart .wc-block-components-totals-footer-item {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 20px;
  padding: 20px 0 !important;
  border-top: 1px solid var(--nst-cart-ink);
  font-size: 1.125rem !important;
  font-weight: 800 !important;
  line-height: 1.333333 !important;
}

.nst-cart .wc-block-components-totals-footer-item > * {
  margin: 0 !important;
  font-size: inherit !important;
  font-weight: inherit !important;
  line-height: inherit !important;
}

.nst-cart .wc-block-components-totals-footer-item > .wc-block-components-totals-item__value {
  margin-left: auto !important;
  text-align: right;
}

.nst-cart [data-nst-cart-update-status] {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  margin: -1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  clip-path: inset(50%) !important;
  border: 0 !important;
  white-space: nowrap !important;
}

.nst-cart .wc-block-components-totals-shipping__change-address__link,
.nst-cart .wc-block-components-shipping-calculator,
.nst-cart .wc-block-cart__shipping-calculator {
  display: none !important;
}

.nst-cart .wc-block-components-totals-coupon {
  border-top: 1px solid var(--nst-cart-ink);
}

.nst-cart .wc-block-components-panel__button {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  width: 100%;
  min-height: 44px;
  padding: 0 !important;
  border-radius: 0;
  font-size: 0.875rem !important;
  font-weight: 700 !important;
  letter-spacing: 0 !important;
  line-height: 1.428571 !important;
  text-transform: none !important;
}

.nst-cart .wc-block-components-totals-coupon__button.contained {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100%;
  min-height: 48px;
  padding: 0 18px !important;
  border: 1px solid var(--nst-cart-ink) !important;
  border-radius: 0 !important;
  background: var(--nst-cart-ink) !important;
  color: var(--nst-cart-white) !important;
  font-size: 0.8125rem !important;
  font-weight: 800 !important;
  letter-spacing: 0.04em !important;
  line-height: 1.2 !important;
  text-align: center !important;
  text-transform: uppercase !important;
  transition: background-color 160ms ease, color 160ms ease, opacity 160ms ease;
}

.nst-cart .wc-block-components-totals-coupon__button.contained:hover:not(:disabled) {
  background: var(--nst-cart-white) !important;
  color: var(--nst-cart-ink) !important;
}

.nst-cart .wc-block-components-totals-coupon__button.contained:active:not(:disabled) {
  opacity: 0.72;
}

.nst-cart .wc-block-components-totals-coupon__button.contained:focus-visible {
  outline: 3px solid var(--nst-cart-signal);
  outline-offset: 3px;
}

.nst-cart .wc-block-components-totals-coupon__button.contained:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.nst-cart .wc-block-components-totals-footer-item[data-nst-total-state="updating"] > .wc-block-components-skeleton__element,
.nst-cart .wc-block-components-totals-footer-item[data-nst-total-state="updating"] > .wc-block-components-totals-item__value:has(.wc-block-components-skeleton__element) {
  display: none !important;
}

.nst-cart .wc-block-components-totals-footer-item[data-nst-total-state="updating"]::after {
  content: attr(data-nst-retained-total);
  color: currentColor;
  font: inherit;
  opacity: 0.55;
}

.nst-cart .wc-block-components-totals-footer-item.is-nst-total-settling .wc-block-components-totals-item__value,
.nst-cart .wc-block-components-totals-footer-item.is-nst-total-settling .wc-block-components-formatted-money-amount,
.nst-cart .wc-block-components-totals-footer-item.is-nst-total-settling strong {
  animation: nst-cart-total-settle 160ms ease-out;
}

@keyframes nst-cart-total-settle {
  from { opacity: 0.55; transform: translateY(2px); }
  to { opacity: 1; transform: translateY(0); }
}

.nst-cart .wc-block-components-text-input input {
  min-height: 48px;
  border: 1px solid var(--nst-cart-line);
  border-radius: 0;
}

.nst-cart .wc-block-cart__submit {
  margin: 20px 0 0;
}

.nst-cart .wc-block-cart__submit-container,
.nst-cart .wc-block-cart__submit-container--sticky {
  position: static !important;
  width: 100% !important;
  padding: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.nst-cart .wc-block-cart__submit-container--sticky::before {
  content: none !important;
}

.nst-cart .wc-block-cart__submit-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 56px;
  border: 1px solid var(--nst-cart-ink);
  border-radius: 0;
  background: var(--nst-cart-ink);
  color: var(--nst-cart-white);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-decoration: none;
  text-transform: uppercase;
}

.nst-cart.is-updating .wc-block-cart__submit-button {
  opacity: 0.55;
  pointer-events: none;
}

.nst-cart-empty {
  padding: 72px 56px 80px;
}

.nst-cart-empty__intro {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  padding-bottom: 34px;
  border-bottom: 1px solid var(--nst-cart-ink);
}

.nst-cart-empty__intro h1,
.nst-cart-empty__intro p,
.nst-cart-empty__label {
  margin: 0;
}

.nst-cart-empty__intro h1 {
  max-width: 760px;
  font-size: clamp(3.5rem, 6vw, 6rem);
  letter-spacing: -0.06em;
  line-height: 0.92;
}

.nst-cart-empty__intro p {
  max-width: 300px;
  color: var(--nst-cart-muted);
  font-size: 0.9375rem;
  line-height: 1.5;
}

.nst-cart-empty__label {
  margin-top: 30px;
  color: var(--nst-cart-indigo);
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.nst-cart-empty__routes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.nst-cart-empty__route {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  border: 1px solid var(--nst-cart-line);
  color: var(--nst-cart-ink);
  text-decoration: none;
}

.nst-cart-empty__media {
  grid-column: 1 / -1;
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--nst-cart-surface);
}

.nst-cart-empty__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.nst-cart-empty__route strong,
.nst-cart-empty__route > span:last-child {
  padding: 16px;
}

.nst-cart-empty__explore {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  margin-top: 24px;
  padding: 0 24px;
  background: var(--nst-cart-ink);
  color: var(--nst-cart-white);
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-decoration: none;
}

.nst-cart-empty__explore span {
  margin-left: 10px;
}

.nst-cart.is-empty .nst-cart-intro {
  display: none;
}

.nst-cart.is-empty .wp-block-woocommerce-empty-cart-block {
  display: none !important;
}

.nst-cart .wc-block-components-notice-banner {
  margin: 16px 0;
  border: 0;
  border-left: 4px solid var(--nst-cart-indigo);
  border-radius: 0;
  background: var(--nst-cart-surface);
  color: var(--nst-cart-ink);
}

.nst-cart .wc-block-components-notice-banner.is-error {
  border-left-color: var(--nst-cart-error);
}

.nst-cart :focus-visible {
  outline: 3px solid var(--nst-cart-signal);
  outline-offset: 3px;
}

.nst-cart:not(.is-ready) .nst-cart-runtime {
  opacity: 0;
}

.nst-cart.is-ready .nst-cart-runtime {
  opacity: 1;
  transition: opacity 280ms ease;
}

@media (max-width: 1023px) {
  .nst-cart-header__bar {
    padding: 0 24px;
  }

  .nst-cart-intro {
    width: auto;
    margin: 0 24px;
    padding: 48px 0 24px;
  }

  .nst-cart .wp-block-woocommerce-filled-cart-block {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
    padding: 24px 24px 48px !important;
  }

  .nst-cart .wp-block-woocommerce-cart-items-block {
    padding: 0;
  }

  .nst-cart .wc-block-cart-items__row {
    grid-template-columns: 118px minmax(0, 1fr) minmax(96px, auto) !important;
    gap: 22px;
  }

  .nst-cart .wc-block-cart-item__image,
  .nst-cart .wc-block-cart-item__image a,
  .nst-cart .wc-block-cart-item__image img {
    width: 100%;
    height: 100%;
  }

  .nst-cart .wc-block-cart-item__image,
  .nst-cart .wc-block-cart-item__image a {
    width: 118px !important;
    min-width: 118px !important;
    max-width: 118px !important;
    height: 118px !important;
  }

  .nst-cart .wp-block-woocommerce-cart-totals-block {
    position: static;
    min-height: 0;
    padding: 28px !important;
    border: 1px solid var(--nst-cart-line);
  }

  .nst-cart-empty {
    padding: 56px 24px 64px;
  }
}

@media (max-width: 600px) {
  .nst-cart-header,
  .nst-cart-header__bar {
    min-height: 70px;
  }

  .nst-cart-header__bar {
    padding: 0 20px;
  }

  .nst-cart-header__brand-frame {
    width: 128px;
    height: 32px;
  }

  .nst-cart-header__continue {
    font-size: 0.625rem;
  }

  .nst-cart-header__continue span {
    margin-left: 6px;
  }

  .nst-cart-intro {
    margin: 0 20px;
    padding: 36px 0 20px;
  }

  .nst-cart-intro h1 {
    font-size: clamp(2.75rem, 13vw, 3.75rem);
  }

  .nst-cart .wp-block-woocommerce-cart-items-block {
    padding: 0;
  }

  .nst-cart .wp-block-woocommerce-filled-cart-block {
    gap: 20px;
    padding: 8px 20px 40px !important;
  }

  .nst-cart .wc-block-cart-items__row {
    grid-template-columns: 112px minmax(0, 1fr) !important;
    gap: 16px;
    padding: 16px !important;
  }

  .nst-cart .wc-block-cart-items__row > .wc-block-cart-item__image {
    grid-column: 1 !important;
    grid-row: 1 !important;
  }

  .nst-cart .wc-block-cart-items__row > .wc-block-cart-item__product {
    grid-column: 2 !important;
    grid-row: 1 !important;
  }

  .nst-cart .wc-block-cart-item__image,
  .nst-cart .wc-block-cart-item__image a,
  .nst-cart .wc-block-cart-item__image img {
    width: 100%;
    height: 100%;
  }

  .nst-cart .wc-block-cart-item__image,
  .nst-cart .wc-block-cart-item__image a {
    width: 112px !important;
    min-width: 112px !important;
    max-width: 112px !important;
    height: 112px !important;
  }

  .nst-cart .wc-block-cart-item__total {
    display: none !important;
    grid-column: 2;
    align-self: auto;
    min-width: 0;
    min-height: 24px;
    padding: 0 !important;
    text-align: left;
    justify-content: flex-start;
  }

  .nst-cart .wc-block-cart-item__quantity {
    flex-wrap: wrap;
    min-width: 0;
  }

  .nst-cart .wc-block-components-product-name {
    font-size: 1rem !important;
    line-height: 1.4 !important;
  }

  .nst-cart .wp-block-woocommerce-cart-totals-block {
    padding: 24px 16px !important;
  }

  .nst-cart-empty {
    padding: 42px 20px 52px;
  }

  .nst-cart-empty__intro {
    display: block;
    padding-bottom: 24px;
  }

  .nst-cart-empty__intro h1 {
    font-size: clamp(3rem, 14vw, 4rem);
  }

  .nst-cart-empty__intro p {
    margin-top: 16px;
  }

  .nst-cart-empty__routes {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .nst-cart-empty__route {
    grid-template-columns: 106px minmax(0, 1fr) auto;
    min-height: 106px;
  }

  .nst-cart-empty__media {
    grid-column: auto;
    width: 106px;
    height: 106px;
  }

  .nst-cart-empty__route strong,
  .nst-cart-empty__route > span:last-child {
    padding: 14px;
  }

  .nst-cart-empty__explore {
    width: 100%;
  }
}

@media (max-width: 340px) {
  .nst-cart-header__brand-frame {
    width: 116px;
    height: 29px;
  }

  .nst-cart-header__continue {
    letter-spacing: 0.08em;
  }

  .nst-cart .wc-block-cart-items__row {
    grid-template-columns: 88px minmax(0, 1fr) !important;
    gap: 12px;
  }

  .nst-cart .wc-block-cart-item__image,
  .nst-cart .wc-block-cart-item__image a {
    width: 88px !important;
    min-width: 88px !important;
    max-width: 88px !important;
    height: 88px !important;
  }

  .nst-cart .wc-block-cart-item__product {
    column-gap: 6px;
  }

  .nst-cart .wc-block-cart-items__row {
    column-gap: 10px;
  }

  .nst-cart .wc-block-components-quantity-selector {
    flex-wrap: nowrap;
  }

  .nst-cart .wc-block-components-quantity-selector__button,
  .nst-cart .wc-block-components-quantity-selector__input {
    flex-basis: 44px;
  }
}
