/* Shared by the landing pages and the web app. */
:is(.site-footer .footer-links, .studio-footer nav) a.channel-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 44px;
  padding: 13px 17px;
  border: 1px solid #ffffff35;
  border-radius: 14px;
  background: linear-gradient(135deg,#2aabee,#168bd0);
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.25;
  white-space: nowrap;
  text-decoration: none;
  box-shadow: inset 0 1px 0 #ffffff50, 0 5px 14px #30220b0c;
}

.channel-mark {
  flex: none;
  width: 23px;
  height: 23px;
  background: url("/teneta-home/telegram-mark.svg") center / contain no-repeat;
}

@media (hover:hover) and (pointer:fine) {
  :is(.site-footer .footer-links, .studio-footer nav) a.channel-link:hover {
    background: #168acf;
    color: #fff;
  }
}

.tn-model-toast {
  --toast-ease: cubic-bezier(.22, 1, .36, 1);
  position: fixed;
  z-index: 9;
  inset-inline-end: max(22px, env(safe-area-inset-right));
  inset-block-end: max(22px, env(safe-area-inset-bottom));
  box-sizing: border-box;
  width: min(616px, calc(100% - 44px));
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto 30px;
  align-items: center;
  gap: 14px;
  padding: 18px 16px 18px 18px;
  border: 1px solid #ffffff26;
  border-radius: 20px;
  background: linear-gradient(145deg, #292622, #1c1c1c 72%);
  color: #fff8ef;
  box-shadow: inset 0 1px 0 #ffffff10, 0 12px 32px #0005;
  font-family: Onest, Inter, system-ui, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  animation: tn-model-toast-in .48s var(--toast-ease) both;
}

.tn-model-toast[data-closing] {
  pointer-events: none;
  animation: tn-model-toast-out .22s var(--toast-ease) both;
}

.tn-model-toast-mark {
  width: 42px;
  height: 42px;
  padding: 6px;
  box-sizing: border-box;
  border-radius: 10px;
  background: #ffffff0b;
  border: 1px solid #ffffff14;
}

.tn-model-toast h2 {
  margin: 0 0 4px;
  color: inherit;
  font: 800 17px/1.22 Onest, Inter, system-ui, sans-serif;
  letter-spacing: -.025em;
}

.tn-model-toast p {
  margin: 0;
  color: #ded8d0;
}

.tn-model-toast-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  max-width: 100%;
  padding: 10px 14px;
  border-radius: 13px;
  background: linear-gradient(115deg,#ff690f,#ee3200);
  box-shadow: inset 0 1px #ffac76;
  color: #fff;
  font-weight: 800;
  line-height: 1.22;
  text-align: center;
  text-decoration: none;
}

.ai-donation .donation-account-link {display: block; margin: 0 0 16px; line-height: 1.45; font-weight: 700; text-decoration: underline}
.ai-donation .donation-account-link[hidden] {display: none}

.tn-model-toast-action span {
  flex: none;
}

.tn-model-toast-close {
  display: grid;
  place-items: center;
  align-self: start;
  margin: -6px -3px 0 0;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #e8ded3;
  cursor: pointer;
}

.tn-model-toast-close svg {
  width: 17px;
  height: 17px;
}

.tn-model-toast :focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

@media (hover:hover) and (pointer:fine) {
  .tn-model-toast-action:hover { box-shadow: inset 0 1px 0 #ffffff6a, 0 4px 14px #de4a1744; }
  .tn-model-toast-close:hover { background: #ffffff1a; }
}

@keyframes tn-model-toast-in {
  from { opacity: 0; transform: translateX(28px) scale(.98); }
  to { opacity: 1; transform: none; }
}

@keyframes tn-model-toast-out {
  to { opacity: 0; transform: translateX(24px); }
}

@media (max-width: 640px) {
  .tn-model-toast {
    inset-inline-end: max(12px, env(safe-area-inset-right));
    inset-block-start: calc(80px + env(safe-area-inset-top));
    inset-block-end: auto;
    width: min(442px, calc(100% - 24px));
    grid-template-columns: 38px minmax(0, 1fr) 28px;
    align-items: start;
    gap: 9px 10px;
    padding: 14px;
  }
  .tn-model-toast-mark { width: 38px; height: 38px; }
  .tn-model-toast-action { grid-column: 2 / -1; justify-self: start; }
  .tn-model-toast-close { grid-column: 3; grid-row: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .tn-model-toast, .tn-model-toast[data-closing] { animation: none; }
  .tn-model-toast-action { transition: none; }
}
