.dd-chat-widget {
  --dd-launch-width: 124px;
  position: fixed;
  inset-inline-end: max(20px, env(safe-area-inset-right));
  bottom: max(12px, env(safe-area-inset-bottom));
  z-index: 50;
  display: grid;
  justify-items: end;
  gap: 11px;
  max-width: calc(100vw - 40px);
}
.dd-chat-launch {
  display: grid;
  justify-items: center;
  gap: 6px;
  width: var(--dd-launch-width);
  padding: 0;
  border: 0;
  border-radius: 20px;
  background: transparent;
  color: #fff;
  font: inherit;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.dd-chat-launch-icon {
  display: grid;
  place-items: center;
  width: 66px;
  height: 66px;
  border: 1px solid #b79f85;
  border-radius: 50%;
  background: #fdfbf8;
  box-shadow: 0 0 0 4px #fff, 0 8px 23px 1px #34343338;
  transition: transform .18s ease, box-shadow .18s ease;
}
.dd-chat-launch-icon img {
  display: block;
  width: 50px;
  height: 50px;
  object-fit: contain;
}
.dd-chat-launch-label {
  padding: 5px 9px;
  border-radius: 999px;
  background: #343433;
  box-shadow: 0 3px 9px #2b272221;
  color: #fff;
  font-size: .75rem;
  font-weight: 650;
  line-height: 1.15;
  white-space: nowrap;
  transition: background-color .18s ease;
}
.dd-chat-launch:hover .dd-chat-launch-icon {
  transform: translateY(-2px);
  box-shadow: 0 0 0 4px #fff, 0 10px 25px 2px #34343347;
}
.dd-chat-launch:hover .dd-chat-launch-label { background: #20201f; }
.dd-chat-launch:focus-visible { outline: none; }
.dd-chat-launch:focus-visible .dd-chat-launch-icon {
  outline: 2px solid #8e7358;
  outline-offset: 5px;
}
.dd-chat-invite {
  position: relative;
  display: flex;
  align-items: center;
  max-width: min(290px, 100%);
  border: 1px solid #e1d7cc;
  border-radius: 15px;
  background: #fff;
  color: #313131;
  box-shadow: 0 6px 20px #143c4430;
  animation: dd-chat-invite-in .22s ease-out both;
}
.dd-chat-invite[hidden] { display: none; }
.dd-chat-invite::after {
  content: "";
  position: absolute;
  inset-inline-end: calc(var(--dd-launch-width) / 2 - 5px);
  bottom: -6px;
  width: 10px;
  height: 10px;
  transform: rotate(45deg);
  border: solid #e1d7cc;
  border-width: 0 1px 1px 0;
  background: #fff;
}
.dd-chat-invite button { border: 0; background: transparent; color: inherit; font: inherit; cursor: pointer; }
.dd-chat-invite-text { padding: 10px 0 10px 12px; text-align: left; }
.dd-chat-invite-dismiss { align-self: flex-start; min-width: 40px; min-height: 40px; }
@keyframes dd-chat-invite-in {
  from { opacity: 0; translate: 0 5px; }
  to { opacity: 1; translate: 0 0; }
}
.dd-chat-header img { object-fit: contain; }
.dd-chat {
  position: fixed;
  inset: auto max(20px, env(safe-area-inset-right)) max(20px, env(safe-area-inset-bottom)) auto;
  box-sizing: border-box;
  width: min(400px, calc(100% - 40px));
  max-width: none;
  height: min(620px, calc(100dvh - 40px));
  max-height: none;
  margin: 0;
  padding: 0;
  border: 1px solid #c3d8db;
  border-radius: 22px;
  background: #fff;
  color: #18343b;
  box-shadow: 0 18px 54px #173c4540;
  overflow: hidden;
}
.dd-chat::backdrop { background: #0a283843; }
.dd-chat-shell { display: flex; flex-direction: column; height: 100%; }
.dd-chat-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px;
  border-bottom: 1px solid #dce9e9;
}
.dd-chat-header h2 { flex: 1; font-size: 1rem; margin: 0; }
.dd-chat-header button, .dd-chat-form button {
  width: 42px;
  height: 42px;
  flex: none;
  border: 0;
  border-radius: 12px;
  font: inherit;
  font-size: 1.4rem;
  color: #173c45;
  background: #edf5f5;
  cursor: pointer;
}
.dd-chat-messages {
  flex: 1;
  min-height: 0;
  overflow: auto;
  overscroll-behavior: contain;
  padding: 14px;
  background: #f5f9f9;
}
.dd-chat-bubble {
  width: fit-content;
  max-width: 95%;
  margin: 0 0 10px;
  padding: 9px 12px;
  border-radius: 14px 14px 14px 4px;
  background: #fff;
  color: #18343b;
  overflow-wrap: anywhere;
}
.dd-chat-bubble.is-user {
  margin-inline-start: auto;
  border-radius: 14px 14px 4px 14px;
  background: #d7efed;
}
.dd-chat-actions { display: flex; flex-wrap: wrap; gap: 6px; padding: 8px 12px 0; }
.dd-chat-actions:empty { padding: 0; }
.dd-chat-actions button, .dd-chat-actions a, .dd-chat-actions input, .dd-chat-result {
  box-sizing: border-box;
  min-height: 40px;
  padding: 7px 10px;
  border: 1px solid #bdd9d7;
  border-radius: 10px;
  background: #fff;
  color: #14575a;
  font: inherit;
  font-size: .9rem;
}
.dd-chat-actions button, .dd-chat-result { cursor: pointer; }
.dd-chat-actions a {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}
.dd-chat-actions button:hover, .dd-chat-actions a:hover, .dd-chat-result:hover { background: #dbefed; }
.dd-chat-date { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.dd-chat-result { display: block; width: fit-content; margin: 0 0 7px; text-decoration: none; }
.dd-chat-form { display: flex; gap: 8px; padding: 10px 12px 12px; }
.dd-chat-form input {
  flex: 1;
  min-width: 0;
  padding: 8px 12px;
  border: 1px solid #bdd9d7;
  border-radius: 12px;
  background: #fff;
  color: #18343b;
  font: inherit;
}
.dd-chat-form button { background: #176569; color: #fff; }
.dd-chat-form button:disabled { opacity: .65; cursor: default; }
.dd-chat :focus-visible { outline: 2px solid #267f83; outline-offset: 2px; }
.dd-chat-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
@media (max-width: 520px) {
  .dd-chat { inset: auto 8px max(8px, env(safe-area-inset-bottom)) 8px; width: auto; height: min(680px, calc(100dvh - 16px)); }
  .dd-chat-widget { --dd-launch-width: 118px; inset-inline-end: max(14px, env(safe-area-inset-right)); bottom: max(8px, env(safe-area-inset-bottom)); }
}

.dd-chat-bubble.is-streaming { white-space: pre-wrap; }
.dd-chat-wait { display: flex; align-items: center; gap: 9px; }
.dd-chat-dots { display: inline-flex; gap: 4px; }
.dd-chat-dots i {
    display: block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--pending-dot-color, currentColor);
    animation: dd-chat-pending-dot .85s ease-in-out infinite alternate;
}
.dd-chat-dots i:nth-child(2) { animation-delay: .15s; }
.dd-chat-dots i:nth-child(3) { animation-delay: .3s; }
@keyframes dd-chat-pending-dot {
    from { opacity: .35; transform: translateY(2px); }
    to { opacity: 1; transform: translateY(-3px); }
}
@media (prefers-reduced-motion: reduce) {
    .dd-chat-dots i { animation: none; }
}

.dd-chat-dots { --pending-dot-color: #176569; flex: none; }
@media (prefers-reduced-motion: reduce) {
  .dd-chat-invite { animation: none; }
  .dd-chat-launch-icon, .dd-chat-launch-label { transition: none; }
  .dd-chat-launch:hover .dd-chat-launch-icon { transform: none; }
}

.dd-chat-booking-card {
  margin: 0 0 10px;
  padding: 11px;
  border: 1px solid #c4dcd9;
  border-radius: 14px;
  background: #fff;
}
.dd-chat-booking-card h3 {
  margin: 0 0 6px;
  color: #18343b;
  font-size: .95rem;
  line-height: 1.35;
  overflow-wrap: anywhere;
}
.dd-chat-booking-card h4 {
  margin: 8px 0 4px;
  color: #426065;
  font-size: .8rem;
}
.dd-chat-slots {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 5px;
}
.dd-chat-slot {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 44px;
  padding: 5px 8px;
  border: 1px solid #bdd9d7;
  border-radius: 9px;
  background: #f5fbfa;
  color: #14575a;
  line-height: 1.2;
  text-decoration: none;
}
.dd-chat-slot:hover { background: #dbefed; }
.dd-chat-slot strong { font-size: .91rem; font-variant-numeric: tabular-nums; }
.dd-chat-slot span { margin-top: 2px; font-size: .75rem; overflow-wrap: anywhere; }

.dd-chat-form[hidden] { display: none; }
.dd-chat-slot { text-align: start; cursor: pointer; }
.dd-chat-contacts { display: grid; gap: 8px; }
.dd-chat-contacts label { display: grid; gap: 4px; font-size: .86rem; }
.dd-chat-contacts input:not([type=checkbox]) { width: 100%; padding: 8px; border: 1px solid #bdd9d7; border-radius: 8px; }
.dd-chat-contacts .dd-chat-consent { display: flex; align-items: center; }
.dd-chat-contacts p { margin: 0; }
.dd-chat-contacts p:empty { display: none; }
