:root { --chloe-berry: #87275f; }

.chloe-launcher {
  position: fixed;
  right: max(1.25rem, env(safe-area-inset-right, 0px));
  bottom: max(1.25rem, env(safe-area-inset-bottom, 0px));
  z-index: 1000;
  box-sizing: border-box;
  width: 11.75rem;
  height: 3.25rem;
  padding: 0;
  overflow: hidden;
  border: 1px solid #b17b9a;
  border-radius: 999px;
  background: #f8f4ed;
  color: #26051f;
  box-shadow: 0 8px 24px #26051f40;
  cursor: pointer;
  font: 700 .95rem/1.2 Helvetica, Arial, sans-serif;
}
.chloe-launcher[hidden] { display: none; }
.chloe-launcher:hover { background: #fff; }
.chloe-launcher img, .chloe-launcher-label {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  white-space: nowrap;
}
.chloe-launcher img { left: 1.1rem; width: 24px; height: auto; }
.chloe-launcher-label { left: 3.25rem; }
.chloe-launcher-close {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  opacity: 0;
  transform: scale(.7) rotate(-35deg);
}
.chloe-launcher-close::before, .chloe-launcher-close::after {
  content: '';
  grid-area: 1 / 1;
  width: 1.15rem;
  height: 2px;
  border-radius: 1px;
  background: #f8f4ed;
}
.chloe-launcher-close::before { transform: rotate(45deg); }
.chloe-launcher-close::after { transform: rotate(-45deg); }
.chloe-launcher[aria-expanded="true"] { width: 3.25rem; background: var(--chloe-berry); border-color: var(--chloe-berry); }
.chloe-launcher[aria-expanded="true"]:hover { background: #68234f; }
.chloe-launcher[aria-expanded="true"] img, .chloe-launcher[aria-expanded="true"] .chloe-launcher-label { opacity: 0; }
.chloe-launcher[aria-expanded="true"] .chloe-launcher-close { opacity: 1; transform: none; }
@media (prefers-reduced-motion: no-preference) {
  .chloe-launcher { transition: width .28s cubic-bezier(.25,.8,.25,1), background-color .22s, border-color .22s; }
  .chloe-launcher img, .chloe-launcher-label { transition: opacity .16s .1s; }
  .chloe-launcher[aria-expanded="true"] img, .chloe-launcher[aria-expanded="true"] .chloe-launcher-label { transition-delay: 0s; }
  .chloe-launcher-close { transition: opacity .16s, transform .22s; }
  .chloe-launcher[aria-expanded="true"] .chloe-launcher-close { transition-delay: .1s; }
}

.chloe-invitation {
  position: fixed;
  right: max(1.25rem, env(safe-area-inset-right, 0px));
  bottom: calc(max(1.25rem, env(safe-area-inset-bottom, 0px)) + 4rem);
  z-index: 1000;
  width: min(19rem, calc(100vw - 2.5rem));
  box-sizing: border-box;
  padding: 1.15rem 1.2rem 1.2rem;
  border: 1px solid #bb93aa;
  border-radius: 1.2rem;
  background: #f8f4ed;
  color: #251322;
  box-shadow: 0 12px 36px #26051f35;
}
.chloe-invitation h2 {
  margin: 0 2rem .45rem 0;
  font-size: 1.5rem;
  text-wrap: pretty;
}
.chloe-invitation p { margin: 0 0 .85rem; color: #56394e; font: 400 .93rem/1.5 Helvetica, Arial, sans-serif; }
.chloe-dismiss {
  position: absolute;
  inset: .35rem .35rem auto auto;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #26051f;
  font: 400 1.45rem/1 Helvetica, Arial, sans-serif;
  cursor: pointer;
}
@property --chloe-outline-angle {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}
.chloe-invitation-action {
  --chloe-button-fill: #26051f;
  min-height: 44px;
  padding: .55rem .95rem;
  display: inline-flex;
  align-items: center;
  gap: .75rem;
  border: 2px solid transparent;
  border-radius: 999px;
  background: linear-gradient(var(--chloe-button-fill), var(--chloe-button-fill)) padding-box,
    conic-gradient(from var(--chloe-outline-angle, 0deg), #7453d8, #e6409b, #ff8e78, #7453d8) border-box;
  color: #f8f4ed;
  font: 600 .875rem/1.3 Helvetica, Arial, sans-serif;
  white-space: nowrap;
  cursor: pointer;
}
.chloe-invitation-action::after {
  content: '';
  flex: 0 0 .42rem;
  height: .42rem;
  border: solid currentColor;
  border-width: 1.5px 1.5px 0 0;
  transform: rotate(45deg);
}
.chloe-invitation-action:hover { --chloe-button-fill: #512043; }
.chloe-dismiss:hover { background: #efdae5; }
.chloe-launcher:focus-visible:not([data-pointer-input]), .chloe-invitation button:focus-visible { outline: 3px solid #a92d79; outline-offset: 1px; }
.chloe-launcher[data-pointer-input]:focus-visible { outline: none; }
@media (prefers-reduced-motion: no-preference) {
  .chloe-invitation:not([hidden]) { animation: chloe-invitation-in .3s ease-out; }
  .chloe-invitation:not([hidden]) .chloe-invitation-action { animation: chloe-outline-spin 3s linear 2; }
}
@keyframes chloe-outline-spin { to { --chloe-outline-angle: 360deg; } }
@keyframes chloe-invitation-in {
  from { opacity: 0; transform: translateY(.5rem); }
  to { opacity: 1; transform: translateY(0); }
}

chat-widget {
  --chat-widget-width: min(340px, calc(100vw - 2.5rem));
  --chat-widget-height: min(65dvh, 460px);
  --chat-widget-max-height: min(460px, calc(100dvh - 6.75rem));
  --chat-widget-branding-max-height: min(460px, calc(100dvh - 6.75rem));
  --chat-widget-primary-color: #87275f;
  --chat-widget-primary-solid-color: #87275f;
  --chat-widget-active-color: #87275f;
  --chat-widget-bubble-color: #87275f;
  --chat-widget-header-color: var(--chloe-berry);
  --chat-widget-header-darken-color: var(--chloe-berry);
  --chat-widget-background-color: #f8f4ed;
  --chat-widget-avatar-background-color: #f8f4ed;
  --chat-widget-avatar-border-color: #efdae5;
  --chat-widget-received-message-color: #efdae5;
  --chat-widget-received-message-text-color: #251322;
  --chat-widget-sender-message-color: #87275f;
  --chat-widget-sender-message-text-color: #fff;
  --chat-widget-header-message-text-color: #f8f4ed;
  --chat-widget-welcome-message-text-color: #251322;
  --chat-widget-system-message-text-color: #56394e;
  --chat-widget-font-family: Helvetica, Arial, sans-serif;
}
chat-widget[data-spm-launcher-ready="true"]:not([data-active="true"]) {
  visibility: hidden;
}
