/* Thunder EV — Shopping cart page */
body.tev-cart-page {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  font-family: 'Poppins', sans-serif;
  background: #f1f5f9;
  color: #0f172a;
}

body.tev-cart-page .tev-subnav .brand {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-wrap: nowrap;
}

body.tev-cart-page .brand-thunder {
  color: #1d4ed8;
  font-weight: 800;
}

body.tev-cart-page .brand-ev {
  color: #ff6600;
  font-weight: 900;
}

body.tev-cart-page .brand-charging {
  font-size: 0.62rem;
  color: #1d4ed8;
  align-self: flex-end;
  margin-bottom: 2px;
}

.tev-cart-static-notice {
  margin: 0 0 1rem;
  padding: 0.75rem 0.9rem;
  border-radius: 10px;
  background: #eff6ff;
  color: #1e3a8a;
  font-size: 0.88rem;
  line-height: 1.5;
  border: 1px solid #bfdbfe;
}

.tev-cart-auth-banner {
  max-width: 960px;
  margin: 0 auto 1.25rem;
  padding: 0 1rem;
}

.tev-cart-auth-banner__inner {
  background: linear-gradient(135deg, #eff6ff 0%, #fff 55%);
  border: 1px solid #bfdbfe;
  border-radius: 16px;
  padding: 1.25rem 1.5rem;
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.08);
}

.tev-cart-auth-banner h2 {
  margin: 0 0 0.35rem;
  font-size: 1.15rem;
  color: #1e3a8a;
}

.tev-cart-auth-banner__lead {
  margin: 0 0 1rem;
  font-size: 0.88rem;
  color: #475569;
  line-height: 1.45;
}

.tev-cart-auth-banner__cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.tev-cart-auth-banner__label {
  margin: 0 0 0.5rem;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #64748b;
}

.tev-checkout-progress {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 10px;
  padding: 0;
  list-style: none;
}

.tev-checkout-progress__step {
  flex: 1;
  min-width: 5.5rem;
  text-align: center;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 6px 8px;
  border-radius: 8px;
  background: #e2e8f0;
  color: #64748b;
}

.tev-checkout-progress__step.is-active {
  background: #2563eb;
  color: #fff;
}

.tev-checkout-progress__step.is-done {
  background: #dcfce7;
  color: #166534;
}

.tev-checkout-flow-hint {
  margin: 0 0 10px;
  font-size: 0.8rem;
  color: #1d4ed8;
  font-weight: 600;
  line-height: 1.4;
}

.tev-checkout-step {
  margin-bottom: 1rem;
}

.tev-checkout-step.tev-hidden {
  display: none;
}

.tev-checkout-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.tev-deliver-confirm__card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 12px 14px;
  margin: 10px 0;
  font-size: 0.88rem;
  line-height: 1.5;
}

.tev-addr-radio {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 10px 12px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  margin-bottom: 8px;
  cursor: pointer;
  background: #fff;
}

.tev-addr-radio:has(input:checked) {
  border-color: #3b82f6;
  background: #eff6ff;
}

.tev-addr-radio__lines {
  font-size: 0.82rem;
  color: #475569;
}

.tev-btn--link {
  background: transparent;
  border: none;
  color: #2563eb;
  padding: 0.25rem 0;
  font-size: 0.85rem;
  cursor: pointer;
  text-decoration: underline;
}

.tev-review-block {
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid #e2e8f0;
}

.tev-review-block h4 {
  margin: 0 0 6px;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #64748b;
}

.tev-review-items {
  margin: 0;
  padding-left: 1.1rem;
  font-size: 0.88rem;
}

.tev-review-totals {
  margin-top: 12px;
}

.tev-review-totals > div {
  display: flex;
  justify-content: space-between;
  padding: 4px 0;
  font-size: 0.9rem;
}

.tev-review-grand {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid #cbd5e1;
  font-weight: 700;
}

.tev-marketplace-ack {
  margin: 1rem 0 0;
  padding: 0.85rem 0.95rem;
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 10px;
}

.tev-marketplace-ack__label {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  font-size: 0.82rem;
  line-height: 1.45;
  color: #334155;
  cursor: pointer;
}

.tev-marketplace-ack__label input {
  margin-top: 0.2rem;
  flex-shrink: 0;
}

.tev-marketplace-ack__label a {
  color: #1d4ed8;
  font-weight: 600;
}

#checkoutProceedPayment:disabled,
#buyBtn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.tev-addr-form .tev-field {
  margin-bottom: 8px;
}

.tev-addr-form-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  margin-top: 12px;
}

.checkout-panel .tev-hidden {
  display: none !important;
}

.tev-cart-auth-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  border-radius: 10px;
  padding: 0.65rem 1rem;
  cursor: pointer;
  border: 2px solid transparent;
}

.tev-cart-auth-btn--primary {
  background: #2563eb;
  color: #fff;
  border-color: #2563eb;
}

.tev-cart-auth-btn--outline {
  background: #fff;
  color: #1d4ed8;
  border-color: #93c5fd;
}

body.tev-cart-page .tev-subpage-main,
body.tev-cart-page .tev-cart-main {
  flex: 1;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0 0 2rem;
  box-sizing: border-box;
}

body.tev-cart-page .tev-subnav {
  width: 100%;
  padding-left: clamp(0.75rem, 2.5vw, 2rem);
  padding-right: clamp(0.75rem, 2.5vw, 2rem);
}

/* Hero — full bleed */
.tev-cart-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  width: 100%;
  box-sizing: border-box;
  background: linear-gradient(135deg, #1e3a8a, #2563eb 45%, #0ea5e9);
  border-radius: 0;
  padding: 1.1rem clamp(0.75rem, 2.5vw, 2rem);
  color: #fff;
  margin: 0 0 0;
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.15);
}

.tev-cart-hero__text h1 {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.tev-cart-hero__text p {
  margin: 0.35rem 0 0;
  font-size: 0.82rem;
  opacity: 0.92;
  line-height: 1.4;
}

.tev-cart-hero__cta {
  flex-shrink: 0;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.45rem 1rem;
  border-radius: 99px;
  text-decoration: none;
  color: #fff;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.4);
  white-space: nowrap;
}

.tev-cart-hero__cta:hover {
  background: rgba(255, 255, 255, 0.28);
}

/* Empty state — full width */
.cart-empty-state {
  text-align: center;
  padding: 3rem clamp(0.75rem, 2.5vw, 2rem);
  background: #fff;
  border-radius: 0;
  border: none;
  border-top: 2px dashed #cbd5e1;
  border-bottom: 2px dashed #cbd5e1;
  max-width: none;
  width: 100%;
  margin: 0;
  box-sizing: border-box;
}

.cart-empty-state h2 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 800;
  color: #1e3a8a;
}

.cart-empty-state p {
  margin: 0.5rem 0 1.25rem;
  font-size: 0.88rem;
  color: #64748b;
  line-height: 1.45;
}

.cart-empty-state a {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 800;
  color: #2563eb;
  text-decoration: none;
  padding: 0.55rem 1.1rem;
  border-radius: 99px;
  background: #eff6ff;
  border: 1px solid #dbeafe;
}

/* Two-column layout — edge to edge */
.tev-cart-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 440px);
  gap: 0;
  align-items: stretch;
  width: 100%;
  min-height: 320px;
  background: #fff;
  border-top: 1px solid #e2e8f0;
  box-sizing: border-box;
}

.tev-cart-section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.85rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid #e2e8f0;
}

.tev-cart-section-head h2 {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 800;
  color: #1e3a8a;
  letter-spacing: -0.01em;
}

.tev-cart-section-head span {
  font-size: 0.72rem;
  font-weight: 600;
  color: #64748b;
}

.tev-cart-items-card {
  background: #fff;
  border-radius: 0;
  padding: 1.15rem clamp(0.75rem, 2.5vw, 2rem) 1.35rem;
  border: none;
  border-right: 1px solid #e2e8f0;
  box-shadow: none;
  min-width: 0;
}

.tev-cart-subtotal {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0;
  padding-top: 1rem;
  margin-top: 0.5rem;
  border-top: 1px solid #e2e8f0;
  font-size: 1rem;
  font-weight: 800;
  color: #0f172a;
}

.tev-cart-subtotal strong {
  font-size: 1.15rem;
  font-weight: 900;
  color: #16a34a;
}

/* Line item */
.cart-item {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) auto;
  gap: 0.85rem 1rem;
  align-items: start;
  background: #f8fafc;
  border-radius: 12px;
  padding: 0.85rem;
  margin-bottom: 0.65rem;
  border: 1px solid #e2e8f0;
  transition: box-shadow 0.2s, border-color 0.2s;
}

.cart-item:last-child {
  margin-bottom: 0;
}

.cart-item:hover {
  border-color: #bfdbfe;
  box-shadow: 0 6px 18px rgba(37, 99, 235, 0.08);
}

.cart-item__img {
  width: 72px;
  height: 72px;
  object-fit: contain;
  background: #fff;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
}

.cart-item__body strong {
  display: block;
  font-size: 0.88rem;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.3;
  margin-bottom: 0.15rem;
}

.cart-item__stock {
  margin: 0.2rem 0 0.35rem;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.35;
}

.cart-item__stock--available {
  color: #15803d;
}

.cart-item__stock--low_stock {
  color: #b45309;
}

.cart-item__stock--out_of_stock,
.cart-item__stock--unavailable {
  color: #b91c1c;
}

.cart-item--unavailable {
  border-color: #fecaca;
  background: #fef2f2;
}

.cart-item--low-stock {
  border-color: #fde68a;
  background: #fffbeb;
}

.cart-item__resolve-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.55rem;
}

.cart-item__resolve-btn {
  font-family: inherit;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.4rem 0.65rem;
  border-radius: 8px;
  border: 1px solid #cbd5e1;
  background: #fff;
  color: #334155;
  cursor: pointer;
}

.cart-item__resolve-btn--wish {
  border-color: #fca5a5;
  color: #b91c1c;
}

.cart-item__resolve-btn:hover {
  background: #f1f5f9;
}

.tev-cart-validation {
  margin: 0 0 1rem;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
}

.tev-cart-val-title {
  margin: 0 0 0.5rem;
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #475569;
}

.tev-cart-val-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.tev-cart-val {
  font-size: 0.85rem;
  font-weight: 600;
}

.tev-cart-val--ok {
  color: #15803d;
}

.tev-cart-val--warn {
  color: #b45309;
}

.tev-cart-val--bad {
  color: #b91c1c;
}

.tev-cart-val-foot {
  margin: 0.55rem 0 0;
  font-size: 0.8rem;
  font-weight: 600;
}

.tev-cart-val-foot--ok {
  color: #15803d;
}

.tev-cart-val-foot--bad {
  color: #b91c1c;
}

.tev-cart-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #e2e8f0;
}

.tev-cart-action {
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 800;
  padding: 0.75rem 1rem;
  border-radius: 10px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, opacity 0.2s;
}

.tev-cart-action--checkout {
  background: #2563eb;
  color: #fff;
  border-color: #2563eb;
}

.tev-cart-action--checkout:hover:not(:disabled) {
  background: #1d4ed8;
}

.tev-cart-action--enquiry {
  background: #fff;
  color: #1d4ed8;
  border-color: #93c5fd;
}

.tev-cart-action--enquiry:hover {
  background: #eff6ff;
}

.tev-cart-action:disabled,
.tev-cart-action--blocked {
  background: #94a3b8 !important;
  border-color: #94a3b8 !important;
  color: #fff !important;
  cursor: not-allowed;
}

.tev-checkout-form--locked {
  opacity: 0.72;
  pointer-events: none;
}

#buyBtn.tev-btn-resolve {
  background: #94a3b8;
  border-color: #94a3b8;
  cursor: not-allowed;
}

@media (max-width: 520px) {
  .tev-cart-actions {
    grid-template-columns: 1fr;
  }
}

.cart-item__meta {
  font-size: 0.75rem;
  color: #64748b;
  line-height: 1.35;
}

.cart-item__qty {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.5rem;
}

.cart-item__qty button {
  width: 30px;
  height: 30px;
  border: 1px solid #cbd5e1;
  background: #fff;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1;
  color: #334155;
}

.cart-item__qty button:hover {
  background: #eff6ff;
  border-color: #93c5fd;
}

.cart-item__qty span {
  min-width: 1.5rem;
  text-align: center;
  font-size: 0.82rem;
  font-weight: 700;
}

.cart-item__aside {
  text-align: right;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.45rem;
  min-width: 5.5rem;
}

.cart-item__price {
  font-size: 0.95rem;
  font-weight: 800;
  color: #16a34a;
  white-space: nowrap;
}

.cart-item__remove {
  font-family: inherit;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.35rem 0.65rem;
  border-radius: 8px;
  cursor: pointer;
  background: #fff;
  color: #64748b;
  border: 1px solid #e2e8f0;
}

.cart-item__remove:hover {
  color: #dc2626;
  border-color: #fecaca;
  background: #fef2f2;
}

.cart-item--unavailable {
  opacity: 0.92;
  border-color: #fecaca;
  background: #fff5f5;
}

.cart-item__status {
  margin: 0.25rem 0 0;
  font-size: 0.72rem;
  font-weight: 700;
  color: #b91c1c;
}

.cart-item__no-buy {
  font-size: 0.68rem;
  font-weight: 700;
  color: #b91c1c;
}

.cart-item__unit {
  font-size: 0.68rem;
  color: #64748b;
}

.cart-item__secondary-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.5rem;
}

.cart-item__action {
  font-family: inherit;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.3rem 0.55rem;
  border-radius: 8px;
  cursor: pointer;
  background: #fff;
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
}

.cart-item__action:hover {
  background: #eff6ff;
}

.tev-cart-banner {
  margin: 0 0 0.75rem;
  padding: 0.65rem 0.85rem;
  border-radius: 10px;
  font-size: 0.8rem;
  line-height: 1.45;
}

.tev-cart-banner--info {
  background: #eff6ff;
  color: #1e40af;
  border: 1px solid #bfdbfe;
}

.tev-cart-subtotal-note {
  margin: 0.35rem 0 0;
  font-size: 0.75rem;
  color: #64748b;
}

.tev-cart-hint-links {
  margin: 0.65rem 0 0;
  font-size: 0.78rem;
}

.tev-cart-hint-links a {
  color: #2563eb;
  font-weight: 600;
  text-decoration: none;
}

.tev-cart-hint-links a:hover {
  text-decoration: underline;
}

@media (max-width: 520px) {
  .cart-item {
    grid-template-columns: 64px minmax(0, 1fr);
  }
  .cart-item__aside {
    grid-column: 1 / -1;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    text-align: left;
  }
}

/* Checkout panel */
.checkout-panel {
  background: #f8fafc;
  border-radius: 0;
  padding: 1.15rem clamp(0.75rem, 2.5vw, 2rem) 1.35rem;
  border: none;
  box-shadow: none;
  position: sticky;
  top: calc(44px + 0.75rem);
  max-height: calc(100vh - 44px - 1rem);
  overflow-y: auto;
}

.checkout-panel > h2 {
  margin: 0 0 0.75rem;
  padding: 0 0 0.65rem;
  font-size: 0.95rem;
  font-weight: 800;
  color: #1e3a8a;
  line-height: 1.2;
  border-bottom: 1px solid #e2e8f0;
}

.checkout-panel h3 {
  font-size: 0.82rem;
  color: #1e3a8a;
  margin: 1rem 0 0.5rem;
  padding: 0;
  line-height: 1.2;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.checkout-panel h3:first-of-type {
  margin-top: 0;
}

.checkout-panel label {
  font-size: 0.72rem;
  font-weight: 600;
  color: #475569;
  display: block;
  margin-bottom: 0.2rem;
}

.checkout-panel input,
.checkout-panel textarea {
  width: 100%;
  padding: 0.6rem 0.75rem;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.85rem;
  margin-bottom: 0.65rem;
  box-sizing: border-box;
}

.checkout-panel input:focus,
.checkout-panel textarea:focus {
  outline: 2px solid #93c5fd;
  outline-offset: 0;
  border-color: #2563eb;
}

.checkout-panel textarea {
  resize: vertical;
  min-height: 4rem;
}

.addr-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
  margin-bottom: 0;
}

.addr-grid > div {
  min-width: 0;
}

.addr-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.65rem;
  margin-bottom: 0;
}

.addr-block {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 0.85rem 0.85rem 0.15rem;
  margin-bottom: 0.85rem;
}

.addr-block p.addr-hint {
  font-size: 0.68rem;
  color: #64748b;
  margin: 0 0 0.55rem;
  line-height: 1.35;
}

.same-address-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0.35rem 0 0.85rem;
  font-size: 0.8rem;
  color: #334155;
  cursor: pointer;
  line-height: 1.35;
}

.same-address-row input {
  width: auto;
  margin: 0;
  flex-shrink: 0;
}

#deliveryFields.hidden {
  display: none;
}

.btn-primary {
  background: linear-gradient(135deg, #2563eb, #0ea5e9);
  color: #fff;
  border: none;
  padding: 0.85rem 1.25rem;
  border-radius: 10px;
  font-weight: 800;
  font-size: 0.9rem;
  cursor: pointer;
  width: 100%;
  margin-top: 0.35rem;
  font-family: inherit;
}

.btn-primary:hover:not(:disabled) {
  filter: brightness(1.05);
}

.btn-primary:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

#checkoutStatus {
  margin-top: 0.65rem;
  font-size: 0.82rem;
  display: none;
  line-height: 1.4;
  text-align: center;
}

/* Address modal + checkout buttons (shared with customer portal) */
.tev-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.45rem 0.85rem;
  border-radius: 10px;
  border: 1px solid #cbd5e1;
  background: #fff;
  color: #0f172a;
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
}

.tev-btn.primary {
  background: linear-gradient(135deg, #2563eb, #0ea5e9);
  border-color: transparent;
  color: #fff;
}

.tev-checkout-billing-block {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #e2e8f0;
}

.tev-checkout-delivery-summary {
  margin-bottom: 0.5rem;
}

.tev-cpo-dialog {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.tev-cpo-dialog.tev-hidden {
  display: none !important;
}

.tev-cpo-dialog-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
}

.tev-cpo-dialog-card {
  position: relative;
  z-index: 1;
  width: min(440px, 100%);
  max-height: min(90vh, 720px);
  overflow-y: auto;
  padding: 1.25rem 1.35rem;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.2);
}

.tev-cpo-dialog-card--wide {
  width: min(520px, 100%);
}

.tev-cpo-dialog-card h3 {
  margin: 0 0 0.75rem;
  font-size: 1.05rem;
  color: #1e3a8a;
}

.tev-cpo-dialog-close {
  position: absolute;
  top: 0.65rem;
  right: 0.75rem;
  width: 2rem;
  height: 2rem;
  border: none;
  border-radius: 8px;
  background: #f1f5f9;
  color: #475569;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
}

.tev-cpo-dialog-close:hover {
  background: #e2e8f0;
  color: #0f172a;
}

@media (max-width: 900px) {
  .tev-cart-grid {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .tev-cart-items-card {
    border-right: none;
    border-bottom: 1px solid #e2e8f0;
  }

  .checkout-panel {
    position: static;
    max-height: none;
    overflow: visible;
  }
}

@media (max-width: 640px) {
  .tev-cart-hero {
    flex-direction: column;
    align-items: flex-start;
  }

  .tev-cart-hero__cta {
    width: 100%;
    text-align: center;
    box-sizing: border-box;
  }

  .cart-item {
    grid-template-columns: 64px 1fr;
    grid-template-rows: auto auto;
  }

  .cart-item__aside {
    grid-column: 1 / -1;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding-top: 0.35rem;
    border-top: 1px dashed #e2e8f0;
  }

  .cart-item__img {
    width: 64px;
    height: 64px;
  }

  .addr-grid,
  .addr-grid-3 {
    grid-template-columns: 1fr;
  }

  body.tev-cart-page .tev-subnav__center .tev-subnav-pill {
    font-size: 0.72rem;
    padding: 0.3rem 0.65rem;
  }
}
