/* Reversible experiment. Only the recognized 54px, closed launcher gets marked.
   The badge and pointer target scale with it. Never select the chat window. */
@media (min-width: 1024px) and (hover: hover) and (pointer: fine) {
  #crisp-chatbox [role="button"][data-maximized="false"]:not([data-is-failure="true"]):is(
    [data-pop="minimized:open"]:has([data-id="chat_closed"]),
    [aria-expanded="false"]:has([data-id="chat_opened"])
  )[data-ps-chat-size] {
    translate: 0 var(--ps-chat-lift, 0px) !important;
  }
  #crisp-chatbox [role="button"][data-maximized="false"]:not([data-is-failure="true"]):is(
    [data-pop="minimized:open"]:has([data-id="chat_closed"]),
    [aria-expanded="false"]:has([data-id="chat_opened"])
  )[data-ps-chat-size="large"] {
    transform-origin: right bottom !important;
    scale: 1.388889 !important;
  }
}

.ps-chat-card {
  box-sizing: border-box;
  position: fixed;
  z-index: 999;
  width: 310px;
  margin: 0;
  border: 1px solid #47696b;
  border-radius: 12px;
  background: #132c31;
  box-shadow: 0 8px 26px #06141835;
  color: #c5d5d7;
  font: 400 14px/1.5 'PixelSound UI', system-ui, sans-serif;
  visibility: hidden;
  pointer-events: none;
}
.ps-chat-card[data-visible] { visibility: visible; pointer-events: auto; }
.ps-chat-card button { font: inherit; color: inherit; cursor: pointer; }
.ps-chat-invite {
  display: grid;
  width: 100%;
  padding: 18px 20px 14px;
  border: 0;
  border-radius: inherit;
  background: transparent;
  text-align: left;
}
.ps-chat-status { color: #c5d5d7; font-size: 12px; font-weight: 600; }
.ps-chat-status span { display: inline-block; margin-right: 4px; color: #79ce9d; font-size: 10px; }
.ps-chat-invite strong { margin: 7px 0 4px; color: #f0e2bd; font-size: 20px; line-height: 1.25; }
.ps-chat-copy { display: block; }
.ps-chat-cta {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 12px;
  padding-top: 9px;
  border-top: 1px solid #47696b;
  color: #f0e2bd;
  font-weight: 600;
}
.ps-chat-invite:hover .ps-chat-cta { text-decoration: underline; text-underline-offset: 3px; }
.ps-chat-card .ps-chat-dismiss {
  position: absolute;
  top: 5px;
  right: 6px;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: 5px;
  background: transparent;
  font-size: 21px;
  line-height: 1;
}
.ps-chat-card button:focus-visible { outline: 2px solid #f0e2bd; outline-offset: -3px; }
@media (prefers-reduced-motion: no-preference) {
  .ps-chat-card[data-visible] { animation: ps-chat-appear 160ms ease-out both; }
  @keyframes ps-chat-appear { from { opacity: 0; } to { opacity: 1; } }
}
@media (max-width: 1023px), (hover: none), (pointer: coarse) {
  .ps-chat-card { display: none; }
}
