.es-settings {
  display: inline-block;
  line-height: 16px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen",
    "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue",
    sans-serif;
}

.es-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 20000;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen",
    "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue",
    sans-serif;
}

.es-modal-content {
  background-color: #252836;
  border-radius: 8px;
  width: 400px;
  max-width: 90vw;
  color: #fff;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.es-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid #333;

  h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
  }
}

.es-modal-close {
  background: none;
  border: none;
  color: #fff;
  font-size: 24px;
  cursor: pointer;
  padding: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;

  &:hover {
    color: #ccc;
  }
}

.es-modal-body {
  padding: 20px;
}

.es-modal-field {
  margin-bottom: 16px;

  label {
    display: block;
    margin-bottom: 6px;
    font-size: 14px;
    font-weight: 500;
  }
}

.es-modal-input {
  width: 100%;
  padding: 8px 12px;
  background-color: #51535d;
  border: 1px solid #666;
  border-radius: 4px;
  color: #fff;
  font-size: 14px;
  box-sizing: border-box;

  &:focus {
    outline: none;
    border-color: #1296ba;
  }

  &::placeholder {
    color: #999;
  }
}

.es-modal-info {
  font-size: 12px;
  color: #ccc;
  line-height: 1.4;

  p {
    margin: 8px 0;
  }

  a {
    color: #1296ba;
    text-decoration: none;

    &:hover {
      text-decoration: underline;
    }
  }
}

.es-modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  padding: 16px 20px;
  border-top: 1px solid #333;
}

.es-modal-button {
  padding: 8px 16px;
  border: none;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s;

  &--secondary {
    background-color: #51535d;
    color: #fff;

    &:hover {
      background-color: #5a5c66;
    }
  }

  &--primary {
    background-color: #1296ba;
    color: #fff;

    &:hover {
      background-color: #0e7a96;
    }
  }
}

.es-settings-icon {
  margin: 0 10px;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.8);

  &:hover {
    color: #fff;
  }

  svg {
    width: 24px;
    fill: currentColor;
  }
}

.es-settings-content {
  all: revert;
  line-height: 16px;
  margin-block-start: 1em;
  margin-block-end: 1em;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  color: #fff;
  position: absolute;
  height: 270px;
  width: 340px;
  background-color: #1f1d2b;
  right: 36px;
  bottom: 116px;
  z-index: 10000;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen",
    "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue",
    sans-serif;

  &__menu {
    display: flex;

    &__items {
      display: flex;
    }

    &__item {
      line-height: 46px;
      padding: 0 16px;
      font-size: 15px;
      cursor: pointer;

      &:first-child {
        border-radius: 8px 0 0 0;
      }

      &--active {
        background-color: #252836;
      }
    }
  }

  &__main {
    flex: 1;
    padding: 16px;
    background-color: #252836;
    border-radius: 0 0 8px 8px;
  }

  &__item {
    margin-bottom: 12px;
  }

  &__element {
    display: flex;

    &__left {
      display: flex;
      flex: 1;
      text-align: right;
      align-items: center;
      justify-content: flex-end;
      margin-right: 8px;
    }

    &__right {
      display: flex;
      flex: 1;
      align-items: center;
      margin-left: 8px;

      label {
        margin-bottom: 0;
      }
    }
  }

  &__close {
    position: absolute;
    top: 12px;
    right: 12px;
    cursor: pointer;

    &:after {
      display: inline-block;
      content: "\00d7";
      font-size: 28px;
      line-height: 18px;
    }
  }
}

.es-settings__select {
  width: 100%;
}
