/* Isolated from page, map and animation styles. Native dialog supplies focus trapping. */
#pt-telegram-handoff {
  box-sizing: border-box;
  width: min(520px, calc(100vw - 28px));
  max-height: calc(100vh - 32px);
  max-height: calc(100dvh - 32px);
  margin: auto;
  padding: 30px;
  overflow: auto;
  overscroll-behavior: contain;
  border: 1px solid #cfc4b5;
  border-radius: 18px;
  background: #f6f2eb;
  color: #292d2b;
  box-shadow: 0 24px 90px #0005;
  font-family: Manrope, Arial, sans-serif;
  text-align: left;
  letter-spacing: normal;
}
#pt-telegram-handoff:not([open]) { display: none; }
#pt-telegram-handoff::backdrop { background: #13201dcc; }
#pt-telegram-handoff h2 {
  margin: 2px 38px 12px 0;
  color: inherit;
  font: 600 27px/1.2 Manrope, Arial, sans-serif;
  letter-spacing: -.025em;
  text-transform: none;
  opacity: 1;
  transform: none;
}
#pt-telegram-handoff p {
  margin: 0 0 18px;
  color: inherit;
  font: 400 14px/1.6 Manrope, Arial, sans-serif;
  letter-spacing: normal;
}
#pt-telegram-handoff textarea {
  box-sizing: border-box;
  display: block;
  width: 100%;
  min-height: 145px;
  margin: 0 0 16px;
  padding: 14px;
  border: 1px solid #d1c6b8;
  border-radius: 9px;
  background: #fffaf3;
  color: #292d2b;
  font: 400 16px/1.6 Manrope, Arial, sans-serif;
  resize: vertical;
  -webkit-user-select: text;
  user-select: text;
}
#pt-telegram-handoff button, #pt-telegram-handoff a {
  box-sizing: border-box;
  letter-spacing: normal;
  text-transform: none;
  cursor: pointer;
}
#pt-telegram-handoff .pt-tg-actions {
  display: grid;
  gap: 10px;
}
#pt-telegram-handoff [data-tg-copy], #pt-telegram-handoff [data-tg-app] {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 48px;
  margin: 0;
  padding: 12px 16px;
  border: 1px solid #3c514b;
  border-radius: 8px;
  background: #3c514b;
  color: #fffaf3;
  font: 600 14px/1.4 Manrope, Arial, sans-serif;
  text-decoration: none;
}
#pt-telegram-handoff [data-tg-app] { color: #30433d; background: transparent; }
#pt-telegram-handoff [data-tg-copy]:disabled { opacity: .65; cursor: wait; }
#pt-telegram-handoff [data-tg-browser] {
  display: block;
  margin: 10px 0 0;
  padding: 12px 0 0;
  color: #455b52;
  font: 400 13px/1.5 Manrope, Arial, sans-serif;
  text-align: center;
  text-decoration: underline;
  text-underline-offset: 3px;
}
#pt-telegram-handoff [data-tg-status] { margin: 14px 0 0; font-size: 13px; }
#pt-telegram-handoff [data-tg-status]:empty { display: none; }
#pt-telegram-handoff [data-tg-close] {
  position: absolute;
  top: 12px;
  right: 12px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #455b52;
  font: 300 28px/1 Arial, sans-serif;
}
#pt-telegram-handoff :focus-visible { outline: 2px solid #8c6e4b; outline-offset: 3px; }
@media (max-width: 480px) {
  #pt-telegram-handoff { padding: 26px 20px 22px; }
  #pt-telegram-handoff h2 { font-size: 25px; }
}
