/* CloudYork Six v1.1: Nexus Cart reads these supported tokens through its
   Shadow DOM custom.css bridge. Loaded only for the nexus_cart order form.
   Six's original custom.css supplies the complete default token contract. */
#nexus-root {
  --primary: #673de6;
  --primary-lifted: #542dc7;
  --primary-accented: #4523a6;
  --text: #001233;
  --text-accented: #001233;
  --text-lifted: #34415b;
  --text-muted: #647089;
  --text-inverted: #fff;
  --border-muted: #eef0f5;
  --border: #dde3ef;
  --border-lifted: #c8d1e2;
  --border-accented: #673de6;
  --bg: #fff;
  --bg-muted: #f5f6fa;
  --bg-lifted: #f3efff;
  --bg-accented: #e8e0fc;
  --bg-inverted: #001233;
  --rounding-sm: 0px;
  --rounding-md: 0px;
  --rounding-lg: 0px;
}
/* Tailwind's search wrapper uses these fixed radius tokens inside Shadow DOM. */
#nexus-root {
  --radius-xs: 0px;
  --radius-sm: 0px;
  --radius-4xl: 0px;
}
/* The native category/sidebar controls sit outside the cart's Shadow DOM. */
#order-standard_cart .panel,
#order-standard_cart .panel-heading,
#order-standard_cart .panel-footer,
#order-standard_cart .list-group-item,
#order-standard_cart .form-control { border-radius: 0; border-color: #dde3ef; }
#order-standard_cart .cart-sidebar .list-group-item.active {
  background: #f3efff;
  color: #673de6;
  border-color: #dde3ef;
  border-left: 3px solid #673de6;
}
#order-standard_cart .cart-sidebar a.list-group-item:hover,
#order-standard_cart .cart-sidebar a.list-group-item:focus { background: #f3efff; color: #673de6; }

/* Nexus Cart's transfer route renders the native standard_cart transfer form. */
#frmDomainTransfer .btn-primary { background: #673de6; border-color: #673de6; color: #fff; border-radius: 0; }
#frmDomainTransfer .btn-primary:hover,
#frmDomainTransfer .btn-primary:focus { background: #542dc7; border-color: #542dc7; color: #fff; }
#frmDomainTransfer .btn-primary:focus-visible,
#inputTransferDomain:focus-visible { outline: 2px solid #673de6; outline-offset: 3px; }
#inputTransferDomain { border-radius: 0; border-color: #dde3ef; }
#inputTransferDomain:focus { border-color: #673de6; }

/* Keep result names and prices distinct on narrow screens using native type tokens. */
@media (max-width: 480px) {
  #nexus-root { --text-xl: 1rem; --text-xl--line-height: 1.4; --cy-domain-row-wrap: wrap; --cy-domain-row-gap: .25rem; --cy-domain-name-min: 0px; --cy-domain-name-flex: 1 1 100%; --cy-domain-name-justify: flex-start; }
}
