.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.tptc-assistant {
  position: fixed;
  right: 1.1rem;
  bottom: 1.1rem;
  z-index: 80;
  font-family: var(--font, system-ui, sans-serif);
}
.tptc-assistant-fab {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.4rem 0.85rem 0.4rem 0.4rem;
  border: 0;
  border-radius: 999px;
  background: var(--night, #0E5C82);
  color: #fff;
  font: inherit;
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
  box-shadow: 0 12px 32px rgba(10, 37, 64, 0.28);
}
.tptc-assistant-fab img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #fff;
  object-fit: contain;
}
.tptc-assistant-fab:hover { filter: brightness(1.08); }
.tptc-assistant-panel[hidden] {
  display: none !important;
}
.tptc-assistant-panel {
  position: fixed;
  right: 1.1rem;
  bottom: 4.7rem;
  width: min(24.5rem, calc(100vw - 1.6rem));
  min-width: 18rem;
  height: min(34rem, calc(100vh - 7rem));
  display: flex;
  flex-direction: column;
  background: #fff;
  color: var(--ink, #0E5C82);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 22px 50px rgba(10, 37, 64, 0.22);
  border: 1px solid rgba(14, 92, 130, 0.12);
}
.tptc-assistant-head {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.8rem 0.9rem;
  background: linear-gradient(120deg, var(--night, #0E5C82), var(--sea-deep, #1D77A5));
  color: #fff;
}
.tptc-assistant-head img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #fff;
  object-fit: contain;
}
.tptc-assistant-head strong {
  display: block;
  font-size: 0.95rem;
  letter-spacing: -0.02em;
}
.tptc-assistant-head small {
  display: block;
  opacity: 0.82;
  font-size: 0.72rem;
}
.tptc-assistant-x {
  margin-left: auto;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}
.tptc-assistant-welcome[hidden] {
  display: none !important;
}
.tptc-assistant-welcome {
  flex-shrink: 0;
  padding: 0.85rem 0.9rem 0.75rem;
  background: #fff;
  border-bottom: 1px solid rgba(14, 92, 130, 0.1);
}
.tptc-assistant-welcome p {
  margin: 0 0 0.6rem;
  font-size: 0.9rem;
  line-height: 1.45;
  font-weight: 600;
  color: var(--night, #0E5C82);
}
.tptc-assistant-log {
  flex: 1;
  overflow: auto;
  padding: 0.9rem;
  background: #f4fafd;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}
.tptc-assistant-bubble {
  max-width: 92%;
  padding: 0.7rem 0.85rem;
  border-radius: 14px;
  font-size: 0.88rem;
  line-height: 1.5;
  white-space: pre-wrap;
}
.tptc-assistant-bubble.is-bot {
  align-self: flex-start;
  background: #fff;
  border: 1px solid rgba(14, 92, 130, 0.1);
}
.tptc-assistant-bubble.is-user {
  align-self: flex-end;
  background: var(--sea, #3999CE);
  color: #fff;
}
.tptc-assistant-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.tptc-assistant-chips button {
  border: 1px solid rgba(14, 92, 130, 0.18);
  background: #fff;
  color: var(--sea-deep, #1D77A5);
  border-radius: 999px;
  padding: 0.35rem 0.7rem;
  font: inherit;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
}
.tptc-assistant-form {
  display: flex;
  gap: 0.45rem;
  padding: 0.7rem;
  border-top: 1px solid rgba(14, 92, 130, 0.1);
  background: #fff;
}
.tptc-assistant-form textarea {
  flex: 1;
  resize: none;
  min-height: 2.5rem;
  max-height: 6rem;
  border: 1px solid rgba(14, 92, 130, 0.18);
  border-radius: 12px;
  padding: 0.55rem 0.7rem;
  font: inherit;
  font-size: 0.88rem;
}
.tptc-assistant-form button {
  border: 0;
  border-radius: 12px;
  background: var(--amber, #FCD116);
  color: var(--night, #0E5C82);
  font: inherit;
  font-weight: 800;
  padding: 0 0.9rem;
  cursor: pointer;
}
@media (max-width: 640px) {
  .tptc-assistant-fab span { display: none; }
  .tptc-assistant-fab { padding: 0.35rem; }
}
