/* DaynaCity Live Chat — frontend widget
   All rules are namespaced under .dclc-root and hardened against theme resets. */

.dclc-root,
.dclc-root *,
.dclc-root *::before,
.dclc-root *::after {
  box-sizing: border-box !important;
}

.dclc-root {
  --dclc-radius: 20px;
  --dclc-ink: #0f172a;
  --dclc-muted: #64748b;
  --dclc-line: #e4e9f2;
  position: fixed;
  bottom: 24px;
  z-index: 999999;
  margin: 0 !important;
  padding: 0 !important;
  font-family: "Hind Siliguri", "Noto Sans Bengali", Inter, -apple-system,
    BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  color: var(--dclc-ink);
  text-align: left;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.dclc-root button,
.dclc-root input,
.dclc-root textarea {
  font-family: inherit;
  letter-spacing: normal;
  text-transform: none !important;
}

.dclc-root [hidden] {
  display: none !important;
}

/* ---------------------------------------------------------- backdrop */
.dclc-mobile-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.4);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity 0.26s ease;
}
.dclc-mobile-backdrop.is-visible {
  opacity: 1;
}

/* ---------------------------------------------------------- launcher */
.dclc-launcher {
  -webkit-appearance: none !important;
  appearance: none !important;
  position: relative;
  display: grid !important;
  place-items: center;
  width: 64px !important;
  height: 64px !important;
  min-width: 64px !important;
  min-height: 64px !important;
  max-width: 64px !important;
  max-height: 64px !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 50% !important;
  background: var(--dclc-primary);
  color: #fff;
  line-height: normal !important;
  cursor: pointer;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.95),
    0 0 0 5px color-mix(in srgb, var(--dclc-primary) 38%, transparent),
    0 0 18px color-mix(in srgb, var(--dclc-primary) 28%, transparent),
    0 14px 34px rgba(15, 23, 42, 0.22);
  transition: transform 0.26s cubic-bezier(0.2, 0.8, 0.2, 1),
    box-shadow 0.26s ease;
  isolation: isolate;
}

/* Brand PNG: the artwork is already a full-bleed circle, so the button itself
   stays transparent — only the icon is visible, never a colour edge. */
.dclc-launcher.dclc-has-brand-icon {
  background-color: var(--dclc-primary) !important;
  background-image: var(--dclc-launcher-icon) !important;
  background-size: 64% 64% !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.95),
    0 0 0 5px color-mix(in srgb, var(--dclc-primary) 38%, transparent),
    0 0 18px color-mix(in srgb, var(--dclc-primary) 28%, transparent),
    0 12px 28px rgba(15, 23, 42, 0.24);
  overflow: visible !important;
}


.dclc-launcher:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.95),
    0 0 0 6px color-mix(in srgb, var(--dclc-primary) 55%, transparent),
    0 0 24px color-mix(in srgb, var(--dclc-primary) 40%, transparent),
    0 20px 42px rgba(15, 23, 42, 0.28);
}
.dclc-launcher:active {
  transform: translateY(0) scale(0.95);
}

/* static ring around the launcher — no animation to keep page performant */
.dclc-launcher::before,
.dclc-launcher::after {
  content: none !important;
  display: none !important;
}

.dclc-launcher:focus-visible,
.dclc-close:focus-visible,
.dclc-start:focus-visible,
.dclc-composer button:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--dclc-primary) 40%, transparent);
  outline-offset: 3px;
}



.dclc-launcher-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  place-items: center;
  width: 26px !important;
  height: 26px !important;
  margin: 0 !important;
  padding: 0 !important;
  transform: translate(-50%, -50%);
  transition: opacity 0.2s ease, transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.dclc-launcher-icon svg {
  display: block;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.1;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.dclc-icon-chat {
  opacity: 1;
}
.dclc-icon-chat svg {
  fill: currentColor;
  stroke: none;
}
.dclc-launcher.dclc-has-brand-icon .dclc-icon-chat {
  display: none;
}
.dclc-icon-close {
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.6) rotate(-40deg);
}
.dclc-root.is-open .dclc-icon-chat {
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.6) rotate(40deg);
}
/* When open, hide the brand artwork and show a plain close button. */
.dclc-root.is-open .dclc-launcher.dclc-has-brand-icon {
  background-image: none !important;
  background: var(--dclc-primary) !important;
}
.dclc-root.is-open .dclc-icon-close {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1) rotate(0);
}

.dclc-unread {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border: 2px solid #fff;
  border-radius: 999px;
  background: #ef4444;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  line-height: 18px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
  animation: dclc-pop 0.24s ease;
}

/* ---------------------------------------------------------- panel */
.dclc-panel {
  position: absolute;
  right: 0;
  bottom: 76px;
  display: flex;
  flex-direction: column;
  width: min(346px, calc(100vw - 28px));
  height: min(540px, calc(100vh - 116px));
  min-height: 0;
  max-height: calc(100vh - 110px);
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 20px;
  box-shadow: 0 22px 56px rgba(15, 23, 42, 0.24);
  transform-origin: bottom right;
  animation: dclc-panel-in 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---------------------------------------------------------- header */
.dclc-header {
  position: relative;
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 10px;
  padding: 11px 12px;
  background: var(--dclc-primary);
  color: #fff;
  overflow: hidden;
}
.dclc-header::after {
  content: "";
  position: absolute;
  top: -110px;
  right: -70px;
  width: 170px;
  height: 170px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
}

.dclc-agent-avatar {
  position: relative;
  z-index: 1;
  display: grid !important;
  place-items: center;
  flex: 0 0 36px !important;
  width: 36px !important;
  height: 36px !important;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.34);
  font-size: 15px;
  font-weight: 700;
  color: #fff;
}
.dclc-agent-avatar span {
  position: absolute;
  right: -1px;
  bottom: -1px;
  width: 12px;
  height: 12px;
  border: 2.5px solid color-mix(in srgb, var(--dclc-primary) 80%, #111827);
  border-radius: 50%;
  background: #94a3b8;
}
.dclc-agent-avatar span.is-online {
  background: #4ade80;
}

.dclc-agent-copy {
  position: relative;
  z-index: 1;
  min-width: 0;
  flex: 1 1 auto;
}
.dclc-agent-copy strong {
  display: block;
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #fff;
}
.dclc-agent-copy > span {
  display: flex;
  align-items: center;
  margin-top: 1px;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.86);
}
.dclc-status-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 6px;
  border-radius: 50%;
  background: #cbd5e1;
}
.dclc-status-dot.is-online {
  background: #4ade80;
  box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.22);
}

.dclc-close {
  -webkit-appearance: none !important;
  appearance: none !important;
  position: relative;
  z-index: 2;
  display: grid !important;
  place-items: center;
  flex: 0 0 30px !important;
  width: 30px !important;
  height: 30px !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 50% !important;
  background: rgba(255, 255, 255, 0.16) !important;
  color: #fff !important;
  cursor: pointer;
  transition: background 0.2s ease;
}
.dclc-close:hover {
  background: rgba(255, 255, 255, 0.3) !important;
}
.dclc-close svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}

/* ---------------------------------------------------------- notice */
.dclc-notice {
  position: absolute;
  z-index: 10;
  top: 66px;
  left: 12px;
  right: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #fff1f2;
  border: 1px solid #fecdd3;
  color: #be123c;
  font-size: 12.5px;
  font-weight: 600;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.12);
  animation: dclc-drop 0.22s ease;
}
.dclc-notice.is-success {
  background: #ecfdf5;
  border-color: #a7f3d0;
  color: #047857;
}

/* ---------------------------------------------------------- pre-chat */
.dclc-prechat {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding: 12px 13px 12px;
  background: #fff;
  scrollbar-width: thin;
  scrollbar-color: #dbe3ee transparent;
}
.dclc-prechat-intro {
  padding-bottom: 10px;
}
.dclc-wave {
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  margin-bottom: 6px;
  border-radius: 10px;
  background: color-mix(in srgb, var(--dclc-primary) 10%, #fff);
  font-size: 14px;
  transform-origin: 70% 75%;
  animation: dclc-wave 2.8s ease-in-out infinite;
}
.dclc-prechat h3 {
  margin: 0 0 3px !important;
  padding: 0;
  font-size: 15.5px;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.02em;
  color: var(--dclc-ink);
}
.dclc-prechat p {
  margin: 0 !important;
  padding: 0;
  color: var(--dclc-muted);
  font-size: 12px;
  line-height: 1.5;
}

#dclc-prechat-form {
  margin: 0;
  padding: 0;
}

.dclc-field {
  display: block;
  margin: 0 0 7px;
}
.dclc-field > span {
  display: block;
  margin: 0 0 4px 2px;
  font-size: 11.5px;
  font-weight: 600;
  color: #475569;
}
.dclc-field > span b {
  color: #ef4444;
}
.dclc-field input,
.dclc-field textarea {
  display: block;
  width: 100% !important;
  max-width: 100% !important;
  height: 34px !important;
  margin: 0 !important;
  padding: 0 11px !important;
  border: 1px solid var(--dclc-line) !important;
  border-radius: 10px !important;
  background: #fff !important;
  color: var(--dclc-ink) !important;
  font-size: 13px;
  outline: 0;
  box-shadow: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.dclc-field input:hover,
.dclc-field textarea:hover {
  border-color: #cbd5e1 !important;
}
.dclc-field input:focus,
.dclc-field textarea:focus {
  border-color: var(--dclc-primary) !important;
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--dclc-primary) 12%, transparent);
}
.dclc-field input.is-invalid,
.dclc-field textarea.is-invalid {
  border-color: #ef4444 !important;
  box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.1);
}
.dclc-field textarea {
  height: auto !important;
  min-height: 52px;
  padding: 9px 12px !important;
  line-height: 1.45;
  resize: vertical;
  font-family: inherit;
}

/* Full-width, perfectly centred primary button — hardened so no theme
   button rule can shrink it or misalign the label. */
.dclc-start {
  -webkit-appearance: none !important;
  appearance: none !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  height: 40px !important;
  min-height: 40px !important;
  padding: 0 16px !important;
  margin: 4px 0 0 !important;
  border: 0 !important;
  border-radius: 11px !important;
  background: var(--dclc-primary) !important;
  color: #fff !important;
  font-size: 13.5px !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  text-align: center !important;
  text-decoration: none !important;
  text-shadow: none !important;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: 0 10px 24px color-mix(in srgb, var(--dclc-primary) 32%, transparent);
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}
.dclc-start > span {
  display: inline-block;
  color: inherit;
}
.dclc-start:hover {
  transform: translateY(-2px);
  filter: brightness(1.06);
  box-shadow: 0 14px 30px color-mix(in srgb, var(--dclc-primary) 40%, transparent);
}
.dclc-start:active {
  transform: translateY(0) scale(0.99);
}
.dclc-start:disabled {
  opacity: 0.7;
  cursor: wait;
  transform: none;
}
.dclc-start svg {
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.18s ease;
}
.dclc-start:hover svg {
  transform: translateX(3px);
}
.dclc-start.is-loading svg {
  animation: dclc-spin 0.9s linear infinite;
}

.dclc-prechat small {
  display: block;
  margin-top: 9px;
  color: #64748b;
  font-size: 10px;
  line-height: 1.45;
  text-align: center;
}
.dclc-prechat small a {
  color: var(--dclc-primary);
  font-weight: 600;
  text-decoration: none;
}

/* ---------------------------------------------------------- chat */
.dclc-chat {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  background: #f7f9fc;
}
.dclc-messages {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding: 14px 12px 8px;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: #cbd5e1 transparent;
}
.dclc-message {
  display: flex;
  flex-direction: column;
  max-width: 82%;
  margin: 0 0 12px;
  animation: dclc-message-in 0.16s ease-out;
}
.dclc-message > div {
  padding: 8px 11px;
  border-radius: 14px;
  font-size: 12.5px;
  line-height: 1.55;
  word-break: break-word;
  overflow-wrap: anywhere;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.05);
}
.dclc-message time {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 4px;
  font-size: 10.5px;
  color: #64748b;
}
.dclc-message.is-admin {
  align-items: flex-start;
  margin-right: auto;
}
.dclc-message.is-admin > div {
  background: #fff;
  border: 1px solid var(--dclc-line);
  border-bottom-left-radius: 6px;
  color: var(--dclc-ink);
}
.dclc-message.is-visitor {
  align-items: flex-end;
  margin-left: auto;
}
.dclc-message.is-visitor > div {
  background: var(--dclc-primary);
  border-bottom-right-radius: 6px;
  color: #fff;
}
.dclc-message.is-pending {
  opacity: 0.65;
}
.dclc-message.is-failed > div {
  background: #fee2e2;
  color: #b91c1c;
}
.dclc-message .dclc-tick {
  width: 13px;
  height: 13px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.dclc-typing {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 18px 8px;
  color: var(--dclc-muted);
  font-size: 12px;
}
.dclc-typing-dots {
  display: inline-flex;
  gap: 3px;
}
.dclc-typing-dots i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--dclc-primary);
  animation: dclc-dot 1.2s infinite;
}
.dclc-typing-dots i:nth-child(2) {
  animation-delay: 0.15s;
}
.dclc-typing-dots i:nth-child(3) {
  animation-delay: 0.3s;
}

.dclc-composer {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  margin: 0;
  padding: 9px 10px;
  background: #fff;
  border-top: 1px solid var(--dclc-line);
}
.dclc-composer textarea {
  flex: 1 1 auto;
  width: 100% !important;
  min-height: 38px;
  max-height: 100px;
  margin: 0 !important;
  padding: 9px 12px !important;
  border: 1px solid var(--dclc-line) !important;
  border-radius: 14px !important;
  background: #fff !important;
  color: var(--dclc-ink) !important;
  font-size: 14px;
  line-height: 1.45;
  resize: none;
  outline: 0;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.dclc-composer textarea:focus {
  border-color: var(--dclc-primary) !important;
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--dclc-primary) 10%, transparent);
}
.dclc-composer textarea::placeholder {
  color: #64748b;
}
.dclc-composer button {
  -webkit-appearance: none !important;
  appearance: none !important;
  display: grid !important;
  place-items: center;
  flex: 0 0 38px !important;
  width: 38px !important;
  height: 38px !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 11px !important;
  background: var(--dclc-primary) !important;
  color: #fff !important;
  cursor: pointer;
  box-shadow: 0 8px 18px color-mix(in srgb, var(--dclc-primary) 26%, transparent);
  transition: transform 0.18s ease, opacity 0.18s ease;
}
.dclc-composer button:hover {
  transform: translateY(-2px);
}
.dclc-composer button:active {
  transform: scale(0.95);
}
.dclc-composer button:disabled {
  opacity: 0.55;
  cursor: wait;
  transform: none;
}
.dclc-composer button svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.dclc-powered {
  padding: 0 12px 8px;
  background: #fff;
  color: #64748b;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .02em;
  line-height: 1.45;
  text-align: center;
}

.dclc-powered a {
  color: #1d4ed8;
  font-weight: 700;
  text-decoration: none;
}

.dclc-powered a:hover {
  text-decoration: underline;
}

.dclc-wait-note {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 14px 10px;
  padding: 10px 12px;
  border: 1px solid #dbe4f5;
  border-radius: 12px;
  background: #f5f8ff;
  color: #3c4a63;
  font-size: 11.5px;
  line-height: 1.6;
}

.dclc-wait-dots {
  display: inline-flex;
  gap: 3px;
  flex: 0 0 auto;
}

.dclc-wait-dots i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #1d4ed8;
  opacity: .35;
  animation: dclc-wait-blink 1.2s infinite ease-in-out;
}

.dclc-wait-dots i:nth-child(2) { animation-delay: .18s; }
.dclc-wait-dots i:nth-child(3) { animation-delay: .36s; }

@keyframes dclc-wait-blink {
  0%, 100% { opacity: .3; transform: translateY(0); }
  50% { opacity: 1; transform: translateY(-2px); }
}

.dclc-system-note {
  display: flex;
  justify-content: center;
  margin: 10px 0 4px;
}

.dclc-system-note span {
  padding: 5px 12px;
  border: 1px solid #cfe3d4;
  border-radius: 999px;
  background: #f1f9f3;
  color: #1a6b3c;
  font-size: 10.5px;
  font-weight: 700;
}

.dclc-hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.dclc-root.dclc-shake .dclc-panel {
  animation: dclc-shake 0.34s ease;
}

/* ---------------------------------------------------------- keyframes */
@keyframes dclc-panel-in {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes dclc-message-in {
  from {
    opacity: 0;
    transform: translateY(5px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes dclc-pulse {
  0% {
    transform: scale(1);
    opacity: 0.22;
  }
  70%,
  100% {
    transform: scale(1.45);
    opacity: 0;
  }
}
@keyframes dclc-pop {
  from {
    opacity: 0;
    transform: scale(0.5);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}
@keyframes dclc-wave {
  0%,
  55%,
  100% {
    transform: rotate(0);
  }
  62% {
    transform: rotate(14deg);
  }
  69% {
    transform: rotate(-8deg);
  }
  76% {
    transform: rotate(10deg);
  }
}
@keyframes dclc-dot {
  0%,
  60%,
  100% {
    transform: translateY(0);
    opacity: 0.55;
  }
  30% {
    transform: translateY(-4px);
    opacity: 1;
  }
}
@keyframes dclc-spin {
  to {
    transform: rotate(360deg);
  }
}
@keyframes dclc-drop {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes dclc-shake {
  0%,
  100% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(-5px);
  }
  50% {
    transform: translateX(5px);
  }
  75% {
    transform: translateX(-3px);
  }
}

/* ---------------------------------------------------------- mobile */
@media (max-width: 480px) {
  body.dclc-chat-open {
    overflow: hidden;
  }
  .dclc-root {
    right: 14px !important;
    left: auto !important;
    bottom: 14px;
  }
  .dclc-launcher,
  .dclc-launcher.dclc-has-brand-icon {
    width: 58px !important;
    height: 58px !important;
    min-width: 58px !important;
    min-height: 58px !important;
    max-width: 58px !important;
    max-height: 58px !important;
  }
  .dclc-panel {
    position: fixed;
    inset: 10px 10px 78px;
    width: auto;
    height: auto;
    min-height: 0;
    border-radius: 22px;
    transform-origin: bottom center;
  }
  .dclc-prechat {
    padding: 14px 14px 16px;
  }
  .dclc-prechat h3 {
    font-size: 16px;
  }
  .dclc-mobile-backdrop {
    display: block !important;
  }
  .dclc-root:not(.is-open) .dclc-mobile-backdrop {
    display: none !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .dclc-root *,
  .dclc-root *::before,
  .dclc-root *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

.dclc-field-select select{width:100%;height:34px;padding:0 12px;border:1px solid #e2e8f0;border-radius:10px;background:#fff;color:#0f172a;font:inherit;font-size:13px;appearance:none;background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2'><path d='m6 9 6 6 6-6'/></svg>");background-repeat:no-repeat;background-position:right 12px center;background-size:16px;transition:border-color .18s ease,box-shadow .18s ease}.dclc-field-select select:focus{outline:none;border-color:var(--dclc-primary);box-shadow:0 0 0 3px color-mix(in srgb,var(--dclc-primary) 18%,transparent)}.dclc-field-select select.is-invalid{border-color:#ef4444}

/* --- compact single-column pre-chat layout (1.4.7) --- */
.dclc-root .dclc-wave { display: none !important; }
.dclc-root #dclc-prechat-form {
  display: grid;
  grid-template-columns: 1fr;
}
.dclc-root #dclc-prechat-form > .dclc-field { margin: 0 0 12px; min-width: 0; }

/* --- clearer, friendlier pre-chat fields (1.4.8) --- */
.dclc-root .dclc-field > span {
  font-size: 12px;
  font-weight: 700;
  color: #0f172a;
  letter-spacing: .1px;
  margin: 0 0 6px 1px;
}
.dclc-root .dclc-field input,
.dclc-root .dclc-field textarea,
.dclc-root .dclc-field-select select {
  height: 38px !important;
  border: 1.5px solid #dbe2ec !important;
  border-radius: 11px !important;
  background: #f7f9fc !important;
  font-size: 13.5px !important;
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, .04);
}
.dclc-root .dclc-field textarea {
  height: auto !important;
  min-height: 62px;
}
.dclc-root .dclc-field input::placeholder,
.dclc-root .dclc-field textarea::placeholder {
  color: #97a3b6;
  opacity: 1;
}
.dclc-root .dclc-field input:focus,
.dclc-root .dclc-field textarea:focus,
.dclc-root .dclc-field-select select:focus {
  background: #fff !important;
  border-color: var(--dclc-primary) !important;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--dclc-primary) 16%, transparent);
}
.dclc-root #dclc-prechat-form > .dclc-field { margin: 0 0 10px; }

/* --- taller panel + always-visible start button (1.4.9) --- */
.dclc-root .dclc-panel {
  height: min(660px, calc(100vh - 92px));
  max-height: calc(100vh - 88px);
}
.dclc-root .dclc-prechat {
  display: flex;
  flex-direction: column;
  padding: 12px 13px 0;
}
.dclc-root #dclc-prechat-form {
  flex: 1 1 auto;
  min-height: 0;
}
/* Sticks the submit button to the bottom of the form area so it is always
   visible, even on short screens where the fields need scrolling. */
.dclc-root #dclc-prechat-form > .dclc-start {
  position: sticky;
  bottom: 0;
  z-index: 3;
  margin-top: 2px;
  box-shadow: 0 -10px 12px 6px #fff, 0 6px 16px rgba(15, 23, 42, .16);
}
.dclc-root .dclc-prechat small {
  position: sticky;
  bottom: 0;
  z-index: 3;
  padding: 6px 0 10px;
  background: #fff;
}
@media (max-height: 700px) {
  .dclc-root .dclc-field textarea { min-height: 52px; }
  .dclc-root #dclc-prechat-form > .dclc-field { margin-bottom: 8px; }
}

/* --- compact spacing pass (1.5.0): smaller gaps, shorter panel --- */
.dclc-root .dclc-panel {
  height: auto;
  max-height: calc(100vh - 96px);
}
.dclc-root .dclc-prechat {
  padding: 10px 13px 0;
}
.dclc-root .dclc-prechat-intro {
  padding-bottom: 4px;
}
.dclc-root .dclc-prechat h3 {
  margin: 0 0 2px !important;
  font-size: 15px;
  line-height: 1.3;
}
.dclc-root .dclc-prechat p {
  font-size: 11.5px;
  line-height: 1.4;
}
.dclc-root .dclc-field > span {
  margin: 0 0 3px 1px;
  font-size: 11.5px;
  line-height: 1.25;
}
.dclc-root #dclc-prechat-form > .dclc-field,
.dclc-root .dclc-field {
  margin: 0 0 6px;
}
.dclc-root .dclc-field input,
.dclc-root .dclc-field-select select {
  height: 34px !important;
  border-radius: 10px !important;
  font-size: 13px !important;
}
.dclc-root .dclc-field textarea {
  min-height: 54px;
  padding: 7px 11px !important;
  font-size: 13px !important;
  line-height: 1.4;
}
.dclc-root .dclc-start {
  height: 38px !important;
  min-height: 38px !important;
  margin: 2px 0 10px !important;
  border-radius: 10px !important;
}
.dclc-root .dclc-prechat small {
  margin-top: 4px;
  padding: 4px 0 8px;
  font-size: 9.5px;
  line-height: 1.35;
}
@media (max-height: 700px) {
  .dclc-root .dclc-field textarea { min-height: 48px; }
  .dclc-root #dclc-prechat-form > .dclc-field { margin-bottom: 5px; }
}

/* --- visual polish pass (1.5.2): same sizes & gaps, nicer look --- */
.dclc-root .dclc-panel {
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 22px;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, .9) inset,
    0 18px 44px -12px rgba(15, 23, 42, .28),
    0 6px 16px -8px rgba(15, 23, 42, .18);
}
.dclc-root .dclc-header {
  background: linear-gradient(
    135deg,
    color-mix(in srgb, var(--dclc-primary) 88%, #fff) 0%,
    var(--dclc-primary) 55%,
    color-mix(in srgb, var(--dclc-primary) 78%, #000) 100%
  );
  box-shadow: 0 6px 18px -10px color-mix(in srgb, var(--dclc-primary) 70%, transparent);
}
.dclc-root .dclc-header::before {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .45), transparent);
}
.dclc-root .dclc-agent-avatar {
  background: rgba(255, 255, 255, .22);
  border-color: rgba(255, 255, 255, .45);
  box-shadow: 0 3px 10px -4px rgba(15, 23, 42, .45);
}
.dclc-root .dclc-prechat {
  background: linear-gradient(180deg, color-mix(in srgb, var(--dclc-primary) 4%, #fff) 0%, #fff 42%);
}
.dclc-root .dclc-field > span { color: #1e293b; }
.dclc-root .dclc-field input,
.dclc-root .dclc-field textarea,
.dclc-root .dclc-field-select select {
  border-color: #e2e8f0 !important;
  background: #f8fafc !important;
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, .035);
  transition: border-color .16s ease, box-shadow .16s ease, background .16s ease;
}
.dclc-root .dclc-field input:hover,
.dclc-root .dclc-field textarea:hover,
.dclc-root .dclc-field-select select:hover {
  border-color: color-mix(in srgb, var(--dclc-primary) 32%, #e2e8f0) !important;
}
.dclc-root .dclc-field input:focus,
.dclc-root .dclc-field textarea:focus,
.dclc-root .dclc-field-select select:focus {
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--dclc-primary) 14%, transparent),
    0 2px 8px -4px color-mix(in srgb, var(--dclc-primary) 45%, transparent);
}
.dclc-root .dclc-start {
  background: linear-gradient(
    180deg,
    color-mix(in srgb, var(--dclc-primary) 90%, #fff) 0%,
    var(--dclc-primary) 100%
  ) !important;
  letter-spacing: .2px !important;
  transition: transform .14s ease, box-shadow .18s ease, filter .18s ease !important;
}
.dclc-root #dclc-prechat-form > .dclc-start {
  box-shadow: 0 -10px 12px 6px #fff,
    0 8px 18px -8px color-mix(in srgb, var(--dclc-primary) 60%, transparent);
}
.dclc-root .dclc-start:hover {
  filter: brightness(1.04);
  transform: translateY(-1px);
}
.dclc-root .dclc-start:active { transform: translateY(0); filter: brightness(.98); }
.dclc-root .dclc-prechat small { color: #94a3b8; }
