#qdc-chatbot {
  --qdc-accent: #8f1535;
  --qdc-deep: #70102c;
  --qdc-ink: #30222a;
  --qdc-muted: #685761;
  --qdc-line: #e8d4dc;
  color: var(--qdc-ink);
  color-scheme: light;
  font-size: 1rem;
  line-height: 1.5;
}

#qdc-chatbot [hidden] { display: none !important; }
#qdc-chatbot button, #qdc-chatbot input, #qdc-chatbot textarea { font: inherit; }
#qdc-chatbot button { cursor: pointer; }
#qdc-chatbot button:disabled { opacity: .55; cursor: default; }
#qdc-chatbot :focus-visible { outline: 3px solid #cb5377; outline-offset: 2px; }

#qdc-chatbot .qdc-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  border: 0;
  overflow: hidden;
  white-space: nowrap;
  clip-path: inset(50%);
}

#qdc-chatbot .qdc-launcher {
  position: fixed;
  z-index: 30;
  right: max(18px, env(safe-area-inset-right));
  bottom: calc(128px + env(safe-area-inset-bottom));
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 47px;
  padding: 10px 16px;
  color: white;
  background: var(--qdc-accent);
  border: 1px solid #f4ccd680;
  border-radius: 100px;
  box-shadow: 0 6px 21px #72112f40;
  font-size: .9rem;
  font-weight: 750;
}

#qdc-chatbot .qdc-launcher:hover, #qdc-chatbot .qdc-primary:not(:disabled):hover { background: var(--qdc-deep); }

#qdc-chatbot .qdc-chat-icon {
  position: relative;
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  gap: 2px;
  width: 20px;
  height: 16px;
  background: inherit;
  border: 1.7px solid currentColor;
  border-radius: 7px;
}

#qdc-chatbot .qdc-chat-icon::after {
  content: "";
  position: absolute;
  left: 2px;
  bottom: -3px;
  width: 5px;
  height: 5px;
  transform: skewY(-38deg);
  background: inherit;
  border-inline-start: 1.5px solid currentColor;
  border-block-end: 1.5px solid currentColor;
}

#qdc-chatbot .qdc-chat-icon i { width: 2px; height: 2px; border-radius: 50%; background: currentColor; }

#qdc-chatbot .qdc-panel {
  position: fixed;
  z-index: 31;
  right: max(18px, env(safe-area-inset-right));
  bottom: max(22px, env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  width: min(410px, calc(100% - 36px));
  height: min(560px, calc(100dvh - 44px));
  overflow: hidden;
  background: white;
  border: 1px solid #d9b6bb;
  border-radius: 19px;
  box-shadow: 0 20px 64px #2d051f61;
}

html.qdc-chat-open .floating, html.qdc-chat-open .floating-contact { visibility: hidden; }

#qdc-chatbot .qdc-chat-header {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) 38px 38px;
  align-items: center;
  gap: 8px;
  padding: 12px;
  background: linear-gradient(110deg, #80132e, #a71e44);
  color: white;
}

#qdc-chatbot .qdc-chat-header img { width: 46px; height: 46px; border-radius: 10px; }
#qdc-chatbot .qdc-chat-header h2 { margin: 0; color: inherit; font-size: 1.06rem; line-height: 1.3; letter-spacing: normal; }
#qdc-chatbot .qdc-chat-header p { margin: 3px 0 0; color: #f8d8e1; font-size: .86rem; }

#qdc-chatbot .qdc-icon-button, #qdc-chatbot [data-photo-close] {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 0;
  border-radius: 9px;
  color: inherit;
  background: #ffffff1c;
  font-size: 1.42rem;
  line-height: 1;
}

#qdc-chatbot .qdc-icon-button:hover { background: #ffffff39; }

#qdc-chatbot .qdc-chat-log {
  position: relative;
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 14px;
  overflow: auto;
  overflow-wrap: anywhere;
  overscroll-behavior: contain;
  background: #faf5f6;
}

#qdc-chatbot .qdc-message { max-width: 95%; align-self: start; }
#qdc-chatbot .qdc-message-user { align-self: end; }

#qdc-chatbot .qdc-message p {
  margin: 0;
  padding: 10px 12px;
  color: var(--qdc-ink);
  background: white;
  border: 1px solid #ebdfe3;
  border-radius: 3px 13px 13px 13px;
  font-size: .96rem;
  line-height: 1.52;
  white-space: pre-wrap;
}

#qdc-chatbot .qdc-message-user p { background: var(--qdc-accent); color: white; border-color: var(--qdc-accent); border-radius: 13px 3px 13px 13px; }
#qdc-chatbot .qdc-sent-image { display: block; width: min(210px, 100%); max-height: 155px; margin: 6px 0 0 auto; object-fit: contain; background: #f0e5e9; border: 1px solid var(--qdc-line); border-radius: 10px; }
#qdc-chatbot .qdc-message-links, #qdc-chatbot .qdc-suggestions { display: flex; flex-wrap: wrap; gap: 6px; }
#qdc-chatbot .qdc-message-links { margin-top: 7px; }
#qdc-chatbot .qdc-suggestions { padding: 10px 12px 2px; max-height: 92px; overflow-y: auto; }

#qdc-chatbot .qdc-message-links a, #qdc-chatbot .qdc-suggestions button, #qdc-chatbot [data-photo-cancel], #qdc-chatbot [data-photo-remove] {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 5px 8px;
  color: var(--qdc-accent);
  background: white;
  border: 1px solid var(--qdc-line);
  border-radius: 9px;
  text-decoration: none;
  font-size: .875rem;
  font-weight: 700;
  line-height: 1.35;
}

#qdc-chatbot .qdc-message-links a:hover, #qdc-chatbot .qdc-suggestions button:hover, #qdc-chatbot [data-photo-cancel]:hover, #qdc-chatbot [data-photo-remove]:hover { background: #fae7ed; }
#qdc-chatbot .qdc-chat-form { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 8px; padding: 9px 12px 7px; }

#qdc-chatbot #qdc-chat-input, #qdc-chatbot #qdc-photo-description {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  padding: 8px 10px;
  border: 1px solid #d9c8cf;
  border-radius: 10px;
  color: var(--qdc-ink);
  background: white;
}

#qdc-chatbot .qdc-primary { min-height: 44px; padding: 8px 13px; border: 0; border-radius: 10px; color: white; background: var(--qdc-accent); font-weight: 750; }
#qdc-chatbot .qdc-attach { display: grid; place-items: center; padding: 0; border: 1px solid var(--qdc-line); border-radius: 10px; color: var(--qdc-accent); background: #fbecf0; }
#qdc-chatbot .qdc-attach:hover { background: #f6dfe7; }
#qdc-chatbot .qdc-paperclip { position: relative; display: block; width: 11px; height: 20px; border: 2px solid currentColor; border-radius: 8px; transform: rotate(39deg); }
#qdc-chatbot .qdc-paperclip::after { content: ""; position: absolute; inset: 1px 2px 3px; border: 1px solid currentColor; border-top: 0; border-radius: 0 0 4px 4px; }
#qdc-chatbot .qdc-handoff { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 12px; padding: 2px 13px 10px; color: var(--qdc-muted); font-size: .875rem; }
#qdc-chatbot .qdc-handoff a { color: var(--qdc-accent); font-weight: 750; text-decoration: underline; text-underline-offset: 2px; }

#qdc-chatbot .qdc-photo-dialog {
  position: fixed;
  inset: 0;
  width: min(505px, calc(100% - 28px));
  max-height: calc(100dvh - 24px);
  margin: auto;
  padding: 20px;
  overflow-y: auto;
  color: var(--qdc-ink);
  background: #fffdfd;
  border: 1px solid #dfc8d1;
  border-radius: 17px;
  box-shadow: 0 18px 58px #24092050;
}

#qdc-chatbot .qdc-photo-dialog::backdrop { background: #23112185; }
#qdc-chatbot .qdc-photo-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
#qdc-chatbot .qdc-photo-heading h2 { margin: 0; color: var(--qdc-ink); line-height: 1.25; font-size: 1.45rem; letter-spacing: normal; }
#qdc-chatbot [data-photo-close] { flex: none; color: var(--qdc-accent); background: #f5e7ec; }
#qdc-chatbot #qdc-photo-note { margin: 9px 0 11px; color: var(--qdc-muted); font-size: .9rem; }

#qdc-chatbot .qdc-pick-photo {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: start;
  gap: 3px;
  padding: 11px 13px;
  border: 1px dashed #b76884;
  border-radius: 11px;
  color: var(--qdc-accent);
  background: #fbf1f5;
  cursor: pointer;
}

#qdc-chatbot .qdc-pick-photo:hover { background: #f9e6ee; }
#qdc-chatbot .qdc-pick-photo:focus-within { outline: 3px solid #cb5377; outline-offset: 2px; }
#qdc-chatbot .qdc-photo-form small { color: var(--qdc-muted); font-size: .855rem; font-weight: 400; }
#qdc-chatbot .qdc-photo-preview { margin: 8px 0 0; padding: 7px; border: 1px solid var(--qdc-line); border-radius: 11px; background: #faf4f6; }
#qdc-chatbot .qdc-photo-preview img { display: block; width: 100%; max-height: min(26dvh, 205px); object-fit: contain; background: #f1e7ea; border-radius: 7px; }
#qdc-chatbot .qdc-photo-preview figcaption { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding-top: 5px; overflow-wrap: anywhere; font-size: .85rem; }
#qdc-chatbot [data-photo-remove] { flex: none; min-height: 30px; }
#qdc-chatbot .qdc-description-label { display: block; margin: 10px 0 4px; font-size: .9rem; font-weight: 730; }
#qdc-chatbot #qdc-photo-description { display: block; resize: vertical; }
#qdc-chatbot .qdc-photo-consent { display: flex; align-items: start; gap: 9px; margin-top: 11px; font-size: .9rem; }
#qdc-chatbot .qdc-photo-consent input { flex: none; width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--qdc-accent); }
#qdc-chatbot .qdc-photo-feedback { margin: 6px 0 0; color: var(--qdc-accent); font-size: .875rem; }
#qdc-chatbot .qdc-photo-feedback:empty { display: none; }
#qdc-chatbot .qdc-photo-actions { display: flex; justify-content: end; gap: 8px; margin-top: 12px; }
#qdc-chatbot [data-photo-cancel] { padding-inline: 13px; }

@media (max-width: 650px) {
  #qdc-chatbot .qdc-launcher { right: max(12px, env(safe-area-inset-right)); bottom: calc(108px + env(safe-area-inset-bottom)); }
  #qdc-chatbot .qdc-panel { right: 10px; width: calc(100% - 20px); bottom: max(10px, env(safe-area-inset-bottom)); height: min(570px, calc(100dvh - 20px)); }
  #qdc-chatbot .qdc-chat-log { padding: 11px; }
  #qdc-chatbot .qdc-photo-dialog { padding: 15px; }
}
