/*! TOBI TM harden — mobile FAB stack + a11y helpers | 20260912-tm1 */
/* Mobile: one bottom rail (quickbar), controls stacked on the right above it */
@media (max-width: 1080px) {
  .home-quickbar {
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    z-index: 55 !important;
  }
  body {
    padding-bottom: calc(54px + env(safe-area-inset-bottom, 0px)) !important;
  }

  #langhui-language-switcher {
    bottom: auto !important;
    top: calc(12px + env(safe-area-inset-top, 0px)) !important;
    right: 12px !important;
    left: auto !important;
    z-index: 70 !important;
  }
  html[dir="rtl"] #langhui-language-switcher {
    right: auto !important;
    left: 12px !important;
  }

  #tobi-ai-chatbot-launcher {
    bottom: calc(70px + env(safe-area-inset-bottom, 0px)) !important;
    right: 12px !important;
    left: auto !important;
    z-index: 58 !important;
  }
  html[dir="rtl"] #tobi-ai-chatbot-launcher {
    right: auto !important;
    left: 12px !important;
  }

  #toTop,
  .totop,
  button.totop,
  a.totop {
    bottom: calc(140px + env(safe-area-inset-bottom, 0px)) !important;
    right: 16px !important;
    left: auto !important;
    z-index: 57 !important;
  }
  html[dir="rtl"] #toTop,
  html[dir="rtl"] .totop {
    right: auto !important;
    left: 16px !important;
  }
}

/* Cookie consent bar */
#tobi-cookie-consent {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 90;
  display: none;
  max-width: 560px;
  margin: 0 auto;
  padding: 14px 16px;
  border-radius: 12px;
  background: rgba(8, 16, 30, 0.96);
  color: #e8eef7;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
  font-size: 13px;
  line-height: 1.55;
}
#tobi-cookie-consent[data-open="1"] { display: block; }
#tobi-cookie-consent a { color: #ff9d6b; text-decoration: underline; }
#tobi-cookie-consent .tobi-cc-actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  flex-wrap: wrap;
}
#tobi-cookie-consent button {
  border: 0;
  border-radius: 8px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 650;
  cursor: pointer;
}
#tobi-cookie-consent .tobi-cc-accept {
  background: linear-gradient(120deg, #ff6b35, #ff8a5c);
  color: #fff;
}
#tobi-cookie-consent .tobi-cc-essential {
  background: rgba(255, 255, 255, 0.08);
  color: #d7e0ec;
}
@media (max-width: 1080px) {
  #tobi-cookie-consent {
    bottom: calc(66px + env(safe-area-inset-bottom, 0px));
  }
}

/* Honeypot: visually hidden */
.tobi-hp-wrap {
  position: absolute !important;
  left: -10000px !important;
  top: auto !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}
