.prisma-att-button {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  z-index: 1200;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 1.15rem;
  border-radius: 999px;
  border: none;
  background: linear-gradient(135deg, #2563eb, #7c3aed);
  color: #f8fafc;
  font-weight: 600;
  font-size: 0.95rem;
  box-shadow: 0 16px 34px rgba(37, 99, 235, 0.35);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.prisma-att-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 40px rgba(37, 99, 235, 0.45);
}

.prisma-att-button.is-disabled {
  opacity: 0.5;
  cursor: not-allowed;
  box-shadow: none;
}

.prisma-att-panel {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  width: min(1100px, calc(100vw - 4rem));
  height: min(90vh, calc(100vh - 3rem));
  max-height: none;
  display: none;
  flex-direction: column;
  border-radius: 22px;
  background: rgba(10, 12, 24, 0.96);
  backdrop-filter: blur(18px);
  border: 1px solid rgba(148, 163, 184, 0.3);
  box-shadow: 0 28px 60px rgba(15, 23, 42, 0.55);
  overflow: hidden;
  z-index: 1250;
}

.prisma-att-panel--standalone {
  position: relative;
  left: auto;
  right: auto;
  top: auto;
  bottom: auto;
  transform: none;
  margin: 0 auto 1.25rem;
  width: min(900px, calc(100vw - 2rem));
  height: clamp(520px, 80vh, 740px);
  display: flex;
  max-height: none;
  box-shadow: 0 28px 60px rgba(15, 23, 42, 0.55);
}

.prisma-att-panel--standalone.is-open {
  display: flex;
}

.prisma-att-panel--standalone .prisma-att-header {
  padding: 1.2rem 1.4rem 0.9rem;
}

.prisma-att-header--standalone h4 {
  font-size: 1.2rem;
}

.prisma-att-header--standalone small {
  font-size: 0.88rem;
}

.prisma-att-panel--standalone .prisma-att-footer {
  padding: 1.15rem 1.5rem 1.35rem;
}

.prisma-att-panel--standalone .prisma-att-footer-meta {
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  text-align: center;
  flex-wrap: wrap;
}

.prisma-att-panel--standalone .prisma-att-home-link {
  font-size: 0.82rem;
  color: rgba(248, 250, 252, 0.85);
  text-decoration: underline;
}

.prisma-att-panel--standalone .prisma-att-home-link:hover,
.prisma-att-panel--standalone .prisma-att-home-link:focus-visible {
  color: #ffffff;
}

.prisma-att-panel.is-open {
  display: flex;
}

.prisma-att-header {
  padding: 1rem 1.2rem 0.85rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(148, 163, 184, 0.22);
  color: #f8fafc;
}

.prisma-att-header h4 {
  font-size: 1.05rem;
  margin: 0;
}

.prisma-att-header small {
  color: rgba(226, 232, 240, 0.75);
}

.prisma-att-close {
  border: none;
  background: transparent;
  color: rgba(226, 232, 240, 0.75);
  font-size: 1.1rem;
  cursor: pointer;
  transition: color 0.2s ease;
}

.prisma-att-close:hover {
  color: #f8fafc;
}

.prisma-att-body {
  flex: 1;
  padding: 1rem 1.2rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.prisma-att-message {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  max-width: 90%;
  font-size: 0.92rem;
  line-height: 1.45;
}

.prisma-att-message--user {
  align-self: flex-end;
  text-align: right;
  color: #1f2937;
}

.prisma-att-message--user .prisma-att-bubble {
  background: #e8f1ff;
  color: #1f2937;
}

.prisma-att-message--assistant {
  align-self: flex-start;
  color: #e2e8f0;
}

.prisma-att-message--assistant .prisma-att-bubble {
  background: rgba(17, 24, 39, 0.85);
  border: 1px solid rgba(148, 163, 184, 0.25);
}

.prisma-att-bubble {
  padding: 0.75rem 1rem;
  border-radius: 14px;
  background: rgba(248, 250, 252, 0.08);
  backdrop-filter: blur(14px);
}

.prisma-att-link-button {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.85rem;
  margin-top: 0.5rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #22c55e, #16a34a);
  color: #f8fafc !important;
  font-weight: 600;
  font-size: 0.85rem;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.prisma-att-link-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(34, 197, 94, 0.25);
}

.prisma-att-footer {
  padding: 0.95rem 1.2rem 1.15rem;
  border-top: 1px solid rgba(148, 163, 184, 0.22);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.prisma-att-footer-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.85rem;
  width: 100%;
  flex-wrap: wrap;
  flex-direction: row-reverse;
}

.prisma-att-input {
  width: 100%;
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.3);
  background: rgba(15, 23, 42, 0.7);
  color: #f1f5f9;
  padding: 0.75rem 1rem;
  resize: none;
  min-height: 72px;
  font-size: 0.95rem;
}

.prisma-att-submit {
  align-self: flex-end;
  padding: 0.5rem 1.25rem;
  border: none;
  border-radius: 999px;
  background: linear-gradient(135deg, #2563eb, #7c3aed);
  color: #f8fafc;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.prisma-att-submit[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
}

.prisma-att-whats-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(248, 250, 252, 0.35);
  background: rgba(15, 23, 42, 0.65);
  color: #f8fafc;
  font-size: 0.75rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.prisma-att-whats-cta:hover {
  opacity: 0.85;
  transform: translateY(-1px);
}

.prisma-att-whats-cta:focus-visible {
  outline: 2px solid rgba(59, 130, 246, 0.8);
  outline-offset: 2px;
}

.prisma-att-footer-copy {
  font-size: 0.72rem;
  color: rgba(248, 250, 252, 0.8);
}

.prisma-att-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 12, 24, 0.94);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 2.5rem 1.5rem;
  text-align: center;
  color: #f8fafc;
  z-index: 20;
}

.prisma-att-overlay.is-hidden {
  display: none;
}

.prisma-att-overlay--firewall {
  background: rgba(65, 4, 4, 0.95);
}

.prisma-att-overlay__content--firewall i {
  color: #f87171;
}

.prisma-att-firewall-text {
  font-weight: 600;
  line-height: 1.4;
}

.prisma-att-firewall-ip {
  display: block;
  margin-top: 0.4rem;
  font-family: "IBM Plex Mono", monospace;
  font-weight: 400;
}

.prisma-att-firewall-timer {
  font-size: 1.4rem;
  font-weight: 700;
  color: #fca5a5;
}

.prisma-att-overlay i {
  font-size: 2.2rem;
  color: #60a5fa;
}

.prisma-att-overlay button {
  border: 1px solid rgba(148, 163, 184, 0.4);
  background: transparent;
  color: #f8fafc;
  padding: 0.45rem 1.25rem;
  border-radius: 999px;
  font-size: 0.85rem;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.prisma-att-overlay button:hover {
  background: rgba(148, 163, 184, 0.15);
}

.prisma-att-overlay__content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  max-width: 420px;
}

.prisma-att-overlay__text {
  font-size: 0.95rem;
  line-height: 1.45;
}

.prisma-att-status {
  font-size: 0.8rem;
  color: rgba(226, 232, 240, 0.7);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.prisma-att-status button {
  background: transparent;
  border: none;
  color: rgba(226, 232, 240, 0.7);
  font-size: 0.8rem;
  cursor: pointer;
  text-decoration: underline;
}

.prisma-att-turnstile {
  display: none;
}

.prisma-att-turnstile.is-visible {
  display: block;
}

.prisma-att-turnstile--overlay.is-visible {
  display: flex;
  justify-content: center;
}

@media (max-width: 575.98px) {
  .prisma-att-panel {
    left: 50%;
    transform: translateX(-50%);
    width: calc(100vw - 1.5rem);
    height: calc(100vh - 1.5rem);
    max-height: none;
  }
  .prisma-att-button {
    left: 50%;
    transform: translateX(-50%);
    bottom: 1rem;
  }
  .prisma-att-panel--standalone {
    width: calc(100vw - 1.25rem);
    height: calc(100vh - 1.25rem);
    margin: 0 auto 1rem;
  }
}
