/* Copyright 2025 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
 * #import=//read-anything-side-panel.top-chrome/shared/sp_shared_style.css.js
 * #import=../app/toolbar_styles_shared.css.js
 * #scheme=relative
 * #include=sp-shared-style toolbar-styles-shared
 * #css_wrapper_metadata_end */

.has-icon-false {
  display: none;
}

.has-icon-true {
  display: inline-flex;
}

.check-mark-showing-true {
  visibility: visible;
}

.check-mark-showing-false {
  visibility: hidden;
}

.has-separator-true {
  display: grid;
}

.has-separator-false {
  display: none;
}

.header-container {
  align-items: center;
  display: flex;
  height: 32px;
  justify-content: space-between;
  padding-inline: 20px;
}

.header-style {
  font-size: 13px;
  font-weight: 700;
}

.shortcut-text {
  color: var(--on-surface-subtle-text-color);
  font-size: 13px;
}

.check-mark {
  margin: 0;
}

.dropdown-item {
  align-items: center;
  font-size: 13px;
  min-width: 180px;
  padding-left: 20px;
  padding-block: 4px;
}

cr-icon {
  --icon-size: 20px;
  height: var(--icon-size);
  margin: 0 8px 0 4px;
  width: var(--icon-size);
}

cr-action-menu::part(dialog) {
  /* 90% of side panel height minus 36px toolbar height. */
  max-height: calc(90% - 36px);
  overscroll-behavior: contain;
  min-width: 253px;
  z-index: 9999;
}

cr-action-menu[non-modal]::part(dialog),
:host(.immersive-top-level-menu) cr-action-menu::part(dialog) {
  border-radius: var(--cornerRadii-medium-small, 12px);
}

.toggle-row {
  --iron-icon-height: 16px;
  --iron-icon-width: 16px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  line-height: var(--immersive-menu-line-height);
  padding-block: 4px;
  padding-inline: 24px 20px;
}

.toggle-row:hover,
.toggle-row:focus-visible {
  background-color: var(--cr-hover-background-color);
}

.toggle-row .start-container {
  align-items: center;
  display: flex;
  gap: 16px;
  padding-inline-end: 16px;
}

.toggle-row .start-icon {
  --cr-icon-color: var(--cr-secondary-text-color);
}

.toggle-row .label {
  flex: 1;
  font-weight: 400;
}

@media (forced-colors: active) {
  .dropdown-item,
  .toggle-row {
    color: LinkText;
  }
}
