/* Copyright 2026 The Chromium Authors
 * Use of this source code is governed by a BSD-style license that can be
 * found in the LICENSE file. */

/* #css_wrapper_metadata_start
 * #type=style-lit
 * #scheme=relative
 * #css_wrapper_metadata_end */

#bottomControls {
  align-items: center;
  box-sizing: border-box;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  padding-inline-end: 16px;
  padding-inline-start: 16px;
  position: relative;
  width: 100%;
  z-index: 1000;
}

#actionButtons {
  align-items: center;
  display: flex;
  flex-direction: row;
  gap: 12px;
  /* Keeps buttons right-aligned even when contextual entrypoint is omitted. */
  margin-inline-start: auto;
}

.searchbox-icon-button-container {
  align-items: center;
  border-radius: 50%;
  display: flex;
  flex-shrink: 0;
  height: 36px;
  justify-content: center;
  position: relative;
  width: 36px;
  z-index: 100;
}

.searchbox-icon-button-container:hover,
.searchbox-icon-button-container.menu-open {
  background-color: var(--color-new-tab-page-realbox-next-icon-hover);
}

@media (forced-colors: active) {
  .searchbox-icon-button-container {
    background-color: ButtonText;
  }
  .searchbox-icon-button-container:focus-within {
    outline: 2px solid Highlight;
    outline-offset: 2px;
  }
}

:host-context(.focus-outline-visible)
    .searchbox-icon-button-container:focus-within {
  box-shadow: 0 0 0 2px var(--cr-focus-outline-color);
}

.searchbox-icon-button {
  background-color: var(--color-sys-on-surface-subtle,
      var(--cr-fallback-color-on-surface-subtle));
  border: none;
  border-radius: 2px;
  cursor: pointer;
  height: 100%;
  outline: none;
  padding: 0;
  pointer-events: auto;
  position: static;
  width: 26px;
  z-index: 100;
  -webkit-mask-position: center;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-size: 21px 21px;
}

#voiceSearchButton {
  -webkit-mask-image: url(//resources/cr_components/searchbox/icons/mic.svg);
}

#lensSearchButton {
  -webkit-mask-image: url(//resources/cr_components/searchbox/icons/camera.svg);
}

:host {
  --omnibox-everywhere-top-actions-top: 12px;
}

#profileIcon {
  border-radius: 50%;
  height: 36px;
  pointer-events: none;
  position: absolute;
  right: 16px;
  top: var(--omnibox-everywhere-top-actions-top, 12px);
  width: 36px;
  z-index: 100;
}

#screenshotMenu {
  --cr-menu-border-radius: 16px;
  --cr-menu-shadow: var(--cr-elevation-3);
  --cr-menu-background-color: var(
      --color-composebox-background,
      var(--search-background-color));
  --cr-primary-text-color: var(--color-composebox-file-chip-text);
  --cr-hover-background-color: var(
      --color-composebox-context-entrypoint-hover-background);
}

#screenshotMenu::part(dialog) {
  border: 1px solid var(--color-searchbox-border);
  min-width: 320px;
}

#screenshotMenu .menu-title {
  color: var(--cr-primary-text-color);
  font-size: 12px;
  font-weight: 500;
  line-height: 16px;
  margin: 0;
  padding: 8px 14px 4px 14px;
}

#screenshotMenu .dropdown-item {
  align-items: center;
  background: transparent;
  border: none;
  color: var(--cr-primary-text-color);
  cursor: pointer;
  display: flex;
  font-size: 14px;
  font-weight: 400;
  gap: 8px;
  height: 36px;
  line-height: 20px;
  outline: none;
  padding: 0 14px;
  width: 100%;
}

#screenshotMenu .dropdown-item:hover,
#screenshotMenu .dropdown-item:focus {
  background-color: var(--cr-hover-background-color);
}

#screenshotMenu .dropdown-item[disabled] {
  color: var(--color-composebox-context-entrypoint-text-disabled);
  opacity: 0.5;
  cursor: default;
}

#screenshotMenu .icon {
  -webkit-mask-position: center;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-size: 16px 16px;
  background-color: var(--cr-primary-text-color);
  flex-shrink: 0;
  height: 16px;
  width: 16px;
}

#screenshotMenu .icon.entire-screen {
  -webkit-mask-image: url(
    '//resources/cr_components/searchbox/icons/screenshot_entire_screen.svg');
}

#screenshotMenu .icon.window {
  -webkit-mask-image: url(
    '//resources/cr_components/searchbox/icons/screenshot_window.svg');
}

#screenshotMenu .icon.region {
  -webkit-mask-image: url(
    '//resources/cr_components/searchbox/icons/screenshot_region.svg');
}
