.extoq-cart-page__container {
  max-width: var(--extoq-max);
  margin: 0 auto;
  padding: 1.2rem 12px;
  box-sizing: border-box;
}

.extoq-cart-page__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.8rem;
}

.extoq-cart-page__header h1 {
  margin: 0;
}

.extoq-cart-page__header p {
  margin: 0.4rem 0 0;
  color: #4a5562;
}

.extoq-cart-page__actions {
  display: flex;
  gap: 0.45rem;
}

.extoq-cart-page__back,
.extoq-cart-page__reservations,
.extoq-cart-page__clear {
  border: 1px solid #d9dee5;
  border-radius: 8px;
  background: #fff;
  padding: 0.45rem 0.7rem;
  font-size: 0.85rem;
  text-decoration: none;
  color: #1f2933;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.extoq-cart-page__back:hover,
.extoq-cart-page__back:focus-visible,
.extoq-cart-page__reservations:hover,
.extoq-cart-page__reservations:focus-visible,
.extoq-cart-page__clear:not(:disabled):hover,
.extoq-cart-page__clear:not(:disabled):focus-visible {
  background: #111827;
  border-color: #111827;
  color: #fff;
  box-shadow: 0 0 0 1px rgba(17, 24, 39, 0.1);
  outline: none;
}

.extoq-cart-page__reservations {
  display: inline-flex;
  align-items: center;
  gap: 0.32rem;
  font-weight: 700;
}

.extoq-cart-page__reservations-icon {
  width: 16px;
  height: 16px;
  display: inline-flex;
}

.extoq-cart-page__clear {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.extoq-cart-page__clear-icon {
  width: 14px;
  height: 14px;
  display: inline-block;
}

.extoq-cart-page__clear:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.extoq-cart-empty {
  border: 1px solid #d9dee5;
  background: #fff;
  border-radius: 10px;
  padding: 1rem;
  margin-top: 0.9rem;
}

.extoq-cart-empty.is-price-restricted {
  border: 0;
  background: transparent;
  padding: 0;
}

.extoq-alert {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  border: 1px solid #e4e7ec;
  border-radius: 10px;
  background: #f8fafc;
  padding: 0.9rem;
  color: #111827;
}

.extoq-alert--warning {
  border-color: #f3d46b;
  background: #fffbeb;
}

.extoq-alert--info {
  border-color: #bfdbfe;
  background: #eff6ff;
}

.extoq-alert--danger {
  border-color: #fecaca;
  background: #fff1f2;
}

.extoq-alert__icon {
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
}

.extoq-alert__content {
  min-width: 0;
  display: grid;
  gap: 0.25rem;
}

.extoq-alert__title,
.extoq-alert__description {
  margin: 0;
}

.extoq-alert__title {
  font-weight: 700;
}

.extoq-alert__description {
  color: #4b5563;
  line-height: 1.4;
}

.extoq-alert__action {
  justify-self: start;
  margin-top: 0.1rem;
  color: #111827;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.extoq-alert__action:hover,
.extoq-alert__action:focus-visible {
  color: #000;
}

.extoq-cart-list ul {
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.8rem;
}

.extoq-cart-item {
  border: 1px solid #d9dee5;
  border-radius: 10px;
  padding: 0.8rem;
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 0.8rem;
  background: #fff;
}

.extoq-cart-item__thumb img {
  width: 88px;
  height: 88px;
  object-fit: cover;
  border-radius: 8px;
}

.extoq-cart-item__meta h2 {
  font-size: 1rem;
  margin: 0 0 0.35rem;
}

.extoq-cart-item__meta h2 a {
  text-decoration: none;
}

.extoq-cart-item__meta p {
  margin: 0.2rem 0;
  font-size: 0.9rem;
}

.extoq-cart-item__sku {
  color: #4a5562;
}

.extoq-cart-item__qty-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 0.45rem 0;
}

.extoq-cart-item__qty-row label {
  display: grid;
  gap: 0.2rem;
  font-size: 0.82rem;
  color: #4a5562;
}

.extoq-cart-item__qty-row input {
  width: 84px;
  min-height: 38px;
  border: 1px solid #d9dee5;
  border-radius: 8px;
  padding: 0.35rem 0.45rem;
}

.extoq-cart-item__limit {
  margin: 0;
  font-size: 0.82rem;
  color: #4a5562;
}

.extoq-cash-offer {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  gap: 0.3rem;
  border: 1px solid #bbf7d0;
  border-radius: 6px;
  background: #ecfdf3;
  color: #118C4F;
  padding: 0.2rem 0.46rem;
  font-weight: 700;
  line-height: 1.22;
}

.extoq-cash-offer__icon {
  flex: 0 0 auto;
  width: 0.86rem;
  height: 0.86rem;
  background: #118C4F;
  -webkit-mask: var(--extoq-cash-icon-url) center / contain no-repeat;
  mask: var(--extoq-cash-icon-url) center / contain no-repeat;
}

.extoq-cart-item__cash-offer {
  margin-top: 0.28rem;
  font-size: 0.82rem;
}

.extoq-cart-item__remove {
  border: 0;
  background: transparent;
  padding: 0;
  margin-top: 0.35rem;
  color: #b91c1c;
  font-size: 0.84rem;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
}

.extoq-cart-item__remove-icon {
  width: 14px;
  height: 14px;
  display: inline-block;
  text-decoration: none;
}

.extoq-cart-item__remove-text {
  text-decoration: underline;
}

.extoq-cart-total {
  margin-top: 1rem;
  border: 1px solid #d9dee5;
  border-radius: 10px;
  background: #fff;
  padding: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.extoq-cart-order {
  margin-top: 1rem;
  border: 1px solid #d9dee5;
  border-radius: 10px;
  background: #fff;
  padding: 1rem;
  display: grid;
  gap: 0.85rem;
}

.extoq-cart-order__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.8rem;
}

.extoq-cart-order__header h2,
.extoq-cart-order__header p,
.extoq-cart-order__address p,
.extoq-cart-order__address strong {
  margin: 0;
}

.extoq-cart-order__header h2 {
  font-size: 1.1rem;
  line-height: 1.25;
}

.extoq-cart-order__header p,
.extoq-cart-order__address p {
  color: #4a5562;
  font-size: 0.92rem;
}

.extoq-cart-order__address {
  border: 1px solid #e4e7ec;
  border-radius: 8px;
  background: #f8fafc;
  display: grid;
  gap: 0.65rem;
  padding: 0.75rem;
}

.extoq-cart-order__fulfillment-options {
  display: grid;
  gap: 0.55rem;
}

.extoq-cart-order__fulfillment-option {
  border: 1px solid #d8e0ea;
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  display: flex;
  gap: 0.55rem;
  padding: 0.65rem;
}

.extoq-cart-order__fulfillment-option span {
  display: grid;
  gap: 0.15rem;
  min-width: 0;
}

.extoq-cart-order__fulfillment-option--stacked {
  align-items: flex-start;
  flex-wrap: wrap;
}

.extoq-cart-order__fulfillment-option--stacked span {
  flex: 1 1 18rem;
}

.extoq-cart-order__address-select {
  flex: 1 1 100%;
  width: 100%;
  border: 1px solid #d8e0ea;
  border-radius: 8px;
  background: #fff;
  color: #111827;
  font: inherit;
  min-height: 2.5rem;
  padding: 0.5rem 0.65rem;
}

.extoq-cart-order__fulfillment-option small,
.extoq-cart-order__address-note {
  color: #4a5562;
  font-size: 0.88rem;
  line-height: 1.4;
}

.extoq-cart-order__address-note {
  margin: 0;
}

.extoq-cart-order__label {
  color: #4a5562;
  font-size: 0.78rem !important;
  font-weight: 700;
  text-transform: uppercase;
}

.extoq-cart-order__form {
  margin: 0;
  display: grid;
  gap: 1rem;
}

.extoq-cart-payment-terms {
  border: 1px solid #d8e0ea;
  border-radius: 8px;
  background: #fff;
  display: grid;
  gap: 0.85rem;
  padding: 1rem;
}

.extoq-cart-payment-terms__header h3,
.extoq-cart-payment-terms__header p,
.extoq-cart-payment-terms__summary p {
  margin: 0;
}

.extoq-cart-payment-terms__header h3 {
  font-size: 1rem;
  line-height: 1.25;
}

.extoq-cart-payment-terms__header p,
.extoq-cart-payment-terms__hint {
  color: #5a6472;
  font-size: 0.9rem;
}

.extoq-cart-payment-terms__modes,
.extoq-cart-payment-terms__options {
  display: grid;
  gap: 0.6rem;
}

.extoq-cart-payment-terms__modes {
  display: none;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.extoq-cart-payment-terms__toggle {
  width: fit-content;
  border: 1px solid #d8e0ea;
  border-radius: 999px;
  background: #fff;
  color: #1f2933;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 800;
  padding: 0.45rem 0.72rem 0.45rem 0.5rem;
  user-select: none;
}

.extoq-cart-payment-terms__toggle input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.extoq-cart-payment-terms__switch {
  position: relative;
  width: 44px;
  height: 24px;
  border-radius: 999px;
  background: #cbd5e1;
  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.12);
  flex: 0 0 auto;
  transition: background 150ms ease;
}

.extoq-cart-payment-terms__switch::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.28);
  transition: transform 150ms ease;
}

.extoq-cart-payment-terms__toggle input:checked + .extoq-cart-payment-terms__switch {
  background: #118c4f;
}

.extoq-cart-payment-terms__toggle input:checked + .extoq-cart-payment-terms__switch::after {
  transform: translateX(20px);
}

.extoq-cart-payment-terms__toggle:focus-within {
  outline: 2px solid rgba(17, 140, 79, 0.28);
  outline-offset: 2px;
}

.extoq-cart-payment-terms__modes label,
.extoq-cart-payment-terms__option {
  border: 1px solid #d8e0ea;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  gap: 0.55rem;
  padding: 0.7rem;
}

.extoq-cart-payment-terms__option span {
  display: grid;
  gap: 0.15rem;
}

.extoq-cart-payment-terms__option small {
  color: #4a5562;
}

.extoq-cart-payment-terms__mixed {
  display: grid;
  gap: 0.7rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.extoq-cart-payment-terms__single[hidden],
.extoq-cart-payment-terms__mixed[hidden] {
  display: none;
}

.extoq-cart-payment-terms__mixed-intro {
  grid-column: 1 / -1;
  margin: 0;
  color: #4a5562;
  font-size: 0.92rem;
}

.extoq-cart-payment-terms__mixed label {
  display: grid;
  gap: 0.25rem;
  font-weight: 700;
}

.extoq-cart-payment-terms__mixed select,
.extoq-cart-payment-terms__mixed input {
  border: 1px solid #d8e0ea;
  border-radius: 8px;
  font: inherit;
  min-height: 2.45rem;
  padding: 0.5rem 0.65rem;
}

.extoq-cart-payment-terms__hint {
  align-self: end;
  margin: 0;
}

.extoq-cart-payment-terms__summary {
  border-radius: 8px;
  background: #f4f8ff;
  color: #1d3557;
  display: grid;
  gap: 0.25rem;
  padding: 0.8rem;
}

.extoq-cart-payment-terms__summary ul {
  margin: 0.2rem 0;
  padding-left: 1.1rem;
}

.extoq-cart-payment-terms__summary-list.is-mixed {
  display: grid;
  gap: 0.55rem;
  list-style: none;
  padding-left: 0;
}

.extoq-cart-payment-terms__summary-list.is-mixed li {
  border: 1px solid #d8e7fb;
  border-radius: 8px;
  background: #fff;
  display: grid;
  gap: 0.16rem;
  padding: 0.62rem 0.7rem;
}

.extoq-cart-payment-terms__summary-list.is-mixed span {
  color: #3f4c5c;
  font-size: 0.9rem;
}

.extoq-cart-order__submit {
  width: 100%;
  min-height: 2.75rem;
  border: 1px solid #111827;
  border-radius: 8px;
  background: #111827;
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  padding: 0.72rem 1rem;
}

.extoq-cart-order__submit:hover,
.extoq-cart-order__submit:focus-visible {
  border-color: #f3bc00;
  background: #fcc500;
  color: #111827;
}

.extoq-cart-order__submit:disabled {
  cursor: progress;
  opacity: 0.72;
}

@media (max-width: 640px) {
  .extoq-cart-page__header {
    flex-direction: column;
  }

  .extoq-cart-item {
    grid-template-columns: 68px minmax(0, 1fr);
    padding: 0.65rem;
    gap: 0.65rem;
  }

  .extoq-cart-item__thumb img {
    width: 68px;
    height: 68px;
  }

  .extoq-cart-payment-terms__modes,
  .extoq-cart-payment-terms__mixed {
    grid-template-columns: 1fr;
  }
}
