/* Vertical side-tab — fixed right, vertically centered (desktop + mobile) */

.ai-search-fab {
  position: relative;
  display: flex;
  flex-shrink: 0;
  align-items: stretch;
  padding: 0;
  margin: 0;
  color: #fff;
  cursor: pointer;
  background: linear-gradient(
    180deg,
    var(--bharat-chakra-bright) 0%,
    var(--bharat-chakra) 48%,
    var(--bharat-chakra-deep) 100%
  );
  border: none;
  border-radius: 0.625rem 0 0 0.625rem;
  box-shadow:
    -4px 0 18px rgb(7 3 141 / 0.28),
    0 1px 0 rgb(255 255 255 / 0.12) inset;
  transition:
    filter 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease;
}

.ai-search-fab:hover {
  filter: brightness(1.08);
  box-shadow:
    -6px 0 24px rgb(7 3 141 / 0.34),
    0 1px 0 rgb(255 255 255 / 0.14) inset;
}

.ai-search-fab:active {
  filter: brightness(0.96);
  transform: translateX(1px);
}

.ai-search-fab:focus-visible {
  outline: 2px solid #fff;
  outline-offset: -3px;
}

.ai-search-fab__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  padding: 0.875rem 0.5rem;
  min-width: 2.75rem;
}

.ai-search-fab__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.375rem;
  height: 1.375rem;
  flex-shrink: 0;
}

.ai-search-fab__icon svg {
  width: 100%;
  height: 100%;
}

.ai-search-fab__label {
  font-size: 0.8125rem;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 0.04em;
  text-transform: none;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  white-space: nowrap;
}

.ai-search-fab.is-open {
  filter: brightness(0.92);
}

@media (max-width: 639px) {
  .ai-search-fab__inner {
    padding: 0.75rem 0.4375rem;
    min-width: 2.5rem;
    gap: 0.5rem;
  }

  .ai-search-fab__icon {
    width: 1.25rem;
    height: 1.25rem;
  }

  .ai-search-fab__label {
    font-size: 0.75rem;
  }
}

@media (min-width: 640px) {
  .ai-search-fab__inner {
    padding: 1rem 0.5625rem;
    min-width: 3rem;
  }

  .ai-search-fab__icon {
    width: 1.5rem;
    height: 1.5rem;
  }

  .ai-search-fab__label {
    font-size: 0.875rem;
  }
}
