:root {
  --learner-community-right: max(22px, calc(env(safe-area-inset-right) + 12px));
  --learner-community-bottom: max(20px, calc(env(safe-area-inset-bottom) + 12px));
}

.learner-community-buttons {
  position: fixed;
  right: var(--learner-community-right);
  bottom: var(--learner-community-bottom);
  z-index: 990;
  display: grid;
  gap: 10px;
}

.learner-community-button {
  display: block;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background-position: center;
  background-repeat: no-repeat;
  background-size: 26px;
  box-shadow: 0 5px 13px #10294837;
}

.learner-community-telegram {
  background-color: #168bc3;
  background-image: url('/assets/img/community-telegram.png');
}

.learner-community-whatsapp {
  background-color: #16854e;
  background-image: url('/assets/img/community-whatsapp.png');
}

a.learner-community-button:hover {
  filter: brightness(1.12);
}

.learner-community-button:focus-visible {
  outline: 2px solid #0c243e;
  outline-offset: 3px;
}

.scroll-top {
  right: calc(var(--learner-community-right) + 60px);
  bottom: var(--learner-community-bottom);
}

@media (max-width: 600px) {
  :root {
    --learner-community-right: max(17px, calc(env(safe-area-inset-right) + 12px));
    --learner-community-bottom: max(16px, calc(env(safe-area-inset-bottom) + 12px));
  }
}

@media print {
  .learner-community-buttons {
    display: none;
  }
}
