@use 'sass:map';
@use '@tutorbook/styles/config';
@use '@tutorbook/styles/typography';
@use '@tutorbook/styles/loader';
@use '@material/elevation';

.img {
  position: absolute;
  width: 100%;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
}

.loadingImg {
}

.noImg {
  @include typography.typography('subtitle1');
  color: map.get(config.$colors, 'accents-5');
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  text-decoration: none;
  font-size: 12px;
  font-weight: 500;
  text-align: center;
  width: 100%;
}

.wrapper {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 4px;
  background-color: map.get(config.$colors, 'accents-2');
}

.wrapper:before {
  content: '';
  display: block;
  padding-top: 100%;
}

.loading {
  @include loader.loading();
}

// TODO: Make the ripple go on top of this.
.verifiedIcon {
  position: absolute;
  bottom: 4px;
  right: 4px;
  color: map.get(config.$colors, 'background');
  font-size: 18px;
}

.verifiedText {
  @include elevation.elevation(4);
  position: absolute;
  top: 12px;
  left: 12px;
  color: map.get(config.$colors, 'foreground');
  background: map.get(config.$colors, 'background');
  z-index: 1;
  font-family: map.get(config.$fonts, 'sans');
  font-size: 14px;
  padding: 4px 6px;
  font-weight: 600;
  border-radius: 4px;
  cursor: help;
}

.verifiedHover {
  @include typography.typography('body1');
  font-size: 14px;
  max-width: 250px;
}
