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

.add-conditions-button {
  margin: var(--sys-size-5) 0;
  border: none;
}

.conditions-list {
  flex: auto;

  &:has(.list-item) {
    margin-top: var(--sys-size-3);
  }
}

.settings-container {
  display: flex;
  overflow-x: auto;
}

.settings-container::-webkit-scrollbar {
  -webkit-appearance: none;
  height: var(--sys-size-4);
}

.settings-container::-webkit-scrollbar-thumb {
  border-radius: var( --sys-size-3);
  background-color: var(--sys-color-primary);
}

.setting {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  gap: var( --sys-size-3);
  padding: var( --sys-size-4);
  flex-shrink: 0;
  width: 74px;
}

.input {
  width: 100%;
}

.conditions-list-item {
  padding: 3px 5px;
  height: 30px;
  display: flex;
  align-items: center;
  position: relative;
  flex: auto 1 1;
}

.conditions-list-text {
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
  flex-basis: var( --sys-size-24);
  user-select: none;
  color: var(--sys-color-on-surface);
  text-align: center;
  position: relative;

  & > input {
    scroll-margin-left: 5px;
  }
}

.conditions-list-text:last-child {
  flex-basis: 100px;
  text-align: left;
}

.conditions-list-title {
  text-align: start;
  display: flex;
  flex-grow: 1;
  align-items: flex-start;
}

.conditions-list-title-text {
  flex: auto;
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
}

.conditions-list-separator {
  flex: 0 0 1px;
  background-color: var(--sys-color-divider);
  height: 30px;
  margin: 0 4px;
}

.conditions-list-separator-invisible {
  visibility: hidden;
  height: 100% !important; /* stylelint-disable-line declaration-no-important */
}

.settings-card-container-wrapper {
  scrollbar-gutter: stable;
  padding: var(--sys-size-8) 0;
  overflow: auto;
  position: absolute;
  inset: var(--sys-size-8) 0 0;
}

.settings-card-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sys-size-9);
}

.cpu-preset-section {
  padding: 14px;
  display: flex;
  justify-content: space-between;
}

.cpu-preset-result.not-calibrated {
  font-style: italic;
}

.cpu-preset-calibrate {
  flex-direction: column;
  gap: 14px;
}

.cpu-preset-calibrate .button-container {
  display: flex;
  gap: 10px;
}

.cpu-preset-calibrate .text-container {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.text-with-icon {
  display: flex;
  align-items: center;
  gap: 5px;
}
