/* =========================================
   Core Toolbar Container
   ========================================== */

.twnnToolbar {
  width: 100%;
  box-sizing: border-box;
}


/* Sticky variant for Drive/app toolbar */

.siteToolbar {
  position: sticky;
  top: var(--twnn-nav-height, 0px);
  z-index: 5;
  background-color: #2b3035;
  width: 100%;
}


/* =========================================
   Layout: Labeled Groups + Panels
   ========================================== */

.twnnToolbar .groupsContainer {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}


.twnnToolbar .twnn-toolbar-group {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  white-space: nowrap;

  padding: 2px 4px;

  border: 1px solid purple;
  border-radius: 6px;

  box-sizing: border-box;
}

.twnnToolbar .twnn-toolbar-group-label,
.twnnToolbar .twnn-toolbar-subgroup-label {
  display: inline-flex;
  align-items: center;
  font-size: 10px;
  line-height: 1.2;
  color: #adb5bd;
  white-space: nowrap;
}


.twnnToolbar .twnn-toolbar-subgroup {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  white-space: nowrap;
  margin-left: 0.15rem;
  padding-left: 0.45rem;
  border-left: 1px solid #495057;
}


.twnnToolbar .panelsContainer {
  width: 100%;
  box-sizing: border-box;
}


/* =========================================
   Controls
   ========================================== */

.twnnToolbar .twnn-toolbar-button {
  background-color: #2b3035;

  border-radius: 5px;
  font-size: 9px;

  border: 1px solid #495057;

  color: #adb5bd;

  min-width: 22px;
  min-height: 20px;

  padding: 2px 6px;

  line-height: 1.1;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  white-space: nowrap;
  cursor: pointer;
}


.twnnToolbar .twnn-toolbar-button.is-active {
  background-color: var(--twnn-toolbar-active-bg, #444);
  color: var(--twnn-toolbar-active-fg, #fff);
}


.twnnToolbar .twnn-toolbar-button:disabled,
.twnnToolbar .twnn-toolbar-button[aria-disabled="true"] {
  opacity: 0.5;
  cursor: default;
}


/* Bootstrap SVGs are rendered as masks so they inherit button currentColor. */

.twnnToolbar .twnn-toolbar-icon {
  display: inline-block;
  width: 1em;
  height: 1em;
  background-color: currentColor;
  mask-repeat: no-repeat;
  mask-position: center;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
  -webkit-mask-size: contain;
  pointer-events: none;
}


/* =========================================
   Standard Panels
   ========================================== */

.twnnToolbar .twnn-toolbar-panel {
  width: 100%;
  box-sizing: border-box;
}


/* =========================================
   Dropdown Support
   ========================================== */

.twnnToolbar .twnn-toolbar-dropdown {
  position: relative;
}


.twnnToolbar .twnn-toolbar-button-dropdown {
  /* inherits .twnn-toolbar-button */
}


.twnnToolbar .twnn-toolbar-dropdown-menu {
  position: absolute;
  top: calc(100% + 2px);
  right: 0;
  display: none;
  z-index: 9999;
  background-color: #2b3035;
  border: 1px solid purple;
  border-radius: 4px;
  min-width: max-content;
  white-space: nowrap;
  padding: 4px 0;
}


.twnnToolbar .twnn-social-share-item {
  display: block;
  width: 100%;
  padding: 4px 10px;
  background: none;
  border: none;
  text-align: left;
  font-size: 10px;
  color: #adb5bd;
  cursor: pointer;
}


.twnnToolbar .twnn-social-share-item:hover {
  background-color: #444;
}


.twnnToolbar .twnn-toolbar-dropdown.is-open .twnn-toolbar-button-dropdown {
  background-color: var(--twnn-toolbar-active-bg, #444);
  color: var(--twnn-toolbar-active-fg, #fff);
}
