.dd-chat-launcher {
  position: fixed;
  z-index: 10020;
  right: max(1rem, env(safe-area-inset-right));
  bottom: calc(1.25rem + env(safe-area-inset-bottom));
  width: 3.25rem;
  height: 3.25rem;
  min-height: 3.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 0;
  border: 1px solid var(--espresso);
  border-radius: 50%;
  background: var(--espresso);
  color: var(--cream);
  box-shadow: 0 8px 28px rgb(33 21 14 / 25%);
  font: 600 1rem/1.2 "DM Sans", "Noto Sans Sinhala", sans-serif;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.dd-chat-launcher:hover { background: var(--espresso-deep); }
.dd-chat-launcher[hidden] { display: none !important; }
.dd-chat-launcher-icon { width: 1.45rem; height: 1.45rem; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.dd-chat-launcher:focus-visible, .dd-chat-panel button:focus-visible, .dd-chat-panel a:focus-visible, .dd-chat-panel select:focus-visible, .dd-chat-panel textarea:focus-visible {
  outline: 3px solid var(--caramel);
  outline-offset: 2px;
}
.dd-chat-launcher-mark, .dd-chat-brand-mark {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--gold);
  color: var(--espresso);
  font: 600 1rem/1 "Italiana", Georgia, serif;
}
.dd-chat-panel {
  position: fixed;
  z-index: 10019;
  inset: auto max(1rem, env(safe-area-inset-right)) calc(5.25rem + env(safe-area-inset-bottom)) auto;
  width: min(25rem, calc(100vw - 2rem));
  height: min(45rem, calc(100dvh - 10.5rem - env(safe-area-inset-bottom)));
  max-width: calc(100vw - 2rem);
  max-height: calc(100dvh - 8rem - env(safe-area-inset-bottom));
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--caramel);
  border-radius: 1.5rem;
  background: var(--cream);
  color: var(--ink);
  box-shadow: 0 18px 60px rgb(33 21 14 / 22%);
  font-family: "DM Sans", "Noto Sans Sinhala", "Iskoola Pota", sans-serif;
}
.dd-chat-panel::backdrop { background: transparent; }
.dd-chat-panel[open] { display: block; }
.dd-chat-shell {
  width: 100%;
  height: 100%;
  display: grid;
  grid-template-rows: auto auto auto minmax(6rem, 1fr) auto auto auto auto;
  overflow: hidden;
}
.dd-chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  padding: .9rem 1rem .75rem;
  border-bottom: 1px solid var(--line);
  background: var(--cream);
}
.dd-chat-brand { display: flex; align-items: center; gap: .65rem; min-width: 0; }
.dd-chat-brand-mark { flex: 0 0 2.25rem; width: 2.25rem; height: 2.25rem; font-size: 1.2rem; }
.dd-chat-brand h2 { margin: 0; color: var(--espresso); font-size: 1rem; line-height: 1.25; font-weight: 700; }
.dd-chat-brand p { margin: .15rem 0 0; color: #77583e; font-size: .8125rem; line-height: 1.35; }
.dd-chat-close {
  flex: 0 0 2.75rem;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid var(--line);
  border-radius: .75rem;
  background: var(--cream);
  color: var(--espresso);
  font: 400 1.5rem/1 "DM Sans", sans-serif;
  cursor: pointer;
}
.dd-chat-notice {
  margin: .65rem .8rem .25rem;
  padding: .6rem .7rem;
  border-left: 3px solid var(--caramel);
  border-radius: .3rem;
  background: var(--cream);
  color: var(--ink);
  font-size: .8125rem;
  line-height: 1.45;
}
.dd-chat-about { margin: .15rem .85rem .35rem; color: #77583e; font-size: .8rem; line-height: 1.4; }
.dd-chat-about summary { width: fit-content; min-height: 2rem; padding: .25rem .1rem; color: var(--espresso); font-weight: 600; cursor: pointer; text-underline-offset: .15rem; }
.dd-chat-about p { margin: .15rem 0 .35rem; padding: .55rem .65rem; border-left: 2px solid var(--gold); background: var(--cream); }
.dd-chat-transcript {
  min-height: 6rem;
  display: flex;
  flex-direction: column;
  gap: .6rem;
  padding: .75rem .85rem .4rem;
  overflow-y: auto;
  overscroll-behavior: contain;
  scroll-behavior: smooth;
}
.dd-chat-message {
  width: fit-content;
  max-width: 92%;
  padding: .65rem .75rem;
  border-radius: .95rem;
  font-size: .9375rem;
  line-height: 1.5;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}
.dd-chat-message-assistant { align-self: flex-start; border: 1px solid var(--line); border-bottom-left-radius: .25rem; background: var(--cream); color: var(--ink); }
.dd-chat-message-user { align-self: flex-end; border-bottom-right-radius: .25rem; background: var(--espresso); color: var(--cream); }
.dd-chat-message-system { align-self: flex-start; padding: .2rem .35rem; color: #77583e; font-size: .8125rem; }
.dd-chat-actions { max-height: min(17rem, 38dvh); overflow-y: auto; padding: .2rem .8rem .5rem; overscroll-behavior: contain; }
.dd-chat-results { display: grid; gap: .65rem; }
.dd-chat-product {
  display: grid;
  grid-template-columns: 4.5rem minmax(0, 1fr);
  gap: .75rem;
  padding: .65rem;
  border: 1px solid var(--line);
  border-radius: 1.125rem;
  background: var(--cream);
}
.dd-chat-product > img { display: block; width: 4.5rem; height: 5.5rem; border-radius: 1rem; object-fit: cover; background: var(--cream); }
.dd-chat-product-details { min-width: 0; }
.dd-chat-product h4, .dd-chat-bag h4, .dd-chat-size-guide h4 { margin: 0 0 .16rem; color: var(--espresso); font-size: .9375rem; line-height: 1.35; }
.dd-chat-product-meta { margin: 0; color: #77583e; font-size: .8125rem; }
.dd-chat-product-price { margin: .2rem 0; color: var(--espresso); font-weight: 700; font-size: .9375rem; }
.dd-chat-stock-note { margin: .2rem 0 .4rem; color: #77583e; font-size: .8125rem; line-height: 1.4; }
.dd-chat-size-label { display: grid; gap: .25rem; margin: .35rem 0; color: var(--ink); font-size: .8125rem; font-weight: 600; }
.dd-chat-size-label select, .dd-chat-bag-row select {
  width: 100%;
  min-height: 2.75rem;
  padding: .45rem .55rem;
  border: 1px solid var(--caramel);
  border-radius: .5rem;
  background: var(--cream);
  color: var(--ink);
  font: 500 .9375rem/1.3 "DM Sans", "Noto Sans Sinhala", sans-serif;
}
.dd-chat-product-actions, .dd-chat-confirmation { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .45rem; }
.dd-chat-button {
  min-height: 2.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .55rem .75rem;
  border: 1px solid var(--caramel);
  border-radius: .875rem;
  background: var(--cream);
  color: var(--espresso);
  font: 600 .875rem/1.25 "DM Sans", "Noto Sans Sinhala", sans-serif;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}
.dd-chat-button:hover { background: var(--cream); }
.dd-chat-button-primary { border-color: var(--espresso); background: var(--espresso); color: var(--cream); }
.dd-chat-button-primary:hover { background: var(--espresso-deep); }
.dd-chat-button:disabled { cursor: not-allowed; opacity: .55; }
.dd-chat-product-link { display: inline-block; margin-top: .4rem; color: var(--espresso); font-size: .875rem; text-decoration: underline; text-underline-offset: .15rem; }
.dd-chat-confirmation { display: block; padding: .6rem; border: 1px solid var(--gold); border-radius: .65rem; background: var(--cream); }
.dd-chat-confirmation p { margin: 0 0 .4rem; color: var(--ink); font-size: .875rem; line-height: 1.4; }
.dd-chat-error { margin: .4rem 0; color: #861c22; font-size: .875rem; line-height: 1.4; }
.dd-chat-size-guide, .dd-chat-bag, .dd-chat-navigation { padding: .65rem; border: 1px solid var(--line); border-radius: .85rem; background: var(--cream); }
.dd-chat-size-guide p, .dd-chat-navigation p { margin: .2rem 0 .5rem; font-size: .875rem; line-height: 1.45; }
.dd-chat-size-guide ul { margin: .3rem 0 .55rem; padding-left: 1.2rem; font-size: .875rem; line-height: 1.5; }
.dd-chat-bag { display: grid; gap: .7rem; }
.dd-chat-bag-row { padding-bottom: .65rem; border-bottom: 1px solid var(--line); }
.dd-chat-bag-row p { margin: .15rem 0 .4rem; color: #77583e; font-size: .875rem; line-height: 1.4; }
.dd-chat-bag-row select { max-width: 7rem; margin: .2rem .5rem .25rem 0; }
.dd-chat-bag-total { margin: 0; color: var(--espresso); font-size: 1rem; font-weight: 700; }
.dd-chat-checkout { width: 100%; }
.dd-chat-comparison { max-height: 9rem; overflow: auto; margin: 0 .8rem .4rem; padding: .5rem; border: 1px solid var(--line); border-radius: .7rem; background: var(--cream); }
.dd-chat-comparison[hidden] { display: none; }
.dd-chat-comparison h3 { margin: 0 0 .35rem; font-size: .9rem; }
.dd-chat-compare-table { width: 100%; border-collapse: collapse; font-size: .8125rem; }
.dd-chat-compare-table th, .dd-chat-compare-table td { padding: .35rem; border: 1px solid var(--line); text-align: left; vertical-align: top; overflow-wrap: anywhere; }
.dd-chat-compare-table th { background: var(--cream); }
.dd-chat-quick { display: flex; gap: .4rem; padding: .2rem .8rem .55rem; overflow-x: auto; overscroll-behavior-x: contain; }
.dd-chat-quick span { flex: 0 0 auto; align-self: center; color: #77583e; font-size: .8125rem; }
.dd-chat-quick button {
  flex: 0 0 auto;
  min-height: 2.75rem;
  padding: .4rem .6rem;
  border: 1px solid var(--caramel);
  border-radius: 999px;
  background: var(--cream);
  color: var(--espresso);
  font: 500 .8125rem/1.25 "DM Sans", "Noto Sans Sinhala", sans-serif;
  cursor: pointer;
}
.dd-chat-form { display: flex; align-items: flex-end; gap: .5rem; padding: .65rem .8rem; border-top: 1px solid var(--line); background: var(--cream); }
.dd-chat-form textarea {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 2.8rem;
  max-height: 6rem;
  resize: vertical;
  padding: .65rem .7rem;
  border: 1px solid var(--caramel);
  border-radius: .65rem;
  background: var(--cream);
  color: var(--ink);
  font: 400 1rem/1.4 "DM Sans", "Noto Sans Sinhala", "Iskoola Pota", sans-serif;
}
.dd-chat-form > button { min-width: 3.7rem; min-height: 2.8rem; border: 0; border-radius: .65rem; background: var(--espresso); color: var(--cream); font: 600 .9375rem/1 "DM Sans", sans-serif; cursor: pointer; }
.dd-chat-footnote { margin: 0; padding: 0 .8rem .55rem; color: #77583e; background: var(--cream); font-size: .75rem; line-height: 1.4; }
.dd-chat-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
@media (max-width: 40rem) {
  .dd-chat-launcher { right: max(.75rem, env(safe-area-inset-right)); bottom: calc(5.1rem + env(safe-area-inset-bottom)); }
  .dd-chat-launcher[aria-expanded="true"] { visibility: hidden; pointer-events: none; }
  .dd-chat-panel {
    inset: auto 0 calc(3.7rem + env(safe-area-inset-bottom)) 0;
    width: 100vw;
    max-width: 100vw;
    height: calc(100dvh - 3.7rem - env(safe-area-inset-bottom));
    max-height: calc(100dvh - 3.7rem - env(safe-area-inset-bottom));
    border-right: 0;
    border-bottom: 0;
    border-left: 0;
    border-radius: 1rem 1rem 0 0;
  }
  .dd-chat-actions { max-height: min(16rem, 35dvh); }
  .dd-chat-product { grid-template-columns: 3.75rem minmax(0, 1fr); gap: .6rem; }
  .dd-chat-product > img { width: 3.75rem; height: 5rem; }
}
@media (max-height: 42rem) {
  .dd-chat-panel { height: min(33rem, calc(100dvh - 8.2rem - env(safe-area-inset-bottom))); }
  .dd-chat-actions { max-height: min(12rem, 30dvh); }
}
@media (prefers-reduced-motion: reduce) {
  .dd-chat-transcript { scroll-behavior: auto; }
}

/* Use the active Espresso storefront's design tokens and type. */
.dd-chat-launcher { color: var(--gold); border-color: var(--gold); box-shadow: 0 8px 28px rgb(33 21 14 / 28%); }
.dd-chat-launcher-icon { stroke-width: 1.8; }
.dd-chat-panel { border-color: var(--line); border-radius: 1.5rem; box-shadow: 0 18px 60px rgb(33 21 14 / 22%); }
.dd-chat-header { border-bottom: 2px solid var(--gold); background: var(--cream); }
.dd-chat-brand h2 { font-family: "Italiana", Georgia, serif; font-size: 1.2rem; font-weight: 400; letter-spacing: .01em; }
.dd-chat-brand p, .dd-chat-about, .dd-chat-notice, .dd-chat-footnote { color: #77583e; }
.dd-chat-close:hover, .dd-chat-quick button:hover { border-color: var(--caramel); background: var(--cream); }
.dd-chat-message-user { border: 1px solid var(--gold); }
.dd-chat-product h4, .dd-chat-bag h4, .dd-chat-size-guide h4 { font-family: "Italiana", Georgia, serif; font-size: 1.08rem; }
.dd-chat-button-primary, .dd-chat-form > button { color: var(--cream); }
.dd-chat-quick button { border-radius: .875rem; }
.dd-chat-launcher:focus-visible, .dd-chat-panel button:focus-visible, .dd-chat-panel a:focus-visible, .dd-chat-panel select:focus-visible, .dd-chat-panel textarea:focus-visible { outline-color: var(--espresso); box-shadow: 0 0 0 2px var(--cream); }
@media (max-width: 40rem) { .dd-chat-panel { border-radius: 1.375rem 1.375rem 0 0; } }
.dd-chat-invitation {
  position: fixed;
  z-index: 10021;
  right: max(1rem, env(safe-area-inset-right));
  bottom: calc(5rem + env(safe-area-inset-bottom));
  display: flex;
  align-items: center;
  gap: .1rem;
  padding: 0 .1rem;
  border: 1px solid rgb(180 139 97 / 48%);
  border-radius: 1.25rem;
  background: rgba(250, 234, 214, .94);
  box-shadow: 0 4px 14px rgb(33 21 14 / 14%);
}
.dd-chat-invitation[hidden] { display: none !important; }
@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .dd-chat-invitation {
    background: rgba(250, 234, 214, .78);
    backdrop-filter: blur(12px) saturate(1.08);
    -webkit-backdrop-filter: blur(12px) saturate(1.08);
  }
}
.dd-chat-invitation-button {
  min-height: 2.75rem;
  padding: 0 .45rem;
  border: 0;
  border-radius: .875rem;
  background: transparent;
  color: var(--espresso);
  font: 600 .875rem/1.25 "DM Sans", "Noto Sans Sinhala", sans-serif;
  white-space: nowrap;
  cursor: pointer;
}
.dd-chat-invitation-button:hover { background: #f8e5cc; }
.dd-chat-invitation-dismiss {
  width: 2.75rem;
  min-width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #77583e;
  font: 400 1.25rem/1 "DM Sans", sans-serif;
  cursor: pointer;
}
.dd-chat-invitation-dismiss:hover { background: #f8e5cc; color: var(--espresso); }
.dd-chat-invitation button:focus-visible { position: relative; z-index: 1; outline: 3px solid var(--espresso); outline-offset: 2px; box-shadow: 0 0 0 2px var(--cream); }
@media (max-width: 40rem) {
  .dd-chat-invitation { right: max(.75rem, env(safe-area-inset-right)); bottom: calc(8.85rem + env(safe-area-inset-bottom)); }
}
/* One message scroll area; all cards and confirmations stay in normal flow. */
.dd-chat-panel, .dd-chat-panel * { box-sizing: border-box; min-width: 0; }
.dd-chat-panel { width: min(390px, calc(100vw - 32px)); height: min(650px, calc(var(--chat-visible-height, 100dvh) - 110px)); max-height: none; }
.dd-chat-shell { display: grid; grid-template-rows: auto minmax(0, 1fr) auto auto; min-height: 0; }
.dd-chat-scroll { min-height: 0; overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain; scrollbar-width: thin; }
.dd-chat-transcript { min-height: 0; overflow: visible; padding: 12px 14px 6px; gap: 10px; }
.dd-chat-transcript > * { flex-shrink: 0; }
.dd-chat-message { max-width: 92%; font-size: 14px; line-height: 1.5; padding: 10px 12px; }
.dd-chat-header { padding: 12px 14px; border-bottom: 1px solid var(--line); }
.dd-chat-brand h2 { font-family: 'DM Sans', sans-serif; font-size: 17px; font-weight: 600; line-height: 1.3; }
.dd-chat-brand p { font-size: 11px; margin-top: 3px; }
.dd-chat-brand-mark { width: 34px; height: 34px; flex-basis: 34px; font-size: 21px; }
.dd-chat-about { margin: 8px 14px 0; font-size: 11px; line-height: 1.5; }
.dd-chat-about summary { min-height: 32px; font-size: 11px; font-weight: 400; color: #77583e; }
.dd-chat-about p { margin: 4px 0; border: 0; padding: 0; }
.dd-chat-notice { display: block; margin: 4px 0 10px; border: 0; padding: 0; font-size: 11px; }
.dd-chat-actions, .dd-chat-comparison { max-height: none; overflow: visible; }
.dd-chat-actions { padding: 4px 14px 8px; }
.dd-chat-comparison { margin: 4px 14px; }
.dd-chat-product { grid-template-columns: 55px minmax(0, 1fr); gap: 10px; border-radius: 14px; padding: 10px; }
.dd-chat-product > img { width: 55px; height: 75px; border-radius: 8px; }
.dd-chat-product h4 { font-size: 14px; line-height: 1.35; overflow-wrap: anywhere; }
.dd-chat-product-meta, .dd-chat-stock-note { font-size: 11px; line-height: 1.5; }
.dd-chat-product-actions { gap: 5px; }
.dd-chat-button { max-width: 100%; font-size: 12px; min-height: 44px; padding: 8px 10px; overflow-wrap: anywhere; }
.dd-chat-quick { overflow: visible; flex-wrap: wrap; padding: 6px 14px 12px; }
.dd-chat-quick button { flex: 0 1 auto; font-size: 12px; min-height: 36px; }
.dd-chat-form { padding: 10px 12px; gap: 8px; }
.dd-chat-form textarea { resize: none; height: 46px; min-height: 46px; max-height: 96px; overflow-x: hidden; overflow-y: hidden; font-size: 16px; padding: 11px; }
.dd-chat-footnote { font-size: 10px; padding: 0 14px max(8px, env(safe-area-inset-bottom)); }
.dd-chat-compare-table { table-layout: fixed; }
@media(max-width:640px) {
 .dd-chat-panel { top: calc(var(--chat-visible-top, 0px) + 8px); right: 8px; left: 8px; bottom: auto; width: calc(100vw - 16px); max-width: calc(100vw - 16px); height: calc(var(--chat-visible-height, 100dvh) - 16px); border: 1px solid var(--line); border-radius: 20px; }
}

/* Compact Darling Desk conversation. */
.dd-chat-panel { --chat-panel-height:240px; width:min(340px,calc(100vw - 32px)); height:min(var(--chat-panel-height),calc(var(--chat-visible-height,100dvh) - 100px)); max-height:none; border-radius:18px; }
.dd-chat-panel.dd-chat-engaged { --chat-panel-height:400px; }
.dd-chat-shell { grid-template-rows:auto minmax(0,1fr) auto auto; }
.dd-chat-header { padding:6px 10px; min-height:54px; background:var(--espresso); color:var(--cream); border:0; }
.dd-chat-brand { gap:8px; }
.dd-chat-brand-mark { width:28px;height:28px;flex-basis:28px;font-size:17px; }
.dd-chat-brand h2 { color:var(--cream);font-size:15px;line-height:1.35; }
.dd-chat-brand p { color:#e3cdb4;font-size:12px;line-height:1.3;margin-top:1px; }
.dd-chat-close { width:44px;height:44px;flex-basis:44px;border:0;background:transparent;color:var(--cream);font-size:24px;border-radius:50%; }
.dd-chat-close:hover { background:#ffffff14; }
.dd-chat-scroll { background:#f4e7d6; padding:0; }
.dd-chat-transcript { padding:12px 10px 4px;gap:8px; }
.dd-chat-message { font-size:14px;line-height:1.5;padding:8px 10px;border-radius:12px;max-width:90%;overflow-wrap:anywhere; }
.dd-chat-message-assistant { background:#fffaf2; border-radius:4px 12px 12px; box-shadow:0 1px 2px #2b1b1110; }
.dd-chat-message-user { background:#dfc29e;color:var(--espresso);border-radius:12px 4px 12px 12px; }
.dd-chat-about,.dd-chat-quick,.dd-chat-invitation { display:none!important; }
.dd-chat-actions { padding:0 10px 8px; }
.dd-chat-actions:empty { padding:0; }
.dd-chat-product { grid-template-columns:44px minmax(0,1fr);padding:8px;gap:8px;border-radius:12px; }
.dd-chat-product>img { width:44px;height:60px;border-radius:6px; }
.dd-chat-product h4 { font-size:13px;line-height:1.4; }
.dd-chat-product-meta,.dd-chat-stock-note { font-size:12px; }
.dd-chat-product-meta { display:none; }
.dd-chat-product-price { margin:2px 0;font-size:13px; }
.dd-chat-options { margin-top:4px; }
.dd-chat-options summary { cursor:pointer;font-size:13px;min-height:44px;display:flex;align-items:center;color:var(--espresso); }
.dd-chat-product-link { font-size:13px;min-height:44px;display:inline-flex;align-items:center;margin-top:0; }
.dd-chat-button { min-height:44px;font-size:13px;padding:8px; }
.dd-chat-form { background:var(--cream);padding:8px;gap:6px;align-items:end;border-top:1px solid var(--line); }
.dd-chat-form textarea { border-radius:22px;min-height:44px;height:44px;max-height:88px;padding:10px 12px;font-size:16px;background:#fffaf2; }
.dd-chat-form button[type=submit] { min-height:44px;height:44px;min-width:52px;padding:0 10px;border-radius:22px;font-size:13px; }
.dd-chat-footnote { font-size:11px;line-height:1.3;padding:0 10px max(6px,env(safe-area-inset-bottom));margin:0;background:var(--cream); }
.dd-chat-launcher { width:48px;height:48px;min-height:48px; }
@media(max-width:640px) {
 .dd-chat-panel { top:max(calc(var(--chat-visible-top,0px) + 8px),calc(var(--chat-visible-top,0px) + var(--chat-visible-height,100dvh) - min(var(--chat-panel-height),calc(var(--chat-visible-height,100dvh) - 64px)) - 8px));right:8px;left:8px;bottom:auto;width:calc(100vw - 16px);height:min(var(--chat-panel-height),calc(var(--chat-visible-height,100dvh) - 64px));max-width:calc(100vw - 16px);border-radius:16px; }
}


.dd-chat-panel .dd-chat-brand h2{font-family:DM Sans,sans-serif}
.dd-chat-panel button,.dd-chat-panel select{font-family:inherit}
.dd-chat-panel .dd-chat-product h4{font-family:inherit;font-size:14px}

/* Keep page scrolling available alongside the single conversation scroll area. */
.dd-chat-scroll { overscroll-behavior:contain;touch-action:pan-y;scroll-behavior:auto;overflow-anchor:none; }
.dd-chat-panel { touch-action:pan-y; }
.dd-chat-typing { display:flex;align-items:center;gap:4px;align-self:flex-start;min-height:32px;padding:10px 12px;border-radius:4px 12px 12px;background:#fffaf2;border:1px solid var(--line); }
.dd-chat-typing-dot { width:6px;height:6px;border-radius:50%;background:#77583e;animation:dd-chat-dot 1s ease-in-out infinite; }
.dd-chat-typing-dot:nth-of-type(3) { animation-delay:.15s; }
.dd-chat-typing-dot:nth-of-type(4) { animation-delay:.3s; }
.dd-chat-photo-message { width:fit-content;max-width:min(78%,240px);padding:4px;overflow:hidden; }
.dd-chat-photo-link { display:block;line-height:0;border-radius:9px;overflow:hidden; }
.dd-chat-photo-link img { display:block;width:100%;max-height:280px;object-fit:contain;border-radius:9px; }
@keyframes dd-chat-dot { 0%,60%,100% { opacity:.45;transform:translateY(0); } 30% { opacity:1;transform:translateY(-3px); } }
.dd-chat-form button:disabled { opacity:.55;cursor:wait; }
@media(prefers-reduced-motion:reduce) { .dd-chat-typing-dot { animation:none; } }

/* The chat is nonmodal, so keep the storefront page scrollable while it is open. */
body:has(#dd-chat-panel[open]):not(:has(dialog[open]:not(#dd-chat-panel))) { overflow-y:auto!important; }

/* Suggested starting points stay within the conversation. */
.dd-chat-starters { display:flex;flex-wrap:wrap;gap:6px;padding:4px 10px 10px; }
.dd-chat-starters:empty { display:none; }
.dd-chat-starters .dd-chat-button { border-radius:999px;background:#fffaf2;min-height:40px;padding:8px 11px;font-size:12px; }
.dd-chat-starters .dd-chat-button:hover { border-color:var(--espresso); }
.dd-chat-error-box { padding:10px 12px;border:1px solid #ad716b;border-radius:12px;background:#fffaf2; }
.dd-chat-error-box .dd-chat-error { margin:0 0 8px; }
.dd-chat-form textarea:focus { outline:2px solid var(--caramel);outline-offset:1px; }
.dd-chat-scroll { scroll-padding-block:12px; }

.dd-chat-feedback { display:flex; flex-wrap:wrap; align-items:center; gap:.4rem; padding:.25rem .25rem .8rem; font-size:.72rem; color:var(--espresso,#38271e); }
.dd-chat-feedback .dd-chat-button { width:auto; padding:.35rem .65rem; min-height:36px; font-size:.72rem; }

@media(max-width:640px) {
 .dd-chat-panel {
  --chat-panel-height:400px;
  --chat-safe-height:min(var(--chat-visible-height,100svh),100svh);
  height:min(var(--chat-panel-height),calc(var(--chat-safe-height) - 16px));
  top:calc(var(--chat-visible-top,0px) + var(--chat-safe-height) - min(var(--chat-panel-height),calc(var(--chat-safe-height) - 16px)) - 8px);
 }
}
