/* Telegram widget positioned inside the Daily Signals explanation section. */

#fbbTelegramPitchWidget {
  position: relative;
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr);
  gap: 17px;
  align-items: center;
  width: 100%;
  margin: 22px 0 4px;
  padding: 20px;
  overflow: hidden;
  isolation: isolate;

  color: #f8fbfd;
  border: 1px solid rgba(0, 177, 255, .48);
  border-radius: 18px;

  background:
    linear-gradient(rgba(0, 255, 135, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 177, 255, .045) 1px, transparent 1px),
    radial-gradient(circle at 92% 5%, rgba(0, 255, 135, .19), transparent 35%),
    radial-gradient(circle at 5% 100%, rgba(0, 177, 255, .17), transparent 38%),
    linear-gradient(145deg, #0b1115, #10242b 55%, #10372d);

  background-size:
    38px 38px,
    38px 38px,
    auto,
    auto,
    auto;

  box-shadow:
    0 20px 44px rgba(0, 0, 0, .36),
    0 0 24px rgba(0, 177, 255, .11),
    0 0 34px rgba(0, 255, 135, .08),
    inset 0 1px 0 rgba(255, 255, 255, .07);
}

#fbbTelegramPitchWidget::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 12px;
  border: 1px solid rgba(255, 255, 255, .045);
  border-radius: 13px;
  pointer-events: none;
}

#fbbTelegramPitchWidget::after {
  content: "";
  position: absolute;
  top: 0;
  right: 12%;
  left: 12%;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    #00b1ff,
    #00ff87,
    transparent
  );
  box-shadow: 0 0 17px rgba(0, 255, 135, .42);
}

.fbb-telegram-pitch-icon {
  display: grid;
  place-items: center;
  width: 68px;
  height: 68px;
  border: 1px solid rgba(0, 177, 255, .42);
  border-radius: 17px;
  background: linear-gradient(
    145deg,
    rgba(0, 177, 255, .22),
    rgba(0, 255, 135, .14)
  );
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .08),
    0 0 20px rgba(0, 177, 255, .08);
}

.fbb-telegram-pitch-icon svg {
  width: 37px;
  height: 37px;
  fill: #28a9ea;
  filter: drop-shadow(0 0 9px rgba(40, 169, 234, .32));
}

.fbb-telegram-pitch-content {
  min-width: 0;
}

.fbb-telegram-pitch-kicker {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 7px;
  color: #00ff87;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.fbb-telegram-pitch-title {
  display: block;
  margin-bottom: 6px;
  color: #ffffff;
  font-size: 18px;
  font-weight: 900;
  line-height: 1.25;
}

.fbb-telegram-pitch-description {
  display: block;
  margin-bottom: 14px;
  color: #bdcbd3;
  font-size: 14px;
  line-height: 1.55;
}

.fbb-telegram-pitch-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 17px;

  color: #04110d !important;
  font-size: 14px;
  font-weight: 900;
  text-decoration: none !important;

  border-radius: 11px;
  background: linear-gradient(135deg, #00b1ff, #00ff87);
  box-shadow:
    0 10px 22px rgba(0, 177, 255, .19),
    0 0 18px rgba(0, 255, 135, .12);

  transition:
    transform .16s ease,
    box-shadow .16s ease;
}

.fbb-telegram-pitch-button:hover {
  transform: translateY(-2px);
  box-shadow:
    0 14px 26px rgba(0, 177, 255, .25),
    0 0 22px rgba(0, 255, 135, .17);
}

.fbb-telegram-direction-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin: 10px 0 0;
  color: #00d8ff !important;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none !important;
}

.fbb-telegram-direction-link:hover {
  color: #00ff87 !important;
}

.fbb-signal-percent-black {
  color: #050505 !important;
  -webkit-text-fill-color: #050505 !important;
  text-shadow: none !important;
}

html[lang="pt"] .fbb-widget-en,
html[data-lang="pt"] .fbb-widget-en,
body[data-lang="pt"] .fbb-widget-en {
  display: none !important;
}

html[lang="en"] .fbb-widget-pt,
html[data-lang="en"] .fbb-widget-pt,
body[data-lang="en"] .fbb-widget-pt {
  display: none !important;
}

@media (max-width: 760px) {
  #fbbTelegramPitchWidget {
    grid-template-columns: 54px minmax(0, 1fr);
    gap: 13px;
    margin-top: 16px;
    padding: 15px;
    border-radius: 15px;
  }

  .fbb-telegram-pitch-icon {
    width: 54px;
    height: 54px;
    border-radius: 14px;
  }

  .fbb-telegram-pitch-icon svg {
    width: 30px;
    height: 30px;
  }

  .fbb-telegram-pitch-title {
    font-size: 16px;
  }

  .fbb-telegram-pitch-button {
    grid-column: 1 / -1;
    width: 100%;
  }
}
