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

.congratulations-banner {
  position: relative;
  display: flex;
  flex-flow: column nowrap;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  height: fit-content;
  padding: 24px 16px;
  color: var(--pix-neutral-20);
  background: var(--pix-certif-500);
  border-radius: 6px;
  text-rendering: optimizelegibility;

  @include breakpoints.device-is('tablet') {
    padding: 24px 32px;
  }
}

.congratulations-banner__message {
  margin: var(--pix-spacing-6x) 0;
  text-align: center;

  @extend %pix-title-m;

  @include breakpoints.device-is('tablet') {
    margin: var(--pix-spacing-1x) 0 var(--pix-spacing-6x) 0;
  }
}

.congratulations-banner__double-certification {
  display: flex;
  flex-direction: column;
  margin: var(--pix-spacing-2x);
  padding: 16px 32px;
  background-color: var(--pix-success-50);
  border-radius: 16px;
}

.congratulations-banner-double-certification__icons {
  display: flex;
  align-items: center;
  justify-content: center;
}

.congratulations-banner-double-certification__icons img {
  max-height: 64px;
  margin-right: 16px;

  &:last-of-type {
    margin-right: 0;
  }
}

.congratulations-banner-double-certification__list {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-top: 16px;
  color: var(--pix-neutral-900);
  text-align: center;

  @include breakpoints.device-is('tablet') {
    align-items: center;
  }
}

.congratulations-banner-double-certification-list__message {
  margin: 0;
  font-size: 1rem;
  line-height: 22px;
}

.congratulations-banner-double-certification-list__labels {
  width: fit-content;
  margin: 0;
  font-size: 1rem;
  line-height: 22px;
  text-align: left;
}

.congratulations-banner__links {
  display: flex;
  flex-direction: column;
  gap: var(--pix-spacing-2x);
  align-items: center;

  @include breakpoints.device-is('tablet') {
    flex-direction: row;
  }
}

.congratulations-banner-links__link {
  display: flex;
  gap: var(--pix-spacing-2x);
  align-items: center;
  justify-content: center;
  padding: var(--pix-spacing-1x) var(--pix-spacing-4x);
  font-weight: var(--pix-font-bold);
  border: 2px solid var(--pix-neutral-0);
  border-radius: 50px;

  @extend %pix-body-m;

  @include breakpoints.device-is('tablet') {
    margin-bottom: 0;
  }

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

.oudated-double-certification-banner {
  margin-top: var(--pix-spacing-4x);

  &__row {
    display: flex;
    padding: var(--pix-spacing-4x);
    background-color: var(--pix-primary-100);
    border-radius: 16px;
  }

  &__icon {
    max-width: 64px;
    max-height: 64px;
    margin-right: var(--pix-spacing-4x);
  }
}
