@font-face {
  font-family: "Afacad Flux";
  src: url("./fonts/afacad-flux-upright-variable.woff2") format("woff2");
  font-weight: 100 1000;
  font-style: normal;
  font-display: swap;
}

/* Shared by the chat document and the controls rendered by WordPress. */
.ue-chat,
.ue-agent {
  --ue-width: 532px;
  --ue-head-y: max(8px, env(safe-area-inset-top));
  --ue-head-x: max(10px, env(safe-area-inset-right));
  --ink: #f0f0f2;
  --muted: #bdbec2;
  --line: rgb(255 255 255 / 19%);
  --hairline: rgb(255 255 255 / 9%);
  --panel: linear-gradient(135deg, rgb(255 255 255 / 7%), transparent 52%), rgb(21 22 25 / 88%);
  --panel-shadow: inset 0 1px 0 rgb(255 255 255 / 11%), 0 16px 38px rgb(0 0 0 / 22%);
  color-scheme: dark;
  color: var(--ink);
  font: 400 14px/1.45 "Afacad Flux", system-ui, sans-serif;
  font-synthesis: none;
  font-variation-settings: "slnt" 0, "ital" 0;
}

.ue-chat button,
.ue-agent button {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  box-sizing: border-box;
  min-height: 42px;
  margin: 0;
  padding: 7px 12px;
  border: 1px solid rgb(255 255 255 / 28%);
  border-radius: 12px;
  background: linear-gradient(115deg, rgb(255 255 255 / 7%), rgb(255 255 255 / 2%) 60%), rgb(0 0 0 / 94%);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 15%), inset 0 -1px 0 rgb(255 255 255 / 5%);
  color: #eff3f8;
  font: 400 12px/1.3 "Afacad Flux", system-ui, sans-serif;
  letter-spacing: normal;
  text-transform: none;
  cursor: pointer;
  touch-action: manipulation;
  transition: border-color 180ms ease;
}
.ue-chat button::after,
.ue-agent button::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(112deg, transparent 20%, #ffffff0f 31%, #ffffff40 41%, #ffffff14 49%, transparent 62%) 100% 0 / 190% 100%;
  opacity: 0;
  transition: opacity 80ms linear, background-position 850ms cubic-bezier(.25,.35,.5,1);
}
.ue-chat button:is(:hover, :focus-visible):enabled,
.ue-agent button:is(:hover, :focus-visible):enabled {
  border-color: rgb(255 255 255 / 68%);
  color: #f4f7fb;
  background: linear-gradient(115deg, rgb(255 255 255 / 14%), rgb(255 255 255 / 5%) 60%), rgb(8 8 8 / 97%);
}
.ue-chat button:is(:hover, :focus-visible):enabled::after,
.ue-agent button:is(:hover, :focus-visible):enabled::after {
  opacity: 1;
  background-position: 0 0;
}
.ue-chat button:disabled {
  opacity: .45;
  cursor: default;
}
.ue-chat :focus-visible,
.ue-agent button:focus-visible {
  outline: 2px solid #eff3f8;
  outline-offset: 3px;
}
.ue-chat .close,
.ue-agent .ue-close {
  width: 44px;
  height: 44px;
  min-height: 44px;
  padding: 0;
  font-size: 26px;
  line-height: 1;
}
@media (prefers-reduced-motion: no-preference) {
  .ue-chat [data-active="true"] .close, .ue-agent[data-active="true"] .ue-close {
    animation: uneasy-chat-exit 1.92s ease-in-out infinite;
  }
}
@keyframes uneasy-chat-exit {
  0%, 100% { border-color: rgb(239 243 248 / 25%); box-shadow: 0 0 60px rgb(239 243 248 / 0%); }
  50% { border-color: rgb(239 243 248 / 100%); box-shadow: 0 0 60px rgb(239 243 248 / 95%); }
}
@media (prefers-reduced-motion: reduce) {
  .ue-chat button, .ue-agent button, .ue-chat button::after, .ue-agent button::after { transition: none; }
  .ue-chat .close, .ue-agent .ue-close { animation: none; border-color: #eff3f8; }
}

ue-agent-mark, ue-agent-mark canvas { display: block; width: 100%; height: 100%; }
.ue-mark-box {
  display: block; flex: none; width: 42px; height: 42px; padding: 3px;
  border: 1px solid var(--line); border-radius: 12px;
  background: radial-gradient(ellipse at 18% 0%, #424349, transparent 68%), linear-gradient(145deg, #212125, #09090b 82%);
}
ue-area-picker {
  display: block;
  box-sizing: border-box;
  height: 100%;
  overflow-y: auto;
  padding: 16px;
  color: var(--ink);
  text-align: left;
}
ue-area-picker .ue-entry-head { display: flex; align-items: center; gap: 10px; }
ue-area-picker .ue-entry-head h1, ue-area-picker h2 {
  color: var(--ink);
  font: 500 17px/1.2 "Afacad Flux", system-ui, sans-serif;
  margin: 0;
  letter-spacing: normal;
  text-transform: none;
}
ue-area-picker .ue-entry-head small { display: block; font-size: 12px; color: var(--muted); }
ue-area-picker h2 { margin: 15px 0 9px; font-size: 15px; }
.ue-areas { display: grid; gap: 6px; }
ue-area-picker .ue-areas button {
  justify-content: flex-start; width: 100%; min-height: 44px; gap: 10px; text-align: left; font-size: 14px;
}
.ue-areas svg { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; }
.ue-areas [data-area="sales"] svg { stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.ue-arrow { margin-left: auto; color: var(--muted); font-size: 18px; }
@media (max-height: 300px) {
  ue-area-picker { padding: 6px 10px; }
  ue-area-picker .ue-mark-box { width: 32px; height: 32px; }
  ue-area-picker h2 { margin: 6px 0; }
  .ue-areas { gap: 4px; }
}
