.tab-manager__overlay {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 10;
}

.tab-manager__overlay.open {
  pointer-events: auto;
}

.tab-manager__content {
  width: 320px;
  height: 100%;
  background-color: var(--theme-bg);
  pointer-events: auto;
  transform: translateX(-100%);
  transition: transform 0.2s cubic-bezier(0.3, 0.61, 0.355, 1),
    box-shadow 0.2s cubic-bezier(0.3, 0.61, 0.355, 1);
  border-top-right-radius: 12px;
  border-bottom-right-radius: 12px;
  padding: 18px;
  display: flex;
  flex-direction: column;
}

.tab-manager__header {
  font-size: 1.2rem;
  margin-bottom: 20px;
}

.tab-manager__content.open {
  transform: translateX(0);
  box-shadow: 0px 10px 34px var(--theme-shadow);
}

.tab-manager__anchor {
  position: absolute;
  top: calc(50% - 70px);
  height: 140px;
  width: 20px;
  border-top-right-radius: 10px;
  border-bottom-right-radius: 10px;
  outline: none;
  border: none;
  background-color: var(--theme-clr);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  pointer-events: auto;
  z-index: -1;
  box-shadow: 4px 0px 30px var(--theme-shadow);
}

.tab-manager__anchor-bar {
  height: 60%;
  width: 4px;
  background-color: var(--theme-bg);
  border-radius: 2px;
}

.tab-manager__tab-list {
  font-weight: 600;
  background-color: var(--theme-bg-with-opacity);
  border: 1px solid var(--theme-border);
  border-radius: 12px;
  padding: 12px 10px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
}

.tab-manager__tab-list-container::-webkit-scrollbar {
  display: none;
}

.tab-manager__tab-list-container {
  overflow-y: auto;
}

.tab-manager__tab-group-title {
  font-size: 0.75rem;
  border-bottom: 1px solid var(--theme-border);
  margin-bottom: 8px;
  padding: 4px 0px;
}

.tab-manager__cta {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 10px;
  gap: 4px;
}

.tab-manager__tab-close,
.tab-manager__tab-toggle-mute {
  display: none;
  font-weight: 700;
  background: var(--theme-button-bg);
  border-radius: 6px;
  height: 24px;
  width: 24px;
  outline: none;
  border: none;
  color: var(--theme-clr);
  align-self: center;
  cursor: pointer;
  border: 1px solid rgba(0, 0, 0, 0.2);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1), 0 1px 3px rgba(0, 0, 0, 0.05);
}

.tab-manager__tab-toggle-mute {
  display: block;
  padding: 2px;
}

.tab-manager__tab-list:hover .tab-manager__tab-close,
.tab-manager__tab-list:focus-visible .tab-manager__tab-close,
.tab-manager__tab-list:focus-within .tab-manager__tab-close {
  display: block;
}

.tab-manager__tab-list .tab-manager__tab-title,
.tab-manager__tab-list .tab-manager__tab-description {
  max-width: 220px;
}

.tab-manager__tab-close svg,
.tab-manager__tab-toggle-mute svg {
  width: 100%;
  height: 100%;
}

.tab-manager__tab-title {
  font-size: 1rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tab-manager__tab-description {
  font-size: 0.875rem;
  font-weight: normal;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tab-manager__tab-list:hover .tab-manager__tab-title,
.tab-manager__tab-list:hover .tab-manager__tab-description,
.tab-manager__tab-list:focus-visible .tab-manager__tab-title,
.tab-manager__tab-list:focus-visible .tab-manager__tab-description,
.tab-manager__tab-list:focus-within .tab-manager__tab-title,
.tab-manager__tab-list:focus-within .tab-manager__tab-description {
  max-width: 190px;
}

.tab-manager__tab-list.has-mute-button .tab-manager__tab-title,
.tab-manager__tab-list.has-mute-button .tab-manager__tab-description {
  max-width: 190px;
}

.tab-manager__tab-list.has-mute-button:hover .tab-manager__tab-title,
.tab-manager__tab-list.has-mute-button:hover .tab-manager__tab-description,
.tab-manager__tab-list.has-mute-button:focus-visible .tab-manager__tab-title,
.tab-manager__tab-list.has-mute-button:focus-visible
  .tab-manager__tab-description,
.tab-manager__tab-list.has-mute-button:focus-within .tab-manager__tab-title,
.tab-manager__tab-list.has-mute-button:focus-within
  .tab-manager__tab-description {
  max-width: 144px;
}

.tab-manager__tab-info {
  display: flex;
  flex-direction: row;
  gap: 8px;
}

.tab-manager__tab-icon {
  align-self: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.tab-manager__search-container {
  height: 26px;
  min-height: 26px;
  padding: 0 6px;
  background: var(--theme-bg);
  border-radius: 4px;
  border: 1px solid var(--theme-border);
  width: 100%;
  margin-bottom: 10px;
}

.tab-manager__search-container input {
  height: 100%;
  border: none;
  background: inherit;
  width: 100%;
  outline: none;
  font-size: 0.875rem;
  color: var(--theme-clr);
}
