/* ARB Live Chat 2.0 — premium visitor widget */

:root {
  --arb-chat-purple: #3a11b0;
  --arb-chat-purple-deep: #1a0b2e;
  --arb-chat-purple-panel: #2d0f86;
  --arb-chat-light-purple: #8a5eff;
  --arb-chat-seafoam: #28e0e0;
  --arb-chat-white: #ffffff;
  --arb-chat-muted: rgba(255, 255, 255, 0.72);
  --arb-chat-border: rgba(138, 94, 255, 0.24);
  --arb-chat-shadow: 0 28px 90px rgba(12, 4, 36, 0.42);
  --arb-chat-radius: 22px;
  --arb-chat-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

.arb-chat-hidden { display: none !important; }

.arb-chat-root {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 10001;
  font-family: Poppins, Arial, sans-serif;
}

/* Closed chat must not block page clicks — only the launcher stays interactive. */
.arb-chat-root:not(.is-open) {
  pointer-events: none;
}

.arb-chat-root:not(.is-open) .arb-chat-launcher {
  pointer-events: auto;
}

.arb-chat-root:not(.is-open) .arb-chat-panel {
  pointer-events: none;
}

.arb-chat-root.is-open {
  pointer-events: auto;
}

/* ── Launcher ── */

.arb-chat-launcher {
  position: relative;
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
  transform: translateY(16px) scale(0.96);
  opacity: 0;
  transition: transform 0.5s var(--arb-chat-ease), opacity 0.5s var(--arb-chat-ease);
}

.arb-chat-root.is-ready .arb-chat-launcher {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.arb-chat-launcher-glow {
  position: absolute;
  inset: -8px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(40, 224, 224, 0.34), transparent 68%);
  opacity: 0.85;
  animation: arb-chat-pulse 2.8s ease-in-out infinite;
}

.arb-chat-root.has-unread .arb-chat-launcher-glow {
  animation: arb-chat-pulse-strong 1.4s ease-in-out infinite;
}

.arb-chat-launcher-inner {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 220px;
  padding: 14px 18px 14px 14px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--arb-chat-seafoam), #53efe8 58%, #9ff7f4);
  color: var(--arb-chat-purple);
  box-shadow: var(--arb-chat-shadow);
  transition: transform 0.25s var(--arb-chat-ease), box-shadow 0.25s var(--arb-chat-ease);
}

.arb-chat-launcher:hover .arb-chat-launcher-inner {
  transform: translateY(-2px);
  box-shadow: 0 32px 80px rgba(40, 224, 224, 0.28);
}

.arb-chat-launcher-icon {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
}

.arb-chat-launcher-copy {
  display: grid;
  gap: 2px;
  text-align: left;
}

.arb-chat-launcher-copy strong {
  font-size: 18px;
  line-height: 1;
  font-weight: 700;
}

.arb-chat-launcher-copy small {
  font-size: 12px;
  line-height: 1.2;
  font-weight: 600;
  opacity: 0.72;
}

.arb-chat-launcher-badge {
  position: absolute;
  top: -4px;
  right: -2px;
  z-index: 2;
  min-width: 24px;
  height: 24px;
  padding: 0 7px;
  border-radius: 999px;
  background: #ff5d7a;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  line-height: 24px;
  text-align: center;
  box-shadow: 0 8px 20px rgba(255, 93, 122, 0.45);
}

/* ── Panel ── */

.arb-chat-panel {
  position: absolute;
  right: 0;
  bottom: calc(100% + 18px);
  width: min(430px, calc(100vw - 32px));
  height: min(680px, calc(100vh - 110px));
  overflow: hidden;
  border-radius: var(--arb-chat-radius);
  border: 1px solid rgba(138, 94, 255, 0.28);
  box-shadow: var(--arb-chat-shadow);
  background: linear-gradient(160deg, rgba(58, 17, 176, 0.98), rgba(26, 11, 46, 0.98));
  opacity: 0;
  visibility: hidden;
  transform: translateY(18px) scale(0.96);
  transform-origin: bottom right;
  transition: opacity 0.28s var(--arb-chat-ease), transform 0.28s var(--arb-chat-ease), visibility 0.28s;
}

.arb-chat-root.is-open .arb-chat-panel {
  opacity: 1;
  visibility: visible;
  pointer-events: auto !important;
  transform: translateY(0) scale(1);
}

.arb-chat-panel-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.arb-chat-blob {
  position: absolute;
  border-radius: 999px;
  filter: blur(40px);
  opacity: 0.45;
}

.arb-chat-blob-a {
  width: 220px;
  height: 220px;
  top: -80px;
  right: -40px;
  background: rgba(40, 224, 224, 0.28);
}

.arb-chat-blob-b {
  width: 260px;
  height: 260px;
  bottom: 80px;
  left: -100px;
  background: rgba(138, 94, 255, 0.32);
}

.arb-chat-grid {
  position: absolute;
  inset: 0;
  opacity: 0.08;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.7) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.7) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: linear-gradient(to bottom, black, transparent 88%);
}

.arb-chat-panel-shell {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  height: 100%;
  max-width: 100%;
  overflow: hidden;
}

/* ── Header ── */

.arb-chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 18px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
}

.arb-chat-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.arb-chat-brand-mark {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  overflow: hidden;
}

.arb-chat-brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.arb-chat-brand-title {
  margin: 0;
  color: var(--arb-chat-white);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.1;
}

.arb-chat-brand-status {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 4px 0 0;
  color: var(--arb-chat-muted);
  font-size: 13px;
}

.arb-chat-online-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--arb-chat-seafoam);
  box-shadow: 0 0 0 4px rgba(40, 224, 224, 0.18);
}

.arb-chat-online-dot.is-offline {
  background: #f59e0b;
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.18);
}

.arb-chat-online-dot.is-away {
  background: #fbbf24;
  box-shadow: 0 0 0 4px rgba(251, 191, 36, 0.18);
}

.arb-chat-offline-banner {
  margin: 0 0 14px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(245, 158, 11, 0.28);
  background: rgba(245, 158, 11, 0.12);
  color: var(--arb-chat-white);
}

.arb-chat-offline-banner p {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
}

.arb-chat-offline-next {
  display: block;
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 12px;
}

.arb-chat-icon-btn {
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--arb-chat-white);
  display: grid;
  place-items: center;
  cursor: pointer;
}

.arb-chat-icon-btn svg {
  width: 18px;
  height: 18px;
}

.arb-chat-icon-btn.is-active {
  color: var(--arb-chat-seafoam);
  border-color: rgba(40, 224, 224, 0.35);
  background: rgba(40, 224, 224, 0.12);
}

/* ── Views ── */

.arb-chat-body {
  flex: 1;
  min-height: 0;
  position: relative;
}

.arb-chat-view {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  padding: 18px;
  opacity: 0;
  visibility: hidden;
  transform: translateX(16px);
  transition: opacity 0.24s var(--arb-chat-ease), transform 0.24s var(--arb-chat-ease), visibility 0.24s;
  overflow: auto;
}

.arb-chat-root:not(.is-open) .arb-chat-panel {
  pointer-events: none !important;
}

.arb-chat-view:not(.is-active) {
  pointer-events: none;
}

.arb-chat-root.is-open .arb-chat-view.is-active {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
  pointer-events: auto;
}

.arb-chat-hero h2 {
  margin: 0;
  color: var(--arb-chat-white);
  font-size: clamp(1.7rem, 4vw, 2.15rem);
  line-height: 1.08;
  font-weight: 700;
}

.arb-chat-hero-compact h2 {
  font-size: clamp(1.45rem, 3vw, 1.8rem);
}

.arb-chat-eyebrow {
  margin: 0 0 8px;
  color: var(--arb-chat-light-purple);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.arb-chat-lead {
  margin: 10px 0 0;
  color: var(--arb-chat-muted);
  font-size: 16px;
  line-height: 1.55;
}

.arb-chat-trust {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 18px 0;
}

.arb-chat-trust-item {
  padding: 12px 10px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
}

.arb-chat-trust-item strong {
  display: block;
  color: var(--arb-chat-seafoam);
  font-size: 13px;
  margin-bottom: 4px;
}

.arb-chat-trust-item span {
  color: var(--arb-chat-muted);
  font-size: 11px;
  line-height: 1.35;
}

.arb-chat-quick {
  margin: 8px 0 16px;
}

.arb-chat-quick-label {
  margin: 0 0 10px;
  color: rgba(255, 255, 255, 0.58);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.arb-chat-quick-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.arb-chat-chip {
  border: 1px solid rgba(138, 94, 255, 0.35);
  background: rgba(45, 15, 134, 0.72);
  color: var(--arb-chat-white);
  border-radius: 999px;
  padding: 10px 14px;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.arb-chat-chip:hover {
  background: rgba(58, 17, 176, 0.95);
  transform: translateY(-1px);
}

.arb-chat-primary-btn.button.contact-button.w-button {
  width: 100%;
  margin-top: auto;
  padding: 18px 24px;
  font-size: 18px;
}

.arb-chat-details-form.contact-form {
  display: grid;
  gap: 14px;
  margin: 16px 0;
}

.arb-chat-details-form .contact-form-field-block {
  width: 100%;
}

.arb-chat-details-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
}

.arb-chat-text-btn {
  border: 0;
  background: transparent;
  color: var(--arb-chat-seafoam);
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  padding: 10px 0;
}

.arb-chat-details-actions .arb-chat-primary-btn {
  width: auto;
  min-width: 190px;
  margin-top: 0;
}

.arb-chat-alert {
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(255, 93, 122, 0.14);
  border: 1px solid rgba(255, 93, 122, 0.28);
  color: #ffd5dd;
  font-size: 14px;
}

/* ── Messages ── */

.arb-chat-view[data-view="chat"] {
  padding: 0;
  overflow: hidden;
}

.arb-chat-messages-wrap {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.arb-chat-messages {
  flex: 1;
  overflow: auto;
  overflow-x: hidden;
  padding: 16px 16px 8px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
  -webkit-overflow-scrolling: touch;
}

.arb-chat-day {
  display: flex;
  justify-content: center;
  margin: 4px 0;
}

.arb-chat-day span {
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.62);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.arb-chat-bubble {
  display: flex;
  gap: 10px;
  max-width: 92%;
  min-width: 0;
  animation: arb-chat-bubble-in 0.34s var(--arb-chat-ease) both;
}

.arb-chat-bubble.is-visitor {
  align-self: flex-end;
  flex-direction: row-reverse;
}

.arb-chat-bubble.is-agent,
.arb-chat-bubble.is-system {
  align-self: flex-start;
}

.arb-chat-avatar {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.arb-chat-avatar.is-agent {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  overflow: hidden;
  padding: 0;
}

.arb-chat-avatar.is-agent img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.arb-chat-avatar.is-visitor {
  background: rgba(255, 255, 255, 0.12);
  color: var(--arb-chat-white);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.arb-chat-bubble-body {
  min-width: 0;
  flex: 1 1 auto;
  padding: 12px 14px;
  border-radius: 16px;
  box-shadow: 0 10px 24px rgba(8, 2, 28, 0.18);
}

.arb-chat-bubble.is-visitor .arb-chat-bubble-body {
  background: linear-gradient(135deg, var(--arb-chat-seafoam), #73ece9);
  color: var(--arb-chat-purple);
  border-bottom-right-radius: 6px;
}

.arb-chat-bubble.is-agent .arb-chat-bubble-body {
  background: rgba(45, 15, 134, 0.92);
  color: var(--arb-chat-white);
  border: 1px solid var(--arb-chat-border);
  border-bottom-left-radius: 6px;
}

.arb-chat-bubble.is-system .arb-chat-bubble-body {
  background: rgba(255, 255, 255, 0.08);
  color: var(--arb-chat-muted);
}

.arb-chat-bubble-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
  font-size: 11px;
  font-weight: 700;
  min-width: 0;
}

.arb-chat-bubble.is-visitor .arb-chat-bubble-meta {
  color: rgba(58, 17, 176, 0.68);
}

.arb-chat-bubble.is-agent .arb-chat-bubble-meta {
  color: var(--arb-chat-light-purple);
}

.arb-chat-bubble-meta time {
  font-weight: 600;
  opacity: 0.8;
  flex: 0 0 auto;
}

.arb-chat-bubble-meta strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.arb-chat-read-receipt {
  margin-left: auto;
  color: rgba(158, 246, 244, 0.82);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  flex: 0 0 auto;
}

.arb-chat-bubble.is-visitor .arb-chat-read-receipt {
  color: rgba(58, 17, 176, 0.58);
}

.arb-chat-bubble p {
  margin: 0;
  font-size: 15px;
  line-height: 1.5;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.arb-chat-message-content,
.arb-chat-message-text,
.arb-chat-message-attachments {
  font-size: 15px;
  line-height: 1.5;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.arb-chat-message-text a {
  color: #9ef6f4;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.arb-chat-message-text p {
  margin: 0 0 0.45rem;
}

.arb-chat-message-text p:last-child {
  margin-bottom: 0;
}

.arb-chat-message-text .chat-rich-list {
  margin: 0.35rem 0 0.55rem;
  padding-left: 1.1rem;
}

.arb-chat-message-text .chat-rich-list li + li {
  margin-top: 0.2rem;
}

.arb-chat-message-text .chat-text-link {
  color: #9ef6f4;
}

.arb-chat-message-text .chat-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0.35rem 0;
  padding: 0.55rem 0.95rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #2dd4bf, #22c7c7);
  color: #04101a;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 8px 20px rgba(45, 212, 191, 0.18);
}

.arb-chat-message-text .chat-action-btn:hover,
.arb-chat-message-text .chat-action-btn:focus-visible {
  filter: brightness(1.05);
  text-decoration: none;
}

.arb-chat-message-attachments {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 8px;
}

.arb-chat-attachment {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 10px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: inherit;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
}

.arb-chat-attachment.is-image {
  padding: 4px;
  max-width: min(100%, 240px);
}

.arb-chat-attachment.is-image img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 10px;
}

.arb-chat-attachment.is-file {
  max-width: min(100%, 300px);
}

.arb-chat-attachment-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
}

.arb-chat-attachment-icon svg {
  width: 16px;
  height: 16px;
}

.arb-chat-attachment-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.arb-chat-attachment-meta strong {
  font-size: 13px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.arb-chat-attachment-meta span {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.62);
  font-weight: 500;
}

.arb-chat-attachment.is-pdf .arb-chat-attachment-icon {
  color: #ffb4b4;
}

.arb-chat-attachment.is-document .arb-chat-attachment-icon {
  color: #9fd0ff;
}

.arb-chat-attachment.is-zip .arb-chat-attachment-icon {
  color: #ffe08a;
}

.arb-chat-attachment.is-text .arb-chat-attachment-icon {
  color: #8ff0df;
}

.arb-chat-typing {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 16px 10px;
}

.arb-chat-typing-label {
  color: rgba(255, 255, 255, 0.58);
  font-size: 12px;
  font-weight: 600;
}

.arb-chat-typing-dots {
  display: inline-flex;
  gap: 4px;
}

.arb-chat-typing-dots span {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--arb-chat-seafoam);
  animation: arb-chat-dot 1.2s infinite ease-in-out;
}

.arb-chat-typing-dots span:nth-child(2) { animation-delay: 0.15s; }
.arb-chat-typing-dots span:nth-child(3) { animation-delay: 0.3s; }

/* ── Compose ── */

.arb-chat-compose {
  padding: 12px 14px 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(8, 2, 24, 0.34);
  backdrop-filter: blur(12px);
}

.arb-chat-compose.is-disabled {
  opacity: 0.45;
  pointer-events: none;
}

.arb-chat-compose-shell {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 10px;
  align-items: end;
  padding: 8px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.arb-chat-input {
  width: 100%;
  border: 0;
  outline: none;
  resize: none;
  background: transparent;
  color: var(--arb-chat-white);
  font: inherit;
  font-size: 15px;
  line-height: 1.45;
  max-height: 120px;
  padding: 6px 4px;
}

.arb-chat-input::placeholder {
  color: rgba(255, 255, 255, 0.42);
}

.arb-chat-send-btn {
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--arb-chat-seafoam), #7ef0ee);
  color: var(--arb-chat-purple);
  cursor: pointer;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.arb-chat-send-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.arb-chat-send-btn svg {
  width: 18px;
  height: 18px;
}

.arb-chat-send-btn:not(:disabled):hover {
  transform: translateY(-1px);
}

.arb-chat-attach-btn {
  width: 38px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.82);
  cursor: pointer;
}

.arb-chat-attach-btn svg {
  width: 18px;
  height: 18px;
}

.arb-chat-attachment-pending {
  margin-top: 8px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.72);
}

.arb-chat-compose-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.42);
  font-size: 11px;
  min-width: 0;
}

.arb-chat-compose-meta span {
  min-width: 0;
}

.arb-chat-closed-note {
  padding: 10px 16px 14px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 13px;
  text-align: center;
}

.arb-chat-privacy-note {
  margin: 0 0 12px;
  padding: 0 4px;
  color: rgba(255, 255, 255, 0.52);
  font-size: 12px;
  line-height: 1.5;
  text-align: center;
}

.arb-chat-compose-links {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.arb-chat-export-btn {
  font-size: 12px;
  padding: 0;
}

.arb-chat-blocked-note {
  padding: 10px 16px 14px;
  color: #fecaca;
  font-size: 13px;
  text-align: center;
  background: rgba(127, 29, 29, 0.28);
  border-top: 1px solid rgba(248, 113, 113, 0.22);
}

.arb-chat-satisfaction {
  margin: 0 12px 12px;
  padding: 14px 14px 12px;
  border-radius: 16px;
  border: 1px solid rgba(40, 224, 224, 0.22);
  background: linear-gradient(180deg, rgba(8, 18, 40, 0.92), rgba(6, 12, 28, 0.96));
}

.arb-chat-satisfaction-title {
  margin: 0 0 4px;
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  text-align: center;
}

.arb-chat-satisfaction-lead {
  margin: 0 0 12px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.62);
  text-align: center;
}

.arb-chat-satisfaction-stars {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-bottom: 10px;
}

.arb-chat-star-btn {
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.34);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.arb-chat-star-btn:hover,
.arb-chat-star-btn.is-active {
  background: rgba(40, 224, 224, 0.16);
  color: #fbbf24;
  transform: translateY(-1px);
}

.arb-chat-satisfaction-comment-label {
  display: block;
  margin: 0 0 6px;
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.48);
}

.arb-chat-satisfaction-comment {
  width: 100%;
  min-height: 64px;
  margin-bottom: 10px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  font: inherit;
  resize: vertical;
}

.arb-chat-satisfaction-comment:focus {
  outline: none;
  border-color: rgba(40, 224, 224, 0.45);
  box-shadow: 0 0 0 2px rgba(40, 224, 224, 0.12);
}

.arb-chat-satisfaction-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.arb-chat-satisfaction-actions .arb-chat-primary-btn {
  min-width: 140px;
}

.arb-chat-satisfaction-thanks {
  margin: 0 12px 12px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(40, 224, 224, 0.1);
  border: 1px solid rgba(40, 224, 224, 0.22);
  text-align: center;
}

.arb-chat-satisfaction-thanks p {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 13px;
}

body.arb-chat-open {
  overflow: hidden;
}

@media (max-width: 767px) {
  body.arb-chat-open {
    position: fixed;
    inset: 0;
    width: 100%;
  }
}

/* ── Mobile ── */

@media (max-width: 767px) {
  .arb-chat-root {
    right: 14px;
    bottom: 14px;
    left: auto;
  }

  .arb-chat-launcher-inner {
    min-width: 0;
    padding-right: 16px;
  }

  .arb-chat-launcher-copy small {
    display: none;
  }

  .arb-chat-root.is-open {
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    max-width: 100%;
  }

  .arb-chat-root.is-open .arb-chat-launcher {
    display: none;
  }

  .arb-chat-root.is-open .arb-chat-panel {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    max-width: 100%;
    height: 100%;
    height: 100dvh;
    max-height: 100dvh;
    border-radius: 0;
    transform: none;
    overflow: hidden;
  }

  .arb-chat-root.is-open .arb-chat-panel-shell,
  .arb-chat-view[data-view="chat"],
  .arb-chat-messages-wrap,
  .arb-chat-compose,
  .arb-chat-compose-form,
  .arb-chat-compose-shell {
    max-width: 100%;
  }

  .arb-chat-input,
  .arb-chat-details-form .contact-form-field {
    font-size: 16px;
  }

  .arb-chat-bubble {
    max-width: 100%;
  }

  .arb-chat-bubble.is-visitor,
  .arb-chat-bubble.is-agent,
  .arb-chat-bubble.is-system {
    max-width: min(100%, 22rem);
  }

  .arb-chat-blocked-note {
    padding-bottom: max(14px, env(safe-area-inset-bottom));
  }

  #arb-chat-hint {
    display: none;
  }

  .arb-chat-compose-meta {
    justify-content: flex-end;
  }

  .arb-chat-trust {
    grid-template-columns: 1fr;
  }

  .arb-chat-details-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .arb-chat-details-actions .arb-chat-primary-btn {
    width: 100%;
  }

  .arb-chat-privacy-note {
    padding: 0 0.35rem;
    text-align: left;
  }

  .arb-chat-export-btn {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }

  .arb-chat-compose-meta {
    flex-wrap: wrap;
    gap: 0.35rem;
  }
}

/* ── Motion ── */

@keyframes arb-chat-pulse {
  0%, 100% { transform: scale(1); opacity: 0.75; }
  50% { transform: scale(1.06); opacity: 1; }
}

@keyframes arb-chat-pulse-strong {
  0%, 100% { transform: scale(1); opacity: 0.85; }
  50% { transform: scale(1.12); opacity: 1; }
}

@keyframes arb-chat-bubble-in {
  from { opacity: 0; transform: translateY(8px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes arb-chat-dot {
  0%, 80%, 100% { transform: translateY(0); opacity: 0.45; }
  40% { transform: translateY(-4px); opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .arb-chat-launcher,
  .arb-chat-panel,
  .arb-chat-view,
  .arb-chat-bubble,
  .arb-chat-launcher-glow,
  .arb-chat-typing-dots span {
    animation: none !important;
    transition: none !important;
  }
}
