/* TELLO Ink studio selector and language suggestion */
.tello-studio-field {
  margin-top: .35rem;
}

.tello-studio-field__label {
  display: block;
  margin-bottom: .55rem;
  color: rgba(31, 31, 31, .68);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.tello-studio-select {
  width: 100%;
  min-height: 52px;
  padding: 0 44px 0 16px;
  color: #1f1f1f;
  background-color: #fff;
  background-image:
    linear-gradient(45deg, transparent 50%, #346566 50%),
    linear-gradient(135deg, #346566 50%, transparent 50%);
  background-position:
    calc(100% - 20px) 50%,
    calc(100% - 14px) 50%;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  border: 1px solid rgba(52, 101, 102, .28);
  border-radius: 10px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .05);
  font-size: 1rem;
  appearance: none;
  -webkit-appearance: none;
}

.tello-studio-select:focus {
  border-color: #346566;
  box-shadow: 0 0 0 3px rgba(52, 101, 102, .14);
  outline: 0;
}

.tello-studio-select optgroup {
  color: rgba(31, 31, 31, .58);
  font-style: normal;
  font-weight: 700;
}

.tello-studio-select option {
  color: #1f1f1f;
  font-weight: 500;
}

.tello-studio-field__help {
  display: block;
  margin-top: .5rem;
  color: rgba(31, 31, 31, .62);
  font-size: .82rem;
  line-height: 1.45;
}

.tello-language-suggestion {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 1300;
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: min(430px, calc(100vw - 32px));
  padding: 14px 14px 14px 18px;
  color: #fff;
  background: rgba(28, 39, 39, .97);
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 16px;
  box-shadow: 0 16px 45px rgba(0, 0, 0, .25);
}

.tello-language-suggestion__text {
  flex: 1;
  margin: 0;
  font-size: .9rem;
  line-height: 1.4;
}

.tello-language-suggestion__link {
  flex: 0 0 auto;
  padding: 8px 12px;
  color: #fff;
  background: #346566;
  border-radius: 999px;
  font-size: .82rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.tello-language-suggestion__link:hover,
.tello-language-suggestion__link:focus {
  color: #fff;
  background: #3f7778;
  text-decoration: none;
}

.tello-language-suggestion__close {
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  padding: 0;
  color: rgba(255, 255, 255, .75);
  background: transparent;
  border: 0;
  border-radius: 50%;
  font-size: 20px;
  line-height: 30px;
  cursor: pointer;
}

.tello-language-suggestion__close:hover,
.tello-language-suggestion__close:focus {
  color: #fff;
  background: rgba(255, 255, 255, .1);
  outline: 0;
}

@media (max-width: 575px) {
  .tello-language-suggestion {
    right: 16px;
    bottom: 16px;
    left: 16px;
    flex-wrap: wrap;
  }

  .tello-language-suggestion__text {
    flex-basis: calc(100% - 42px);
  }
}

@media (prefers-reduced-motion: no-preference) {
  .tello-language-suggestion {
    animation: tello-language-enter .28s ease-out both;
  }

  @keyframes tello-language-enter {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
  }
}
