body[data-page="cart"] {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

body[data-page="cart"] .cart-page {
  display: flex;
  width: min(1188px, calc(100% - 48px));
  min-height: 0;
  flex: 1 0 auto;
  flex-direction: column;
  padding: 0;
}

body[data-page="cart"] .cart-page:has(#cartEmpty:not([hidden])) .breadcrumbs,
body[data-page="cart"] .cart-page:has(#cartEmpty:not([hidden])) .cart-heading,
body[data-page="cart"] .cart-page:has(#cartEmpty:not([hidden])) .cart-note {
  display: none;
}

body[data-page="cart"] .cart-page:has(#cartEmpty:not([hidden])) .cart-empty {
  width: min(316px, 100%);
  min-height: 233px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  border: 1px solid #2a2733;
  border-radius: 18px;
  background: #1a181f;
  text-align: center;
}

body[data-page="cart"] .cart-page:has(#cartEmpty:not([hidden])) .cart-empty-mark {
  width: 42px;
  height: 42px;
  margin: 0 auto 12px;
  border-radius: 0;
  background: transparent;
  color: #c1a5ff;
  font-size: 0;
}

body[data-page="cart"] .cart-page:has(#cartEmpty:not([hidden])) .cart-empty-mark::before {
  display: block;
  width: 38px;
  height: 38px;
  background: currentColor;
  content: "";
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M7 18a2 2 0 1 0 0 4 2 2 0 0 0 0-4m10 0a2 2 0 1 0 0 4 2 2 0 0 0 0-4M3 2H1v2h2l3.6 7.6-1.4 2.5c-.9 1.7.3 3.9 2.3 3.9h12v-2H7.5c-.3 0-.5-.2-.5-.5l.1-.3 1.1-2h7.5c.8 0 1.5-.4 1.9-1.1L21 5H6.2l-1-3H3z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M7 18a2 2 0 1 0 0 4 2 2 0 0 0 0-4m10 0a2 2 0 1 0 0 4 2 2 0 0 0 0-4M3 2H1v2h2l3.6 7.6-1.4 2.5c-.9 1.7.3 3.9 2.3 3.9h12v-2H7.5c-.3 0-.5-.2-.5-.5l.1-.3 1.1-2h7.5c.8 0 1.5-.4 1.9-1.1L21 5H6.2l-1-3H3z'/%3E%3C/svg%3E") center / contain no-repeat;
}

body[data-page="cart"] .cart-page:has(#cartEmpty:not([hidden])) .cart-empty h2 {
  margin: 0 0 6px;
  color: #f3f1f7;
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -.02em;
}

body[data-page="cart"] .cart-page:has(#cartEmpty:not([hidden])) .cart-empty p {
  margin: 0 0 16px;
  color: #aaa6b0;
  font-size: 13px;
  line-height: 1.4;
}

body[data-page="cart"] .cart-page:has(#cartEmpty:not([hidden])) .cart-empty .button {
  min-height: 42px;
  padding: 9px 22px;
  border-radius: 11px;
  background: #8037ed;
  font-size: 14px;
  font-weight: 700;
}

body[data-page="cart"] .cart-page:has(#cartItems:not(:empty)) {
  padding-top: 24px;
  padding-bottom: 54px;
}

body[data-page="cart"] .cart-page:has(#cartItems:not(:empty)) .cart-heading h1 {
  color: #f3f1f7;
}

body[data-page="cart"] .cart-page:has(#cartItems:not(:empty)) .cart-note {
  margin-top: 12px;
}

body[data-page="cart"] .cart-page:has(#cartEmpty:not([hidden])) {
  min-height: 399px;
  flex: none;
}
body[data-page="cart"]:has(#cartEmpty:not([hidden])) .site-footer { margin-top: 0; }
body[data-page="cart"] .cart-page:has(#cartEmpty:not([hidden])) .cart-empty {
  margin: 56px auto 24px;
  transform: none;
}
body[data-page="cart"] .cart-page:has(#cartEmpty:not([hidden])) .cart-empty .button {
  gap: 8px;
  background: linear-gradient(100deg, #8454ea, #6828d2);
}

.reference-support-page {
  width: min(720px, calc(100% - 32px));
  min-height: 580px;
  margin-inline: auto;
  padding: 56px 0 32px;
  color: #e8e7eb;
}
.reference-support-heading {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 24px;
  border-bottom: 1px solid #ffffff10;
}
.reference-support-icon {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 15px;
  background: #1c1a23;
  color: #8b4af4;
}
.reference-support-icon svg { width: 19px; height: 19px; }
.reference-support-heading h1 { margin: 0; font: 850 26px/1.2 Inter, system-ui, -apple-system, "Segoe UI", sans-serif; }
.reference-support-page section { margin-top: 28px; }
.reference-support-heading + section { margin-top: 32px; }
.reference-support-page h2 {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 10px;
  font: 750 16px/20px Inter, system-ui, sans-serif;
}
.reference-support-page h2 svg,
.reference-support-action svg {
  width: 16px;
  height: 16px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.reference-support-page h2 svg { color: #803cef; }
.reference-support-page p { margin: 0; font-size: 14px; line-height: 1.7; }
.reference-support-page p + p { margin-top: 8px; }
.reference-support-page p a { color: #bd93ff; text-decoration: underline; }
.reference-support-page .reference-support-email { font-weight: 750; overflow-wrap: anywhere; }
.reference-support-page .reference-support-action {
  min-height: 41px;
  margin-top: 16px;
  padding: 10px 24px;
  gap: 8px;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(100deg, #7c3aed, #e83e97);
  color: #fff;
  font-size: 14px;
  font-weight: 650;
  box-shadow: none;
}
.reference-support-page .reference-support-chat { min-width: 176px; min-height: 44px; font-size: 16px; }
.reference-support-page .reference-support-action:hover { background: linear-gradient(100deg, #8e50f1, #e352ad); }
.reference-support-page .reference-support-home {
  min-width: 163px;
  min-height: 41px;
  margin-top: 60px;
  padding: 9px 24px;
  gap: 8px;
  border: 1px solid #ffffff2b;
  border-radius: 12px;
  background: #ffffff08;
  color: #eeeaf4;
  font-size: 14px;
}
.reference-support-page .reference-support-home:hover { background: #ffffff12; }
@media (max-width: 767px) {
  body[data-page="cart"] .cart-page { width: calc(100% - 24px); }
  body[data-page="cart"] .cart-page:has(#cartEmpty:not([hidden])) { min-height: 416px; }
  body[data-page="cart"] .cart-page:has(#cartEmpty:not([hidden])) .cart-empty { min-height: 258px; margin-top: 48px; }
  body[data-page="cart"] .cart-page:has(#cartEmpty:not([hidden])) .cart-empty .button { min-height: 45px; }
  .reference-support-page { width: calc(100% - 48px); min-height: 500px; padding-top: 48px; }
  .reference-support-page h2 { line-height: 24px; }
  .reference-support-page :is(.reference-support-action, .reference-support-home) { min-height: 45px; font-size: 14px; }
  .reference-support-page .reference-support-chat { min-width: 161px; }
}
