/* Light chat demo approved for the Crypto hero. Wallpaper from Telegram Web K. */
#alfred-site .am-crypto-demo {
  display:flex;
  justify-content:center;
  align-items:center;
  min-width:0;
}

#alfred-site .crypto-chat *,
#alfred-site .crypto-chat *::before,
#alfred-site .crypto-chat *::after { box-sizing:border-box; }

#alfred-site .crypto-chat p { margin:0; }

#alfred-site .crypto-chat {
  box-sizing:border-box;
  width:min(100%,252px);
  min-width:0;
  overflow:hidden;
  color:#17232b;
  background:#fbfcfa;
  border:1px solid #526d4140;
  border-radius:17px;
  box-shadow:0 15px 34px #39421735, 0 3px 8px #39421714;
  font:400 14px/1.35 -apple-system,BlinkMacSystemFont,"Segoe UI","DM Sans",sans-serif;
}
#alfred-site .chat-header {
  display:flex;
  align-items:center;
  gap:8px;
  min-height:46px;
  padding:7px 11px;
  background:#f9fcfc;
  border-bottom:1px solid #dce7e4;
}
#alfred-site .chat-header svg {
  flex:none;
  width:16px;
  height:16px;
  color:#2786c0;
}
#alfred-site .chat-avatar { width:30px; height:30px; display:block; border-radius:50%; }
#alfred-site .chat-identity { flex:1; }
#alfred-site .chat-identity strong { display:block; font-size:14px; font-weight:650; }
#alfred-site .chat-identity small { display:block; color:#577082; font-size:11px; }

#alfred-site .chat-body {
  position:relative;
  isolation:isolate;
  display:grid;
  gap:8px;
  padding:9px 11px 11px;
  background:linear-gradient(145deg,#dcebbc,#b9d8ba 59%,#cce5d3);
}
#alfred-site .chat-body::before {
  position:absolute;
  inset:0;
  z-index:-1;
  content:"";
  background:url("./chat-wallpaper.webp") center 44% / 315px auto;
  opacity:.13;
  pointer-events:none;
}
#alfred-site .crypto-chat p.chat-date {
  justify-self:center;
  padding:2px 8px;
  border-radius:999px;
  background:#345442ba;
  color:#fff;
  font-size:10px;
  line-height:1.25;
}
#alfred-site .chat-request,
#alfred-site .chat-reply {
  position:relative;
  box-shadow:0 1px 2px #31573e16;
}
#alfred-site .chat-request {
  --bubble:#e6ffc9;
  display:flex;
  flex-wrap:wrap;
  align-items:baseline;
  justify-content:flex-end;
  gap:6px;
  justify-self:end;
  max-width:calc(100% - 7px);
  padding:7px 8px 6px;
  border-radius:11px 11px 4px 11px;
  background:var(--bubble);
  font-size:13px;
}
#alfred-site .chat-request::after,
#alfred-site .chat-reply::after {
  content:"";
  position:absolute;
  bottom:0;
  width:8px;
  height:10px;
  background:var(--bubble);
}
#alfred-site .chat-request::after {
  right:-5px;
  clip-path:polygon(0 0,100% 100%,0 100%);
}
#alfred-site .chat-reply::after {
  left:-5px;
  clip-path:polygon(100% 0,100% 100%,0 100%);
}
#alfred-site .chat-time {
  display:inline-flex;
  align-items:center;
  gap:3px;
  margin-left:auto;
  flex:none;
  color:#576e76;
  white-space:nowrap;
  font-size:10px;
  font-weight:400;
  line-height:1;
}
#alfred-site .chat-time svg { width:12px; height:12px; color:#327940; }
#alfred-site .chat-reply {
  --bubble:#fff;
  background:var(--bubble);
  border-radius:11px 11px 11px 4px;
  padding:7px 9px 8px;
  width:fit-content;
  max-width:calc(100% - 16px);
  font-size:14px;
  line-height:1.3;
}
#alfred-site .chat-offer { min-width:min(100%,176px); }
#alfred-site .chat-sender { color:#1e709d; font-size:11px; font-weight:650; }
#alfred-site .chat-line { display:flex; flex-wrap:wrap; align-items:baseline; gap:3px 8px; }
#alfred-site .quote-fee {
  display:flex;
  align-items:baseline;
  gap:3px;
  width:fit-content;
  color:#493224;
  margin:1px 0 3px;
  font:400 16px/1 "DM Sans",Arial,sans-serif;
  white-space:nowrap;
}
#alfred-site .quote-fee strong {
  display:inline-block;
  padding-inline-end:.08em;
  color:#1a120a;
  font:750 52px/1.05 Inter,Arial,sans-serif;
  letter-spacing:-.077em;
}
@supports (background-clip:text) or (-webkit-background-clip:text) {
  #alfred-site .quote-fee strong {
    background:linear-gradient(105deg,#1a120a 0%,#1a120a 25%,#b8a080 38%,#fffaf0 50%,#b8a080 62%,#1a120a 75%,#1a120a 100%) 160% center / 280% auto;
    -webkit-background-clip:text;
    background-clip:text;
    -webkit-text-fill-color:transparent;
    animation:crypto-quote-glint 5s ease-in-out infinite;
  }
}
@keyframes crypto-quote-glint {
  0%,25% { background-position:160% center; }
  65%,100% { background-position:-160% center; }
}

#alfred-site .crypto-chat a.chat-cta {
  justify-self:center;
  display:grid;
  place-items:center;
  width:min(100%,182px);
  min-height:44px;
  margin-block:3px 5px;
  padding:6px 5px;
  border:1px solid #ffffffed;
  border-radius:999px;
  color:#203c30;
  background:linear-gradient(155deg,#fffffff5 0%,#f7fff0b8 41%,#dcf2dd73 100%);
  box-shadow:inset 0 1px 1px #fff, inset 0 -2px 3px #f3fff9b3, 0 2px 3px #27443227, 0 7px 14px -3px #27443265;
  -webkit-backdrop-filter:blur(10px) saturate(1.2);
  backdrop-filter:blur(10px) saturate(1.2);
  font-size:12px;
  font-weight:650;
  line-height:1.2;
  text-align:center;
  text-decoration:none;
  text-wrap:balance;
}
#alfred-site .crypto-chat a.chat-cta:hover {
  background-color:#f2fff0b3;
  box-shadow:inset 0 1px 1px #fff, inset 0 -2px 3px #f3fff9b3, 0 3px 4px #27443227, 0 9px 15px -3px #27443270;
}
#alfred-site .crypto-chat a.chat-cta:focus-visible { outline:2px solid #2d5744; outline-offset:3px; }
#alfred-site .crypto-chat a.chat-cta:active { transform:translateY(1px); }
#alfred-site .chat-trust p { text-wrap:pretty; }
#alfred-site .chat-flag {
  display:inline-block;
  vertical-align:baseline;
  margin-inline-start:.22em;
  transform-origin:20% 70%;
  animation:crypto-canada-flag 7s ease-in-out infinite;
}
@keyframes crypto-canada-flag {
  0%,75%,92%,100% { transform:rotate(0) translateY(0); }
  79%,87% { transform:rotate(-11deg) translateY(-1px); }
  83% { transform:rotate(8deg) translateY(-1px); }
}
#alfred-site .chat-composer {
  display:flex;
  align-items:center;
  gap:10px;
  padding:6px 11px;
  border-top:1px solid #d3e3d6;
  background:#f7faf8;
  color:#517383;
  font-size:12px;
}
#alfred-site .chat-composer span {
  flex:1;
  padding:5px 10px;
  border-radius:999px;
  background:#eaf1ee;
}
#alfred-site .chat-composer svg { width:15px; height:15px; }
@media (prefers-reduced-motion:reduce) {
  #alfred-site .quote-fee strong { animation:none; background:none; -webkit-text-fill-color:currentColor; }
  #alfred-site .chat-flag { animation:none; }
}
