/* Header brand override for New API classic UI. */
a[href="/"]:has(img[src*="/custom/eztoken-logo"][alt="logo"]) {
  gap: 0 !important;
  min-width: 188px !important;
  transform: translateX(14px) !important;
}

a[href="/"]:has(img[src*="/custom/eztoken-logo"][alt="logo"]) > div:first-child {
  width: 184px !important;
  height: 48px !important;
  min-width: 184px !important;
}

a[href="/"]:has(img[src*="/custom/eztoken-logo"][alt="logo"]) > div:nth-child(2) {
  display: none !important;
}

img[src*="/custom/eztoken-logo"][alt="logo"] {
  border-radius: 0 !important;
  object-fit: contain !important;
}

a[href="/"]:has(img[src*="/custom/eztoken-logo"][alt="logo"]):hover img[alt="logo"] {
  transform: none !important;
}

@media (max-width: 767px) {
  a[href="/"]:has(img[src*="/custom/eztoken-logo"][alt="logo"]) {
    min-width: 138px !important;
    transform: translateX(10px) !important;
  }

  a[href="/"]:has(img[src*="/custom/eztoken-logo"][alt="logo"]) > div:first-child {
    width: 134px !important;
    height: 36px !important;
    min-width: 134px !important;
  }
}

/* Hide default "Designed & Developed by New API" footer; ICP link is added by icp.js */
div.text-sm:has(> a[href*="QuantumNous/new-api"]) { display: none !important; }
