@use 'pix-design-tokens/breakpoints';
@use 'pix-design-tokens/typography';
@use "pix-design-tokens/colors";

.assessment-banner {
  display: flex;
  align-items: flex-start;
  justify-content: space-around;
  width: 100%;
  min-height: 180px;
  color: var(--pix-neutral-0);
  background: colors.$pix-primary-app-gradient;
  box-shadow: 0 2px 8px 0 rgb(0 0 0 / 10%);
}

.assessment-banner-container {
  display: flex;
  align-items: center;
  width: 100%;
  max-width: 990px;
  margin-top: var(--pix-spacing-6x);
  padding: 0 10px;

  @include breakpoints.device-is('desktop') {
    padding: 0;
  }
}

.assessment-banner__title {
  @extend %pix-body-m;

  margin: 0;

  @include breakpoints.device-is('mobile') {
    position: absolute;
    display: block;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    border: 0;
    clip: rect(0, 0, 0, 0);
  }

  @include breakpoints.device-is('desktop') {
    font-weight: var(--pix-font-normal);
  }
}

.assessment-banner__pix-logo {
  height: 24px;
}

.assessment-banner__splitter {
  width: 1px;
  height: 16px;
  margin: 0 10px;
  background: var(--pix-neutral-20);

  @include breakpoints.device-is('desktop') {
    margin: 0 12px;
  }
}

.assessment-banner__home-link {
  @extend %pix-body-m;

  z-index: 1;
  display: flex;
  gap: var(--pix-spacing-1x);
  align-items: center;
  height: 1.5rem;
  color: var(--pix-neutral-0);
  text-align: right;

  &:hover {
    color: rgb(var(--pix-neutral-0) 0.8);
  }

  svg {
    width: 1rem;
    height: 1rem;
  }
}

.assessment-banner-closing-modal__footer {
  display: flex;
  justify-content: flex-end;

  & > * + * {
    margin-left: var(--pix-spacing-2x);
  }
}

.assessment-banner__actions {
  display: flex;
  gap: var(--pix-spacing-12x);
  align-items: center;
  margin-left: auto;
}

.assessment-banner__text-to-speech-toggle {
  z-index: 1;
  line-height: 0;

  button {
    color: var(--pix-neutral-0);
  }
}
