/* 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=./shared_style.css.js
 * #import=./shared_vars.css.js
 * #include=shared-style
 * #css_wrapper_metadata_end */

:host {
  display: flex;
  position: relative;
}

/* General toolbar layout. */

cr-toolbar {
  --cr-toolbar-center-basis: var(--cluster-max-width);
  --cr-toolbar-left-spacer-width: var(--side-bar-width);
  --cr-toolbar-field-margin: var(--side-bar-width);
  flex: 1;
}

:host([has-drawer]) cr-toolbar,
:host([has-drawer]) cr-toolbar-selection-overlay {
  --cr-toolbar-field-margin: 0;
}

cr-toolbar-selection-overlay {
  opacity: 0;
  --cr-toolbar-selection-overlay-max-width: var(--card-max-width);
  --cr-toolbar-field-margin: var(--side-bar-width);
}

cr-toolbar-selection-overlay[show] {
  opacity: 1;
}
