.tawk-bubble {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 90;
  width: 58px;
  height: 58px;
  border: 0;
  border-radius: 50%;
  background: #F3268B;
  color: #11121A;
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
}
.tawk-bubble:hover { background: #FF8FBF; }
.tawk-bubble[hidden] { display: none !important; }
@media (max-width: 1099px) {
  .tawk-bubble { bottom: calc(64px + env(safe-area-inset-bottom) + 14px); }
}
.livechat {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 90;
  font-family: "Barlow", sans-serif;
}
.livechat--raised { bottom: calc(64px + env(safe-area-inset-bottom) + 14px); }
@media (min-width: 1100px) {
  .livechat--raised { bottom: 22px; }
}
.livechat-launch {
  width: 58px;
  height: 58px;
  border: 0;
  border-radius: 50%;
  background: #F3268B;
  color: #11121A;
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
  position: relative;
  animation: liveBounce 2.8s ease-in-out infinite;
}
.livechat-launch::after {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid rgba(243, 38, 139, 0.55);
  animation: liveRing 2.2s ease-out infinite;
}
.livechat-launch:hover { transform: translateY(-2px); animation: none; background: #FF8FBF; }
.livechat-badge {
  position: absolute;
  top: 2px;
  right: 2px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 99px;
  background: #fb7185;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  display: grid;
  place-items: center;
}
.livechat-panel {
  position: absolute;
  right: 0;
  bottom: 70px;
  width: min(360px, calc(100vw - 28px));
  height: min(560px, calc(100vh - 120px));
  display: flex;
  flex-direction: column;
  background: #211D27;
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  animation: livechatIn 0.28s ease;
}
.livechat-panel[hidden],
.livechat-compose[hidden],
.livechat-badge[hidden] { display: none !important; }
@keyframes livechatIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}
@keyframes liveRing {
  to { transform: scale(1.22); opacity: 0; }
}
@keyframes liveBounce {
  0%, 70%, 100% { transform: translateY(0); }
  78% { transform: translateY(-4px); }
}
@keyframes livePulse {
  70% { box-shadow: 0 0 0 6px rgba(52, 211, 153, 0); }
  100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); }
}
@keyframes bubbleIn {
  from { opacity: 0; transform: translateY(10px) scale(0.96); }
  to { opacity: 1; transform: none; }
}
@keyframes emojiPop {
  50% { transform: scale(1.35); }
}
.livechat-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 12px 12px 14px;
  background: #11121A;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.livechat-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #F3268B;
  color: #fff;
  font-weight: 700;
  flex: none;
  box-shadow: 0 0 0 3px rgba(109, 74, 255, 0.25);
}
.livechat-head strong { display: block; font-size: 15px; }
.livechat-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #B9B5C0;
  font-size: 12px;
}
.livechat-status i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.7);
  animation: livePulse 1.8s infinite;
}
.livechat-status.is-wait i {
  background: #F3268B;
  box-shadow: none;
  animation: none;
}
.livechat-status.is-off i {
  background: #6b7280;
  box-shadow: none;
  animation: none;
}
.livechat-queue {
  margin: 0 0 10px;
  padding: 8px 10px;
  border-radius: 8px;
  background: #3A2433;
  color: #F3268B;
  font-size: 13px;
  line-height: 1.4;
}
.livechat-tools {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 6px;
}
.livechat-min,
.livechat-x {
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  background: #2A2532;
  color: #fff;
  cursor: pointer;
  display: grid;
  place-items: center;
  padding: 0;
}
.livechat-min:hover,
.livechat-x:hover { background: #343844; }
.livechat-ask {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 0 12px 8px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #3A2433;
  border: 1px solid rgba(243, 38, 139, 0.35);
}
.livechat-ask[hidden] { display: none !important; }
.livechat-ask p { margin: 0; font-size: 13px; line-height: 1.35; }
.livechat-ask div { display: flex; gap: 6px; flex: none; }
.livechat-ask button {
  border: 0;
  border-radius: 999px;
  padding: 6px 10px;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}
#livechatAskYes { background: #F3268B; color: #11121A; }
#livechatAskYes:hover { background: #FF8FBF; color: #11121A; }
#livechatAskNo { background: #2A2532; color: #fff; }
.livechat-body {
  flex: 1;
  overflow: auto;
  padding: 16px;
  background:
    radial-gradient(140px 90px at 12% 0%, rgba(109, 74, 255, 0.2), transparent 70%),
    radial-gradient(160px 100px at 100% 8%, rgba(243, 38, 139, 0.1), transparent 72%);
}
.livechat-form label { animation: bubbleIn 0.35s ease both; }
.livechat-form label:nth-child(2) { animation-delay: 0.05s; }
.livechat-form label:nth-child(3) { animation-delay: 0.1s; }
.livechat-form label:nth-child(4) { animation-delay: 0.15s; }
.livechat-form label {
  display: block;
  margin-bottom: 12px;
  font-size: 14px;
  font-weight: 600;
}
.livechat-form input {
  width: 100%;
  margin-top: 6px;
  border: 0;
  border-radius: 8px;
  background: #2A2532;
  color: #fff;
  font: inherit;
  padding: 12px 12px;
  outline: none;
}
.livechat-form input:focus { box-shadow: 0 0 0 2px rgba(243, 38, 139, 0.45); }
.livechat-note {
  margin: 4px 0 14px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #11121A;
  color: #FFFFFF;
  font-size: 13px;
  line-height: 1.45;
}
.livechat-go {
  width: 100%;
  border: 0;
  border-radius: 10px;
  background: #F3268B;
  color: #11121A;
  font: inherit;
  font-weight: 700;
  padding: 13px 14px;
  cursor: pointer;
}
.livechat-go:hover { filter: none; background: #FF8FBF; color: #11121A; }
.livechat-err { min-height: 1.1em; margin: 8px 0 0; color: #fb7185; font-size: 13px; }
.livechat-log {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 100%;
}
.livechat-bubble {
  max-width: 86%;
  padding: 9px 12px;
  border-radius: 14px;
  font-size: 14px;
  line-height: 1.4;
  white-space: pre-wrap;
  word-break: break-word;
}
.livechat-bubble.is-new { animation: bubbleIn 0.35s ease both; }
.livechat-bubble.is-agent { align-self: flex-start; background: #2A2532; }
.livechat-bubble.is-wait { align-self: flex-start; background: #3A2433; color: #F3268B; }
.livechat-bubble.is-user { align-self: flex-end; background: #F3268B; color: #11121A; }
.livechat-time { display: block; margin-top: 4px; font-size: 11px; opacity: 0.7; }
.livechat-quick {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 8px 10px 0;
  background: #11121A;
}
.livechat-quick[hidden] { display: none !important; }
.livechat-quick button {
  border: 1px solid rgba(243, 38, 139, 0.35);
  background: #211D27;
  color: #FFFFFF;
  border-radius: 999px;
  padding: 6px 10px;
  font: inherit;
  font-size: 13px;
  white-space: nowrap;
  cursor: pointer;
  animation: bubbleIn 0.4s ease both;
}
.livechat-quick button:nth-child(2) { animation-delay: 0.05s; }
.livechat-quick button:nth-child(3) { animation-delay: 0.1s; }
.livechat-quick button:nth-child(4) { animation-delay: 0.15s; }
.livechat-quick button:hover { background: rgba(243, 38, 139, 0.14); transform: translateY(-1px); }
.livechat-quick button.is-pop { animation: emojiPop 0.28s ease; }
.livechat-compose {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 8px 10px 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: #11121A;
}
.livechat-emojis { display: flex; gap: 2px; }
.livechat-emojis button {
  border: 0;
  background: transparent;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  border-radius: 8px;
  padding: 3px 4px;
}
.livechat-emojis button:hover,
.livechat-emojis button.is-pop { transform: scale(1.25); background: rgba(255, 255, 255, 0.06); }
.livechat-sendrow { display: flex; gap: 8px; }
.livechat-compose input {
  flex: 1;
  border: 0;
  border-radius: 999px;
  background: #2A2532;
  color: #fff;
  font: inherit;
  padding: 11px 14px;
  outline: none;
}
.livechat-sendrow button {
  border: 0;
  border-radius: 999px;
  background: #F3268B;
  color: #11121A;
  font: inherit;
  font-weight: 700;
  padding: 0 14px;
  cursor: pointer;
}
.livechat-sendrow button:hover { background: #FF8FBF; color: #11121A; }
.livechat-end {
  align-self: flex-end;
  margin: 0 14px 6px;
  border: 0;
  background: transparent;
  color: #B9B5C0;
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
}
.livechat-end[hidden] { display: none !important; }
.livechat-end:hover { color: #fb7185; }
.livechat-restart {
  margin-top: 12px;
  border: 0;
  background: transparent;
  color: #F3268B;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
}
@media (max-width: 720px) {
  .livechat { right: 12px; }
  .livechat-launch { width: 52px; height: 52px; }
  .livechat-panel {
    position: fixed;
    left: 8px;
    right: 8px;
    bottom: calc(64px + env(safe-area-inset-bottom) + 68px);
    width: auto;
    height: min(70dvh, 540px);
    max-height: calc(100dvh - 150px);
  }
  .livechat-emojis { flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) {
  .livechat-panel,
  .livechat-launch,
  .livechat-bubble.is-new,
  .livechat-quick button,
  .livechat-form label,
  .livechat-status i { animation: none; }
  .livechat-launch::after { display: none; }
  .livechat-launch:hover,
  .livechat-quick button:hover,
  .livechat-emojis button:hover { transform: none; }
}
