/* TENOR_CONTINUOUS_CONVERSATION_PANEL_INTEGRATION_V2_20260722 */
:root {
  --tenor-panel-height: 100dvh;
  --tenor-panel-bg-1: #0b58bd;
  --tenor-panel-bg-2: #07459e;
  --tenor-panel-line: rgba(105, 169, 255, .25);
  --tenor-panel-muted: #abc6ef;
}

html.tenor-conversation-active,
html.tenor-conversation-active body {
  overflow: hidden !important;
  touch-action: none;
}

html.tenor-conversation-active #tenor-live-question-box,
html.tenor-conversation-active #tenor-live-question-reopen,
html.tenor-conversation-active [data-tenor-query-fullscreen-answer="1"] {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

#tenor-continuous-conversation-root {
  position: fixed;
  inset: 0;
  z-index: 2147483647;
  display: none;
  box-sizing: border-box;
  width: 100%;
  height: var(--tenor-panel-height);
  padding:
    max(10px, env(safe-area-inset-top))
    max(10px, env(safe-area-inset-right))
    max(10px, env(safe-area-inset-bottom))
    max(10px, env(safe-area-inset-left));
  background: rgba(0, 5, 16, .96);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  color: #fff;
  -webkit-font-smoothing: antialiased;
  overscroll-behavior: none;
}

#tenor-continuous-conversation-root.is-open {
  display: grid;
  place-items: center;
}

.tenor-cp-panel {
  position: relative;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto auto;
  width: min(100%, 820px);
  height: 100%;
  max-height: 100%;
  overflow: hidden;
  border: 2px solid rgba(41, 119, 235, .72);
  border-radius: 28px;
  background:
    radial-gradient(circle at 12% 3%, rgba(41, 128, 255, .24), transparent 27%),
    linear-gradient(155deg, var(--tenor-panel-bg-1), var(--tenor-panel-bg-2));
  box-shadow: 0 24px 80px rgba(0, 0, 0, .55), inset 0 1px 0 rgba(255,255,255,.08);
}

.tenor-cp-header {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) 60px;
  gap: 14px;
  align-items: center;
  padding: 26px 30px 18px;
}

.tenor-cp-logo,
.tenor-cp-avatar-brand {
  color: #fff;
}

.tenor-cp-logo svg { width: 62px; height: 68px; display: block; }
.tenor-cp-title { margin: 0; font-size: clamp(26px, 5vw, 38px); line-height: 1; font-weight: 850; letter-spacing: .01em; }
.tenor-cp-subtitle { margin: 8px 0 0; color: #d7e7ff; font-size: clamp(15px, 3.4vw, 23px); line-height: 1.25; }

.tenor-cp-close {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  padding: 0;
  border: 2px solid rgba(255,255,255,.55);
  border-radius: 50%;
  background: rgba(255,255,255,.13);
  color: #fff;
  font: 300 48px/.8 system-ui, sans-serif;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.tenor-cp-private {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 58px;
  margin: 0 30px;
  padding: 10px 16px;
  border: 1px solid rgba(88, 153, 239, .62);
  border-radius: 17px;
  background: rgba(14, 67, 151, .38);
  color: #f5f9ff;
  font-size: clamp(15px, 3vw, 21px);
  text-align: center;
}
.tenor-cp-private svg { width: 23px; height: 23px; flex: 0 0 auto; }

.tenor-cp-messages {
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  padding: 24px 30px 10px;
  scrollbar-width: thin;
}

.tenor-cp-message {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 16px;
  padding: 20px 0 25px;
  border-bottom: 1px solid var(--tenor-panel-line);
}
.tenor-cp-message:last-child { border-bottom: 0; }

.tenor-cp-avatar {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: linear-gradient(145deg, #2f83ff, #1261e6);
  color: #fff;
}
.tenor-cp-avatar svg { width: 30px; height: 30px; }
.tenor-cp-avatar-brand { width: 56px; height: 62px; background: transparent; border-radius: 0; }
.tenor-cp-avatar-brand svg { width: 56px; height: 62px; }

.tenor-cp-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 0 10px;
  color: var(--tenor-panel-muted);
  font-size: clamp(15px, 3vw, 21px);
}
.tenor-cp-meta strong { color: #fff; font-weight: 800; }
.tenor-cp-message-assistant .tenor-cp-meta strong { color: #2b95ff; }
.tenor-cp-text {
  margin: 0;
  color: #fff;
  font-size: clamp(20px, 4vw, 29px);
  line-height: 1.38;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.tenor-cp-helper {
  margin: 13px 0 0;
  color: var(--tenor-panel-muted);
  font-size: clamp(16px, 3.2vw, 23px);
  line-height: 1.38;
  white-space: pre-wrap;
}

.tenor-cp-composer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) min(29vw, 190px);
  grid-template-areas: "field field" "hint send";
  gap: 10px 14px;
  padding: 10px 30px 22px;
  background: linear-gradient(180deg, rgba(8,63,145,0), rgba(8,63,145,.92) 24%);
}
.tenor-cp-input-shell {
  grid-area: field;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 76px;
  min-height: 96px;
  overflow: hidden;
  border: 2px solid #287cf2;
  border-radius: 17px;
  background: rgba(10, 52, 123, .56);
}
.tenor-cp-input {
  width: 100%;
  min-height: 92px;
  max-height: 170px;
  box-sizing: border-box;
  resize: none;
  padding: 22px 10px 18px 20px;
  border: 0;
  outline: 0;
  background: transparent;
  color: #fff;
  caret-color: #fff;
  font: inherit;
  font-size: clamp(18px, 3.6vw, 26px);
  line-height: 1.35;
}
.tenor-cp-input::placeholder { color: #a7bfe5; opacity: 1; }
.tenor-cp-mic {
  align-self: center;
  justify-self: center;
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: linear-gradient(145deg, #2178ed, #0e61d4);
  color: #fff;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.tenor-cp-mic svg { width: 33px; height: 33px; }
.tenor-cp-mic.is-listening { background: linear-gradient(145deg, #ed405c, #c92341); animation: tenorCpPulse 1.25s infinite; }
@keyframes tenorCpPulse { 50% { box-shadow: 0 0 0 12px rgba(255,73,101,0); } 0%,100% { box-shadow: 0 0 0 0 rgba(255,73,101,.45); } }
.tenor-cp-hint { grid-area: hint; align-self: center; margin: 0; color: var(--tenor-panel-muted); font-size: clamp(13px, 2.6vw, 19px); line-height: 1.3; }
.tenor-cp-send {
  grid-area: send;
  min-height: 68px;
  border: 0;
  border-radius: 16px;
  background: linear-gradient(145deg, #2b7cff, #1367ee);
  color: #fff;
  font: 800 clamp(19px, 3.5vw, 27px)/1 Inter, sans-serif;
  cursor: pointer;
}
.tenor-cp-send:disabled { opacity: .58; cursor: wait; }

.tenor-cp-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding: 18px 30px max(18px, env(safe-area-inset-bottom));
  border-top: 1px solid rgba(78,145,238,.25);
  background: rgba(11, 72, 163, .72);
}
.tenor-cp-action {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 9px;
  align-items: center;
  min-height: 72px;
  padding: 10px 12px;
  border: 1px solid rgba(84,151,244,.28);
  border-radius: 14px;
  background: rgba(33, 105, 205, .48);
  color: #fff;
  text-align: left;
  cursor: pointer;
}
.tenor-cp-action svg { width: 34px; height: 34px; }
.tenor-cp-action strong,
.tenor-cp-action span { display: block; }
.tenor-cp-action strong { font-size: clamp(13px, 2.5vw, 18px); line-height: 1.15; }
.tenor-cp-action span { margin-top: 3px; color: #d4e5ff; font-size: clamp(11px, 2.2vw, 15px); line-height: 1.2; }

.tenor-cp-close:focus-visible,
.tenor-cp-input:focus-visible,
.tenor-cp-mic:focus-visible,
.tenor-cp-send:focus-visible,
.tenor-cp-action:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }

@media (max-width: 520px) {
  #tenor-continuous-conversation-root { padding: 0; }
  .tenor-cp-panel { width: 100%; border-radius: 0; border-left: 0; border-right: 0; }
  .tenor-cp-header { grid-template-columns: 58px minmax(0,1fr) 48px; padding: max(18px, env(safe-area-inset-top)) 18px 14px; }
  .tenor-cp-logo svg { width: 50px; height: 56px; }
  .tenor-cp-close { width: 46px; height: 46px; font-size: 39px; }
  .tenor-cp-private { margin: 0 18px; min-height: 50px; }
  .tenor-cp-messages { padding: 14px 18px 6px; }
  .tenor-cp-message { grid-template-columns: 48px minmax(0,1fr); gap: 12px; padding: 15px 0 20px; }
  .tenor-cp-avatar { width: 44px; height: 44px; }
  .tenor-cp-avatar-brand { width: 46px; height: 52px; }
  .tenor-cp-avatar-brand svg { width: 46px; height: 52px; }
  .tenor-cp-composer { padding: 8px 18px 15px; grid-template-columns: minmax(0,1fr) 124px; }
  .tenor-cp-actions { padding: 12px 12px max(12px, env(safe-area-inset-bottom)); gap: 7px; }
  .tenor-cp-action { grid-template-columns: 1fr; justify-items: center; text-align: center; padding: 8px 5px; }
  .tenor-cp-action svg { width: 27px; height: 27px; }
}

@media (max-height: 650px) {
  .tenor-cp-header { padding-top: 12px; padding-bottom: 10px; }
  .tenor-cp-private { min-height: 44px; }
  .tenor-cp-actions { padding-top: 8px; padding-bottom: 8px; }
  .tenor-cp-action { min-height: 56px; }
}

/* TENOR_CONTINUOUS_CONVERSATION_PANEL_PRIVACY_OVERLAP_FIX_V2_1_20260722 */
.tenor-cp-panel {
  grid-template-rows: auto auto minmax(0, 1fr) auto auto !important;
}

.tenor-cp-private {
  position: relative !important;
  z-index: 3 !important;
  grid-row: 2 !important;
  flex: 0 0 auto !important;
  align-self: stretch !important;
  box-sizing: border-box !important;
  width: auto !important;
  height: auto !important;
  min-height: 58px !important;
  margin: 0 30px 16px !important;
  padding: 10px 16px !important;
  overflow: visible !important;
  line-height: 1.25 !important;
  white-space: normal !important;
}

.tenor-cp-private > span {
  display: block !important;
  min-width: 0 !important;
  line-height: 1.25 !important;
  white-space: normal !important;
  overflow-wrap: normal !important;
  word-break: normal !important;
}

.tenor-cp-private > svg {
  flex: 0 0 23px !important;
}

.tenor-cp-messages {
  position: relative !important;
  z-index: 1 !important;
  grid-row: 3 !important;
  padding-top: 8px !important;
  scroll-padding-top: 8px !important;
}

@media (max-width: 520px) {
  .tenor-cp-private {
    min-height: 54px !important;
    margin: 0 12px 14px !important;
    padding: 8px 12px !important;
    gap: 9px !important;
    font-size: 14px !important;
    line-height: 1.22 !important;
  }

  .tenor-cp-private > span {
    line-height: 1.22 !important;
  }

  .tenor-cp-private > svg {
    width: 21px !important;
    height: 21px !important;
    flex-basis: 21px !important;
  }

  .tenor-cp-messages {
    padding-top: 6px !important;
  }
}

@media (max-width: 360px) {
  .tenor-cp-private {
    margin-left: 10px !important;
    margin-right: 10px !important;
    font-size: 13px !important;
  }
}

/* TENOR_CONTINUOUS_CONVERSATION_PANEL_DELIVERY_AND_SCROLL_FIX_V2_2_20260722 */
.tenor-cp-messages {
  scroll-padding-top: 8px !important;
  scroll-padding-bottom: 24px !important;
}

.tenor-cp-message {
  scroll-margin-top: 8px !important;
  scroll-margin-bottom: 20px !important;
}

.tenor-cp-message-assistant:last-child {
  padding-bottom: 18px !important;
}

@media (max-width: 520px) {
  .tenor-cp-panel {
    grid-template-rows: auto auto minmax(150px, 1fr) auto auto !important;
  }

  .tenor-cp-header {
    padding-top: max(12px, env(safe-area-inset-top)) !important;
    padding-bottom: 10px !important;
  }

  .tenor-cp-private {
    margin-bottom: 10px !important;
  }

  .tenor-cp-messages {
    padding-top: 4px !important;
    padding-bottom: 10px !important;
  }
}

/* TENOR_CONTINUOUS_CONVERSATION_PANEL_15S_AND_DELIVERY_FIX_V2_3_20260722 */
.tenor-cp-input[data-tenor-submitted="1"] {
  opacity: 1 !important;
  color: #fff !important;
}
.tenor-cp-mic.is-listening {
  background: #19a85b !important;
  box-shadow: 0 0 0 4px rgba(25,168,91,.24), 0 0 22px rgba(25,168,91,.42) !important;
}
.tenor-cp-messages { overscroll-behavior: contain !important; }
@media (max-width: 520px) {
  .tenor-cp-composer { position: relative !important; z-index: 4 !important; }
  .tenor-cp-input-wrap { min-height: 88px !important; }
}
