@use '../../../styles/globals.scss' as *;

:root {
  --font-family-inter: 'Inter', sans-serif;
  --font-size-sm: 0.688rem;
  --font-size-md: 0.813rem;
  --font-size-lg: 1.25rem;
  --spacing-unit: 0.313rem;
}

.settings {
  box-shadow: 0px 8px 8px -4px var(--shadow-one);
  box-shadow: 0px 20px 24px -4px var(--shadow-two);
  border: 1px solid #d0d5dd;
  width: 460px;
  position: absolute;
  background-color: #fff;
  height: 99.5vh;
  right: 0;
  top: 0;
  z-index: 10000;

  &__header {
    padding: 1.25rem;
    background-color: var(--header-background);
    border-bottom: 1px solid var(--light-border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;

    &--title {
      font-size: var(--font-size-lg);
      font-weight: bold;
      margin-left: var(--spacing-unit);
    }

    &--right {
      display: flex;
      align-items: center;

      & span {
        margin-right: 22px;

        font-family: var(--font-family-inter);
        font-size: var(--font-size-sm);
        font-weight: 400;
        line-height: 1.45;
      }
    }
  }

  &__content {
    padding: 1rem 1.563rem;

    &--text {
      margin-bottom: 0.625rem;

      font-family: var(--font-family-inter);
      font-size: var(--font-size-md);
      font-weight: 400;
      line-height: 1.54;
    }

    &--label {
      display: flex;
      flex-direction: column;
      max-width: 100%;
      margin: 0;

      &.last {
        flex-direction: row;
        align-items: center;
        margin-bottom: 1rem;

        & .MuiSwitch-check {
          background-color: var(--main-purple);
        }

        & .MuiSwitch-track {
          background-color: rgba(var(--main-purple-rgb), 0.5);
        }

        & > span {
          margin-left: 0.625rem;
          cursor: pointer;

          font-family: var(--font-family-inter);
          font-size: var(--font-size-md);
          font-weight: 400;
          line-height: 1.54;
        }
      }
    }

    &--input {
      max-width: 100%;
      padding: var(--spacing-unit);
      margin-bottom: 1rem;
      border: 1px solid var(--light-border-color);
      box-shadow: 0px 1px 2px 0px #1018280d;
      height: 1.4rem;
      border-radius: 0.5rem;

      &.error {
        border: 1px solid var(--error-color);
      }
    }

    &--error {
      font-family: var(--font-family-inter);
      font-size: var(--font-size-sm);
      font-weight: 400;
      line-height: 1.45;
      margin-bottom: 16px;
      margin-top: -12px;
      color: var(--error-color);
    }

    &--obs {
      display: block;
      margin-bottom: 1.75rem;
      max-width: 100%;

      font-family: var(--font-family-inter);
      white-space: wrap;
      font-size: var(--font-size-sm);
      font-weight: 400;
      line-height: 1.45;
    }
  }
}
