/**
 * Social media follow print
 * @define social-media-follow
 */

@use 'sass:map';

// Exposed variables
$theme: null !default;
$social-media-follow: null !default;

.ecl-social-media-follow {
  display: flex;
  flex-direction: column;
  margin: 0;
}

.ecl-social-media-follow__icon-hover {
  display: none;
}

.ecl-social-media-follow__description {
  color: var(--c-d);
  font: map.get($theme, 'font-print', 'm');
  font-weight: map.get($theme, 'font-weight-print', 'bold');
  margin-bottom: map.get($theme, 'spacing-print', 'xs');
  margin-top: 0;
}

.ecl-social-media-follow__list {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  list-style: none;
  margin-top: calc(-1 * #{map.get($theme, 'spacing-print', '2xs')});
  padding-left: 0;
}

.ecl-social-media-follow__item {
  color: var(--c-d);
  font: map.get($theme, 'font-print', 'm');
  margin-top: map.get($theme, 'spacing-print', '2xs');
  margin-inline-end: map.get($theme, 'spacing-print', 'l');

  &:last-of-type {
    margin-inline-end: 0;
  }
}

.ecl-social-media-follow__link {
  align-items: center;
  display: flex;
}

.ecl-social-media-follow__icon {
  color: var(--c-d);
  display: block;
  margin-right: map.get($theme, 'spacing-print', 's');
}

// Vertical
.ecl-social-media-follow--vertical {
  .ecl-social-media-follow__list {
    align-items: flex-start;
    flex-direction: column;
    margin-top: 0;
  }

  .ecl-social-media-follow__item {
    margin-inline-end: 0;
    padding-bottom: map.get($theme, 'spacing-print', '2xs');
    padding-top: map.get($theme, 'spacing-print', '2xs');
  }
}

// Position
.ecl-social-media-follow--right {
  align-items: flex-end;

  .ecl-social-media-follow__list {
    align-items: flex-end;
  }
}
