.w360-float {
  position: fixed;
  z-index: 45;
  font-family: 'DM Sans', system-ui, sans-serif;
  color: #1d1914;
}
.w360-float[data-corner$="right"] { right: min(var(--w360-x), 10vw); }
.w360-float[data-corner$="left"] { left: min(var(--w360-x), 10vw); }
.w360-float[data-corner^="bottom"] { bottom: max(var(--w360-y), env(safe-area-inset-bottom)); }
.w360-float[data-corner^="top"] { top: max(var(--w360-y), env(safe-area-inset-top)); }
.w360-launch, .w360-whatsapp {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  padding: .7rem 1rem;
  font: 700 .875rem/1.1 'DM Sans', system-ui, sans-serif;
  box-shadow: 0 .25rem 1rem #20170938;
  text-decoration: none;
}
.w360-launch { gap: .5rem; background: var(--w360-accent); color: #17120d; }
.w360-launch::before { content: ''; flex: 0 0 .68rem; height: .68rem; border-radius: 50%; background: #21df80; box-shadow: 0 0 0 1px #124632; }
.w360-whatsapp { background: #11633b; color: #fff; }
.w360-launch[data-overlap-contact], .w360-whatsapp[data-overlap-contact] { visibility: hidden; }
.w360-launch:hover, .w360-whatsapp:hover { filter: brightness(1.07); }
.w360-launch:focus-visible, .w360-whatsapp:focus-visible, .w360-panel :focus-visible {
  outline: 2px solid #292015;
  outline-offset: 3px;
}
.w360-panel {
  position: absolute;
  width: min(350px, calc(100vw - 2 * min(var(--w360-x), 10vw) - 10px));
  height: 470px;
  max-height: calc(100dvh - var(--w360-y) - 74px);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto auto auto auto;
  border: 1px solid #d7cbbc;
  background: #fffdfa;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 1rem 2.8rem #18110d40;
}
.w360-panel[hidden], .w360-float[hidden], .w360-form[hidden], .w360-restart[hidden] { display: none; }
.w360-chat[data-corner$="right"] .w360-panel { right: 0; }
.w360-chat[data-corner$="left"] .w360-panel { left: 0; }
.w360-chat[data-corner^="bottom"] .w360-panel { bottom: calc(100% + 10px); }
.w360-chat[data-corner^="top"] .w360-panel { top: calc(100% + 10px); }
.w360-header { display: flex; align-items: center; gap: .65rem; padding: .7rem .85rem; color: #f9f3ed; background: #221a13; }
.w360-titles { flex: 1; display: grid; line-height: 1.25; }
.w360-titles small { color: #f0d8bd; font-size: .8rem; margin-top: .2rem; }
.w360-avatar { width: 38px; height: 38px; object-fit: cover; border-radius: 50%; }
.w360-close { background: none; border: 0; color: #fff; font-size: 1.4rem; min-width: 36px; min-height: 36px; }
.w360-restart { background: transparent; color: #fff; border: 1px solid #9b7f64; border-radius: .45rem; padding: .4rem; font: 650 .72rem/1.2 'DM Sans', system-ui, sans-serif; }
.w360-header :focus-visible { outline-color: #ffd28c; }
.w360-log { padding: .75rem; min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
.w360-bubble { margin: .35rem 0; padding: .55rem .68rem; border-radius: .7rem; font-size: .875rem; line-height: 1.38; white-space: pre-wrap; overflow-wrap: anywhere; }
.w360-assistant { background: #f1ebe1; margin-right: 1.25rem; }
.w360-user { background: #fff0d4; margin-left: 1.25rem; }
.w360-answer-source { display: block; margin-bottom: .25rem; font-size: .72rem; color: #694711; }
.w360-booking-link { display: block; width: fit-content; margin-top: .55rem; padding: .48rem .65rem; border-radius: .5rem; background: var(--w360-accent); color: #211810; font-weight: 700; text-decoration: underline; }
.w360-choices { display: flex; flex-wrap: wrap; gap: .37rem; padding: 0 .75rem; max-height: 90px; overflow-y: auto; }
.w360-choices:empty { display: none; }
.w360-choices button, .w360-form button { background: #f9eedc; border: 1px solid #d9c6ac; border-radius: .5rem; padding: .4rem .5rem; font: 700 .78rem/1.2 'DM Sans', system-ui, sans-serif; color: #241a10; }
.w360-form { display: flex; gap: .4rem; margin: .42rem .75rem .55rem; }
.w360-form input { flex: 1; width: 100%; min-width: 0; min-height: 42px; border: 1px solid #d9c6ac; background: white; color: #1d1914; border-radius: .5rem; padding: .5rem; font-size: 16px; }
.w360-form button { flex: 0 0 auto; background: var(--w360-accent); }
.w360-form .w360-attach { min-width: 42px; padding-inline: .35rem; background: #f9eedc; color: #241a10; font-size: 1rem; }
.w360-form input[hidden] { display: none; }
.w360-status, .w360-notice { margin: .3rem .75rem; font-size: .73rem; line-height: 1.35; color: #665342; }
.w360-status:empty { display: none; }
.w360-notice { margin: 0 .75rem .63rem; }
@media (max-height: 590px) {
  .w360-float[data-corner^="bottom"] { bottom: max(min(var(--w360-y), 12dvh), env(safe-area-inset-bottom)); }
  .w360-float[data-corner^="top"] { top: max(min(var(--w360-y), 12dvh), env(safe-area-inset-top)); }
  .w360-panel { max-height: calc(100dvh - min(var(--w360-y), 12dvh) - 70px); }
}
@media (max-width: 640px), (pointer: coarse) and (max-height: 600px) {
  .w360-chat[data-open="true"][data-corner] {
    inset: var(--w360-view-top, 0px) auto auto var(--w360-view-left, 0px);
    width: var(--w360-view-width, 100vw);
    height: var(--w360-view-height, 100dvh);
    box-sizing: border-box;
    padding: max(.5rem, env(safe-area-inset-top)) max(.5rem, env(safe-area-inset-right)) max(.5rem, env(safe-area-inset-bottom)) max(.5rem, env(safe-area-inset-left));
    display: flex;
    align-items: flex-end;
    justify-content: center;
    pointer-events: none;
    z-index: 46;
  }
  .w360-chat[data-open="true"] .w360-launch { display: none; }
  .w360-chat[data-open="true"][data-corner] .w360-panel {
    position: relative;
    inset: auto;
    width: min(100%, 26rem);
    height: min(100%, 34rem);
    max-height: 100%;
    box-sizing: border-box;
    pointer-events: auto;
  }
  .w360-chat[data-compact] .w360-header { padding-block: .35rem; }
  .w360-chat[data-compact] .w360-log { padding-block: .25rem; }
  .w360-chat[data-compact] .w360-choices { max-height: 48px; }
  .w360-chat[data-compact] .w360-notice { display: none; }
}
