.live-chat-owner-shell {
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) minmax(360px, 1.2fr);
  gap: 1.2rem;
  align-items: stretch;
}

.live-chat-broadcast-card {
  grid-column: 1 / -1;
}

.live-chat-broadcast-card h2,
.live-chat-broadcast-card p {
  margin-bottom: 0;
}

.live-chat-owner-panel-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.live-chat-online-list,
.live-chat-thread {
  display: grid;
  gap: 0.75rem;
}

.live-chat-broadcast-form {
  display: grid;
  gap: 1rem;
  margin-top: 0.75rem;
}

.live-chat-broadcast-fields {
  display: grid;
  grid-template-columns: minmax(220px, 0.75fr) minmax(320px, 1.25fr);
  gap: 1rem;
  align-items: stretch;
}

.live-chat-broadcast-fields label {
  display: grid;
  gap: 0.45rem;
}

.live-chat-broadcast-fields textarea {
  min-height: 120px;
  resize: vertical;
}

.live-chat-broadcast-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.85rem;
}

.live-chat-broadcast-check {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.live-chat-broadcast-check.is-disabled {
  opacity: 0.55;
}

.live-chat-thread {
  min-height: 340px;
  max-height: 54vh;
  overflow: auto;
  padding: 0.85rem;
  border: 1px solid rgba(134, 223, 220, 0.18);
  border-radius: 8px;
  background: rgba(4, 10, 13, 0.42);
}

.live-chat-online-user {
  width: 100%;
  border: 1px solid rgba(134, 223, 220, 0.2);
  border-radius: 8px;
  background: rgba(14, 28, 33, 0.9);
  color: #f4fbfc;
  padding: 0.85rem;
  text-align: left;
  cursor: pointer;
}

.live-chat-online-user strong,
.live-chat-online-user span,
.live-chat-online-user small,
.live-chat-message strong,
.live-chat-message span {
  display: block;
}

.live-chat-online-user span,
.live-chat-online-user small {
  color: #a8bcc3;
}

.live-chat-online-user:hover {
  border-color: rgba(51, 202, 198, 0.8);
}

.live-chat-online-user.has-incoming-chat {
  border-color: rgba(255, 214, 107, 0.78);
  background:
    linear-gradient(135deg, rgba(255, 214, 107, 0.18), transparent 42%),
    rgba(14, 28, 33, 0.94);
  box-shadow: 0 0 0 1px rgba(255, 214, 107, 0.12), 0 16px 34px rgba(255, 214, 107, 0.08);
}

.live-chat-online-user em {
  display: block;
  margin-top: 0.55rem;
  color: #ffd66b;
  font-style: normal;
  font-weight: 800;
}

.live-chat-online-user em[hidden] {
  display: none;
}

.live-chat-message {
  padding: 0.75rem;
  border-radius: 8px;
  background: rgba(0, 156, 175, 0.14);
  border: 1px solid rgba(51, 202, 198, 0.2);
}

.live-chat-message.is-owner {
  background: rgba(13, 43, 89, 0.82);
  border-color: rgba(80, 140, 220, 0.48);
  box-shadow: inset 3px 0 0 rgba(91, 170, 255, 0.72);
}

.live-chat-message.is-system {
  background: rgba(255, 214, 107, 0.1);
  border-color: rgba(255, 214, 107, 0.24);
}

.live-chat-message strong {
  color: #f4fbfc;
  margin-bottom: 0.2rem;
}

.live-chat-message span {
  color: #d8f9f7;
  white-space: pre-wrap;
}

.live-chat-compose {
  display: grid;
  gap: 0.75rem;
  margin-top: 1rem;
}

.live-chat-widget {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 60;
  width: min(360px, calc(100vw - 2rem));
}

.live-chat-owner-status {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 60;
  border: 1px solid rgba(134, 223, 220, 0.32);
  border-radius: 999px;
  background: rgba(9, 17, 21, 0.94);
  color: #b8fff5;
  padding: 0.75rem 1rem;
  font: inherit;
  font-weight: 800;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
  cursor: pointer;
}

.live-chat-owner-status.is-away {
  color: #ffd66b;
  border-color: rgba(255, 214, 107, 0.36);
}

.live-chat-owner-alert {
  position: fixed;
  right: 1rem;
  bottom: 4.6rem;
  z-index: 61;
  display: grid;
  width: min(360px, calc(100vw - 2rem));
  gap: 0.2rem;
  border: 1px solid rgba(255, 214, 107, 0.58);
  border-radius: 14px;
  padding: 0.95rem 1rem;
  color: #fff7d6;
  background:
    linear-gradient(135deg, rgba(255, 214, 107, 0.18), transparent 46%),
    rgba(10, 18, 24, 0.96);
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.42), 0 0 0 1px rgba(255, 214, 107, 0.12);
  text-decoration: none;
}

.live-chat-owner-alert[hidden] {
  display: none;
}

.live-chat-owner-alert strong,
.live-chat-owner-alert span {
  display: block;
}

.live-chat-owner-alert strong {
  color: #ffd66b;
}

.live-chat-owner-alert span {
  color: #f4fbfc;
  font-size: 0.92rem;
}

.live-chat-widget-toggle {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
  border-radius: 999px;
  padding-inline: 1rem;
}

.live-chat-widget-dot {
  width: 0.62rem;
  height: 0.62rem;
  border-radius: 999px;
  background: #7cf4c8;
  box-shadow: 0 0 0 0 rgba(124, 244, 200, 0.72);
  animation: liveChatPulse 1.8s ease-out infinite;
}

.live-chat-widget-panel {
  margin-top: 0.75rem;
  border: 1px solid rgba(134, 223, 220, 0.28);
  border-radius: 8px;
  background: rgba(9, 17, 21, 0.98);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
  overflow: hidden;
}

.live-chat-widget-head,
.live-chat-widget-prompt,
.live-chat-widget-compose {
  padding: 0.9rem;
}

.live-chat-widget-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  border-bottom: 1px solid rgba(134, 223, 220, 0.16);
}

.live-chat-widget-head strong {
  color: #f4fbfc;
}

.live-chat-widget-thread {
  max-height: 280px;
  overflow: auto;
  padding: 0.9rem;
  display: grid;
  gap: 0.65rem;
}

.live-chat-widget-prompt {
  border-top: 1px solid rgba(134, 223, 220, 0.16);
}

.live-chat-announcement-backdrop {
  position: fixed;
  inset: 0;
  z-index: 70;
  background: rgba(3, 8, 10, 0.68);
  backdrop-filter: blur(4px);
}

.live-chat-announcement-modal {
  position: fixed;
  left: 50%;
  top: 50%;
  z-index: 71;
  width: min(620px, calc(100vw - 2rem));
  max-height: min(76vh, 720px);
  overflow: auto;
  transform: translate(-50%, -50%);
  padding: clamp(1.35rem, 3vw, 2rem);
  border: 1px solid rgba(255, 214, 107, 0.36);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(15, 35, 39, 0.98), rgba(8, 17, 21, 0.98)),
    rgba(9, 17, 21, 0.98);
  box-shadow: 0 26px 90px rgba(0, 0, 0, 0.55);
}

.live-chat-announcement-modal h2 {
  margin: 0 0 0.85rem;
  color: #33cac6;
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 1.02;
}

.live-chat-announcement-modal p:not(.section-label) {
  color: #d8f9f7;
  font-size: 1.04rem;
  line-height: 1.75;
  white-space: pre-wrap;
}

.live-chat-announcement-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.2rem;
}

.live-chat-announcement-actions [hidden] {
  display: none !important;
}

.live-chat-widget-start {
  padding: 0 0.9rem 0.9rem;
}

.live-chat-widget-prompt-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 0.75rem;
}

@media (max-width: 820px) {
  .live-chat-owner-shell {
    grid-template-columns: 1fr;
  }

  .live-chat-broadcast-fields {
    grid-template-columns: 1fr;
  }
}

@keyframes liveChatPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(124, 244, 200, 0.72);
  }
  70% {
    box-shadow: 0 0 0 9px rgba(124, 244, 200, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(124, 244, 200, 0);
  }
}
