/* Durva Care Assistant ------------------------------------------------------
   Self-contained, dependency-free widget styles. Every selector is namespaced
   so the assistant can be included on any public page without affecting it. */

.dcb {
  --dcb-navy: #15334d;
  --dcb-navy-deep: #091b2d;
  --dcb-teal: #0f766e;
  --dcb-teal-bright: #65d8c4;
  --dcb-mint: #e6f6f2;
  --dcb-paper: #f4f8f7;
  --dcb-white: #ffffff;
  --dcb-ink: #172230;
  --dcb-muted: #64717c;
  --dcb-line: #dfe7e5;
  --dcb-danger: #a83a45;
  --dcb-radius: 24px;
  --dcb-shadow: 0 32px 90px rgba(8, 24, 38, 0.28), 0 10px 30px rgba(8, 24, 38, 0.12);
  position: fixed;
  right: max(18px, env(safe-area-inset-right));
  bottom: max(18px, env(safe-area-inset-bottom));
  z-index: 2147483000;
  color: var(--dcb-ink);
  font-family: var(--font-sans, "Segoe UI", Arial, sans-serif);
  font-size: 15px;
  line-height: 1.45;
  text-align: left;
  -webkit-font-smoothing: antialiased;
}

.dcb *,
.dcb *::before,
.dcb *::after {
  box-sizing: border-box;
}

.dcb button,
.dcb input,
.dcb select {
  color: inherit;
  font: inherit;
}

.dcb button {
  border: 0;
  cursor: pointer;
}

.dcb button:disabled,
.dcb input:disabled,
.dcb select:disabled {
  cursor: not-allowed;
  opacity: 0.64;
}

.dcb [hidden] {
  display: none !important;
}

.dcb__sr {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.dcb :is(button, input, select):focus-visible {
  outline: 3px solid rgba(15, 118, 110, 0.28);
  outline-offset: 2px;
}

/* Launcher */
.dcb__launcher {
  position: relative;
  display: flex;
  min-width: 196px;
  min-height: 62px;
  align-items: center;
  gap: 11px;
  padding: 7px 18px 7px 7px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background:
    radial-gradient(circle at 22% 0%, rgba(117, 213, 195, 0.24), transparent 36%),
    linear-gradient(135deg, var(--dcb-navy), var(--dcb-navy-deep));
  box-shadow: 0 16px 38px rgba(9, 29, 46, 0.27), inset 0 1px rgba(255, 255, 255, 0.12);
  color: var(--dcb-white);
  isolation: isolate;
  transition: transform 180ms ease, box-shadow 180ms ease, opacity 180ms ease;
}

/* Keep launcher copy readable when the form-control reset above inherits the
   widget's default ink colour onto buttons. */
.dcb button.dcb__launcher {
  color: var(--dcb-white);
}

.dcb__launcher:hover {
  box-shadow: 0 19px 45px rgba(9, 29, 46, 0.34), inset 0 1px rgba(255, 255, 255, 0.14);
  transform: translateY(-2px);
}

.dcb__launcher:active {
  transform: translateY(0) scale(0.98);
}

.dcb--open .dcb__launcher {
  pointer-events: none;
  opacity: 0;
  transform: translateY(10px) scale(0.94);
}

.dcb__launcher-icon {
  display: grid;
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(145deg, #ffffff, #e3f5f1);
  box-shadow: inset 0 0 0 1px rgba(15, 90, 76, 0.08), 0 4px 12px rgba(0, 0, 0, 0.16);
  color: var(--dcb-teal);
}

.dcb__launcher-icon svg {
  width: 27px;
  height: 27px;
}

.dcb__launcher-copy {
  display: grid;
  min-width: 0;
  text-align: left;
}

.dcb__launcher-copy strong {
  color: var(--dcb-white);
  font-size: 15px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0.01em;
}

.dcb__launcher-copy small {
  margin-top: 2px;
  color: #dbe8ed;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: 0.02em;
}

.dcb__unread {
  position: absolute;
  top: -3px;
  right: 7px;
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border: 2px solid #ffffff;
  border-radius: 50%;
  background: #b4233a;
  box-shadow: 0 4px 12px rgba(127, 21, 35, 0.34);
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
  animation: dcb-unread 2s ease-in-out infinite;
}

/* Window */
.dcb__panel {
  position: absolute;
  right: 0;
  bottom: 0;
  display: grid;
  width: min(410px, calc(100vw - 28px));
  height: min(690px, calc(100dvh - 28px));
  min-height: 480px;
  grid-template-rows: auto auto minmax(0, 1fr) auto auto auto auto;
  overflow: hidden;
  border: 1px solid rgba(15, 118, 110, 0.2);
  border-radius: var(--dcb-radius);
  background: var(--dcb-paper);
  box-shadow: var(--dcb-shadow);
  opacity: 0;
  transform: translateY(18px) scale(0.96);
  transform-origin: right bottom;
}

.dcb--opening .dcb__panel,
.dcb--open .dcb__panel {
  animation: dcb-panel-in 240ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.dcb__header {
  position: relative;
  display: flex;
  min-height: 88px;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 18px 16px 16px 19px;
  overflow: hidden;
  background:
    radial-gradient(circle at 12% -34%, rgba(101, 216, 196, 0.48), transparent 46%),
    linear-gradient(126deg, #17465b 0%, #12344d 50%, #0a1d30 100%);
  color: #ffffff;
}

.dcb__header { grid-row: 1; }
.dcb__connection { grid-row: 2; }
.dcb__messages { grid-row: 3; }
.dcb__quick { grid-row: 4; }
.dcb__booking { grid-row: 5; }
.dcb__composer { grid-row: 6; }
.dcb__footer-note { grid-row: 7; }

.dcb__header::after {
  position: absolute;
  right: -38px;
  bottom: -69px;
  width: 150px;
  height: 150px;
  border: 1px solid rgba(117, 213, 195, 0.13);
  border-radius: 50%;
  box-shadow: 0 0 0 22px rgba(117, 213, 195, 0.035), 0 0 0 46px rgba(117, 213, 195, 0.025);
  content: "";
  pointer-events: none;
}

.dcb__header::before {
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, #65d8c4, #d8fff7 46%, rgba(216, 255, 247, 0));
  content: "";
  pointer-events: none;
}

.dcb__identity {
  position: relative;
  z-index: 1;
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 11px;
}

.dcb__avatar {
  position: relative;
  display: grid;
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 9px 22px rgba(0, 0, 0, 0.2), inset 0 0 0 1px rgba(15, 118, 110, 0.08);
  color: #7ae2cf;
}

.dcb__avatar svg {
  width: 29px;
  height: 29px;
}

.dcb__avatar > i {
  position: absolute;
  right: -2px;
  bottom: -2px;
  width: 12px;
  height: 12px;
  border: 2px solid var(--dcb-navy);
  border-radius: 50%;
  background: #51c98b;
}

.dcb__identity > span:last-child {
  display: grid;
  min-width: 0;
}

.dcb__identity strong {
  overflow: hidden;
  font-size: 15.5px;
  font-weight: 750;
  letter-spacing: -0.01em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dcb__identity small {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 3px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 10.75px;
  letter-spacing: 0.015em;
}

.dcb__identity small i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #5bd395;
  box-shadow: 0 0 0 4px rgba(91, 211, 149, 0.12);
}

.dcb__window-actions {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 7px;
}

.dcb__window-actions button {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.11);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.08);
  color: #ffffff;
  transition: background-color 150ms ease, border-color 150ms ease, color 150ms ease, transform 150ms ease;
}

.dcb__window-actions button.dcb__language-switch {
  width: auto;
  min-width: 42px;
  padding: 0 8px;
  border-color: rgba(132, 231, 211, 0.42);
  background: rgba(85, 199, 179, 0.14);
  color: #e9fffa;
  font-size: 10.5px;
  font-weight: 850;
  letter-spacing: 0.025em;
}

.dcb__window-actions button.dcb__language-switch:hover:not(:disabled) {
  border-color: rgba(197, 255, 243, 0.72);
  background: rgba(99, 218, 197, 0.25);
}

.dcb__window-actions button:hover {
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  transform: translateY(-1px);
}

.dcb__window-actions button:last-child {
  border-color: rgba(255, 221, 225, 0.38);
  background: rgba(188, 61, 77, 0.24);
}

.dcb__window-actions button:last-child:hover {
  border-color: rgba(255, 229, 232, 0.75);
  background: #a93648;
}

.dcb__window-actions button:focus-visible {
  outline-color: rgba(255, 255, 255, 0.9);
}

.dcb__window-actions svg {
  width: 18px;
  height: 18px;
}

/* Connection status */
.dcb__connection {
  display: flex;
  min-height: 36px;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 7px 14px;
  border-bottom: 1px solid #f1d9b7;
  background: #fff5e6;
  color: #76511d;
  font-size: 11px;
}

.dcb__connection[data-state="error"] {
  border-bottom-color: #f0ced2;
  background: #fff0f2;
  color: #842f3a;
}

.dcb__connection button {
  flex: 0 0 auto;
  padding: 4px 9px;
  border: 1px solid currentColor;
  border-radius: 999px;
  background: transparent;
  color: inherit;
  font-size: 10px;
  font-weight: 750;
}

/* Conversation */
.dcb__messages {
  min-height: 0;
  padding: 17px 14px 12px;
  overflow: hidden auto;
  overscroll-behavior: contain;
  scrollbar-color: rgba(20, 40, 61, 0.2) transparent;
  scrollbar-width: thin;
  background:
    radial-gradient(circle at 0 0, rgba(15, 118, 110, 0.08), transparent 32%),
    linear-gradient(180deg, #f9fbfb, #f1f6f5);
}

.dcb__messages::-webkit-scrollbar {
  width: 5px;
}

.dcb__messages::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(20, 40, 61, 0.2);
}

.dcb__day {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  color: #8a949c;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.dcb__day::before,
.dcb__day::after {
  height: 1px;
  flex: 1;
  background: #e3e9e7;
  content: "";
}

.dcb__message {
  display: flex;
  align-items: flex-end;
  gap: 7px;
  max-width: 92%;
  margin: 0 0 12px;
  animation: dcb-message-in 180ms ease both;
}

.dcb__message--user {
  margin-left: auto;
  justify-content: flex-end;
}

.dcb__message-avatar {
  display: grid;
  width: 25px;
  height: 25px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 8px;
  background: linear-gradient(145deg, #17465b, #0f766e);
  box-shadow: 0 4px 10px rgba(12, 27, 43, 0.16);
  color: #ffffff;
  font-size: 10px;
  font-weight: 800;
}

.dcb__bubble {
  min-width: 50px;
  padding: 11px 13px 9px;
  border: 1px solid #dce7e4;
  border-radius: 15px 15px 15px 5px;
  background: #ffffff;
  box-shadow: 0 7px 20px rgba(20, 40, 61, 0.065);
  color: #283944;
  overflow-wrap: anywhere;
}

.dcb__message--user .dcb__bubble {
  border-color: transparent;
  border-radius: 15px 15px 5px;
  background: linear-gradient(135deg, #197f6e, #126758);
  box-shadow: 0 7px 18px rgba(15, 90, 76, 0.18);
  color: #ffffff;
}

.dcb__bubble p {
  margin: 0;
  font-size: 13px;
  line-height: 1.56;
  white-space: pre-wrap;
}

.dcb__bubble p + p {
  margin-top: 5px;
}

.dcb__bubble time {
  display: block;
  margin-top: 5px;
  color: #96a09f;
  font-size: 8.5px;
  text-align: right;
}

.dcb__message--user .dcb__bubble time {
  color: rgba(255, 255, 255, 0.6);
}

.dcb__message-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 9px;
}

.dcb__message-links :is(a, button) {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  justify-content: center;
  padding: 5px 10px;
  border: 1px solid rgba(15, 118, 110, 0.28);
  border-radius: 999px;
  background: var(--dcb-mint);
  color: #0b5f58;
  font-size: 11px;
  font-weight: 750;
  text-decoration: none;
}

.dcb__message-links :is(a, button):hover {
  border-color: var(--dcb-teal);
  background: #dff1ec;
}

.dcb__message--language {
  max-width: 96%;
  align-items: flex-start;
}

.dcb__message--language .dcb__bubble {
  width: min(100%, 310px);
  padding: 13px;
  border-color: #bcded7;
  background:
    radial-gradient(circle at 100% 0, rgba(92, 205, 184, 0.16), transparent 42%),
    linear-gradient(145deg, #ffffff, #f1faf7);
  box-shadow: 0 10px 24px rgba(20, 82, 75, 0.1);
}

.dcb__message--language .dcb__bubble > p:first-child {
  color: #173d49;
  font-weight: 800;
}

.dcb__message--language .dcb__bubble > p:nth-child(2) {
  color: #62747a;
  font-size: 11.5px;
}

.dcb__message--language .dcb__message-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 11px;
}

.dcb__message-links .dcb__language-choice {
  min-height: 38px;
  padding: 7px 12px;
  border-color: #a9d6cd;
  border-radius: 11px;
  background: #ffffff;
  box-shadow: 0 4px 12px rgba(15, 90, 76, 0.07);
  color: #115e56;
  font-size: 12px;
}

.dcb__message-links .dcb__language-choice:hover:not(:disabled) {
  border-color: #1a8c7b;
  background: #e6f6f2;
  transform: translateY(-1px);
}

.dcb__message-links .dcb__language-choice.is-selected,
.dcb__message-links .dcb__language-choice.is-selected:disabled {
  border-color: #116e62;
  background: linear-gradient(135deg, #197f70, #11665b);
  box-shadow: 0 6px 14px rgba(15, 90, 76, 0.17);
  color: #ffffff;
  opacity: 1;
}

.dcb__read-more-toggle {
  display: flex;
  width: 100%;
  min-height: 38px;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 11px;
  padding: 7px 8px 7px 11px;
  border: 1px solid #c8dfda;
  border-radius: 11px;
  background: linear-gradient(145deg, #f4faf8, #eaf5f2);
  color: #155f57;
  font-size: 11.5px;
  font-weight: 800;
  text-align: left;
  transition: border-color 150ms ease, background-color 150ms ease, box-shadow 150ms ease, transform 150ms ease;
}

.dcb__read-more-toggle:hover {
  border-color: #89c4b8;
  background: #e5f4f0;
  box-shadow: 0 5px 13px rgba(15, 90, 76, 0.09);
  transform: translateY(-1px);
}

.dcb__read-more-toggle[aria-expanded="true"] {
  border-color: #8bc7bb;
  border-radius: 11px 11px 7px 7px;
  background: #e6f5f1;
}

.dcb__read-more-icon {
  display: grid;
  width: 23px;
  height: 23px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 8px;
  background: #176f63;
  color: #ffffff;
  font-size: 16px;
  font-weight: 500;
  line-height: 1;
}

.dcb__read-more-panel {
  max-height: min(430px, 52dvh);
  margin-top: 6px;
  padding: 11px 11px 5px;
  overflow-y: auto;
  border: 1px solid #d5e6e2;
  border-left: 3px solid #3ba994;
  border-radius: 8px 11px 11px 8px;
  background: #f9fcfb;
  color: #34494f;
  scrollbar-color: rgba(23, 111, 99, 0.3) transparent;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
  animation: dcb-details-in 170ms ease both;
}

.dcb__read-more-panel::-webkit-scrollbar {
  width: 4px;
}

.dcb__read-more-panel::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(23, 111, 99, 0.3);
}

.dcb__read-more-panel:focus-visible {
  outline: 3px solid rgba(15, 118, 110, 0.25);
  outline-offset: 2px;
}

.dcb__read-more-title {
  margin: 0 0 9px;
  color: #173d49;
  font-size: 13px;
  font-weight: 850;
  line-height: 1.4;
}

.dcb__read-more-section {
  padding: 0 0 7px;
}

.dcb__read-more-section + .dcb__read-more-section {
  padding-top: 7px;
  border-top: 1px solid #dfebe8;
}

.dcb__read-more-section:last-child {
  padding-bottom: 3px;
}

.dcb__read-more-section h4 {
  margin: 0 0 5px;
  color: #175d57;
  font-size: 12.5px;
  font-weight: 850;
  line-height: 1.4;
}

.dcb__read-more-panel .dcb__read-more-section p {
  margin: 0;
  color: #465b61;
  font-size: 12.25px;
  line-height: 1.55;
}

.dcb__read-more-panel .dcb__read-more-section p + p {
  margin-top: 5px;
}

.dcb__read-more-section ul {
  display: grid;
  gap: 5px;
  margin: 5px 0 0;
  padding: 0;
  list-style: none;
}

.dcb__read-more-section li {
  position: relative;
  padding-left: 14px;
  color: #465b61;
  font-size: 12.25px;
  line-height: 1.5;
}

.dcb__read-more-section li::before {
  position: absolute;
  top: 0.58em;
  left: 1px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #31a08c;
  content: "";
}

.dcb__message--typing .dcb__bubble {
  display: flex;
  min-height: 36px;
  align-items: center;
  gap: 4px;
  padding: 10px 13px;
}

.dcb__message--typing .dcb__bubble i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #73817f;
  animation: dcb-typing 1.05s ease-in-out infinite;
}

.dcb__message--typing .dcb__bubble i:nth-child(2) {
  animation-delay: 130ms;
}

.dcb__message--typing .dcb__bubble i:nth-child(3) {
  animation-delay: 260ms;
}

/* Quick actions */
.dcb__quick {
  display: flex;
  gap: 7px;
  padding: 10px 13px 11px;
  overflow-x: auto;
  border-top: 1px solid #e6ecea;
  background: rgba(248, 251, 250, 0.97);
  scroll-snap-type: x proximity;
  scrollbar-width: none;
}

.dcb__quick::-webkit-scrollbar {
  display: none;
}

.dcb__quick button {
  display: inline-flex;
  min-height: 34px;
  flex: 0 0 auto;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  border: 1px solid #cfe1dd;
  border-radius: 999px;
  background: #ffffff;
  box-shadow: 0 3px 11px rgba(20, 40, 61, 0.055);
  color: #2f4a49;
  font-size: 10.75px;
  font-weight: 700;
  white-space: nowrap;
  scroll-snap-align: start;
  transition: border-color 150ms ease, background-color 150ms ease, color 150ms ease, transform 150ms ease;
}

.dcb__quick button:hover {
  border-color: rgba(22, 119, 103, 0.32);
  background: var(--dcb-mint);
  color: #105e51;
  transform: translateY(-1px);
}

.dcb__quick button > span {
  display: grid;
  width: 17px;
  height: 17px;
  place-items: center;
  border-radius: 50%;
  background: #edf4f2;
  color: var(--dcb-teal);
  font-size: 10px;
  line-height: 1;
}

.dcb__quick button[data-chat-action="treatments"] {
  border-color: #b9ddd5;
  background: #e9f7f3;
  color: #0c6259;
}

.dcb__quick button[data-chat-action="book"] {
  border-color: var(--dcb-navy);
  background: var(--dcb-navy);
  color: #ffffff;
}

.dcb__quick button[data-chat-action="book"] > span {
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
}

.dcb__quick button[data-chat-action="emergency"] {
  border-color: #efcbd1;
  background: #fff2f4;
  color: #8d2e3d;
}

.dcb__quick button[data-chat-action="emergency"] > span {
  background: #f9dfe3;
  color: #9b3343;
}

/* Appointment form */
.dcb__booking {
  max-height: 397px;
  padding: 0 13px 12px;
  overflow-y: auto;
  border-top: 1px solid #e6ecea;
  background: #ffffff;
}

.dcb-book {
  margin-top: 10px;
  padding: 13px;
  border: 1px solid #dce7e4;
  border-radius: 17px;
  background: linear-gradient(145deg, #ffffff, #f5faf8);
  box-shadow: 0 10px 26px rgba(20, 40, 61, 0.08);
}

.dcb-book__head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
}

.dcb-book__head > span {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 12px;
  background: var(--dcb-navy);
  color: rgba(255, 255, 255, 0.62);
  font-size: 9px;
}

.dcb-book__head > span b {
  margin-right: -8px;
  color: #ffffff;
  font-size: 16px;
}

.dcb-book__head > div {
  display: grid;
  min-width: 0;
}

.dcb-book__head strong {
  font-size: 12px;
  font-weight: 800;
}

.dcb-book__head small {
  margin-top: 1px;
  color: var(--dcb-muted);
  font-size: 9.5px;
}

.dcb-book__head button {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: #eef3f2;
  color: #65716f;
  font-size: 19px;
  line-height: 1;
}

.dcb-book__progress {
  height: 3px;
  margin: 11px 0 13px;
  overflow: hidden;
  border-radius: 99px;
  background: #e5ecea;
}

.dcb-book__progress i {
  display: block;
  width: 50%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--dcb-teal), #4dbda9);
  transition: width 220ms ease;
}

.dcb-book__error {
  margin: 0 0 10px;
  padding: 7px 9px;
  border: 1px solid #efd0d4;
  border-radius: 9px;
  background: #fff2f3;
  color: var(--dcb-danger);
  font-size: 10px;
  line-height: 1.45;
}

.dcb-book fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.dcb-book label {
  display: grid;
  gap: 5px;
  margin-bottom: 9px;
}

.dcb-book label > span {
  color: #53606b;
  font-size: 9.5px;
  font-weight: 750;
  letter-spacing: 0.015em;
}

.dcb-book label > span b {
  color: #b13b47;
}

.dcb-book label > span small {
  color: #899390;
  font-size: inherit;
  font-weight: 500;
}

.dcb-book :is(input, select) {
  width: 100%;
  height: 39px;
  padding: 8px 10px;
  border: 1px solid #d9e3e0;
  border-radius: 10px;
  outline: 0;
  background: #ffffff;
  box-shadow: inset 0 1px 2px rgba(20, 40, 61, 0.025);
  color: #24313b;
  font-size: 11px;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}

.dcb-book select {
  padding-right: 28px;
}

.dcb-book :is(input, select):focus {
  border-color: rgba(22, 119, 103, 0.72);
  box-shadow: 0 0 0 3px rgba(22, 119, 103, 0.1);
}

.dcb-book :is(input, select)[aria-invalid="true"] {
  border-color: #c54b58;
  background: #fffafb;
}

.dcb-book__primary,
.dcb-book__actions button {
  min-height: 39px;
  padding: 8px 13px;
  border-radius: 10px;
  font-size: 10.5px;
  font-weight: 800;
}

.dcb-book__primary {
  width: 100%;
  background: linear-gradient(135deg, #197c6b, #115f52);
  box-shadow: 0 7px 16px rgba(15, 90, 76, 0.17);
  color: #ffffff;
}

.dcb-book__primary:hover {
  background: linear-gradient(135deg, #126e5f, #0d5549);
}

.dcb-book__actions {
  display: grid;
  grid-template-columns: 0.38fr 1fr;
  gap: 7px;
  margin-top: 2px;
}

.dcb-book__actions > button:first-child {
  border: 1px solid #d9e3e0;
  background: #ffffff;
  color: #52606a;
}

/* Composer */
.dcb__composer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  padding: 10px 12px 9px;
  border-top: 1px solid #e5ebe9;
  background: #ffffff;
}

.dcb__composer input {
  width: 100%;
  height: 43px;
  min-width: 0;
  padding: 9px 13px;
  border: 1px solid #cfdfdc;
  border-radius: 13px;
  outline: 0;
  background: #f4f8f7;
  color: #24313b;
  font-size: 12px;
  transition: border-color 150ms ease, box-shadow 150ms ease, background-color 150ms ease;
}

.dcb__composer input::placeholder {
  color: #8c969b;
}

.dcb__composer input:focus {
  border-color: rgba(22, 119, 103, 0.62);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.11);
}

.dcb__composer button {
  display: grid;
  width: 43px;
  height: 43px;
  place-items: center;
  border-radius: 13px;
  background: linear-gradient(140deg, #138277, #0b625a);
  box-shadow: 0 7px 15px rgba(15, 90, 76, 0.22);
  color: #ffffff;
  transition: transform 150ms ease, box-shadow 150ms ease;
}

.dcb__composer button:hover {
  box-shadow: 0 9px 19px rgba(15, 90, 76, 0.27);
  transform: translateY(-1px);
}

.dcb__composer button svg {
  width: 20px;
  height: 20px;
}

.dcb__footer-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 0 12px 8px;
  background: #ffffff;
  color: #8a9498;
  font-size: 8px;
  line-height: 1.3;
  text-align: center;
}

.dcb__footer-note svg {
  width: 11px;
  height: 11px;
  flex: 0 0 auto;
  color: var(--dcb-teal);
}

@keyframes dcb-panel-in {
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes dcb-message-in {
  from {
    opacity: 0;
    transform: translateY(5px);
  }
}

@keyframes dcb-details-in {
  from {
    opacity: 0;
    transform: translateY(-3px);
  }
}

@keyframes dcb-typing {
  0%, 60%, 100% { opacity: 0.35; transform: translateY(0); }
  30% { opacity: 1; transform: translateY(-3px); }
}

@keyframes dcb-unread {
  0%, 72%, 100% { transform: scale(1); }
  80% { transform: scale(1.18); }
  88% { transform: scale(0.96); }
}

@media (max-width: 520px) {
  .dcb {
    right: max(10px, env(safe-area-inset-right));
    bottom: max(10px, env(safe-area-inset-bottom));
  }

  .dcb__launcher {
    min-width: 0;
    min-height: 58px;
    padding: 5px;
    border-radius: 18px;
  }

  .dcb__launcher-icon {
    width: 48px;
    height: 48px;
  }

  .dcb__launcher-copy {
    display: none;
  }

  .dcb__unread {
    right: -3px;
  }

  .dcb__panel {
    position: fixed;
    left: max(7px, env(safe-area-inset-left));
    right: max(7px, env(safe-area-inset-right));
    bottom: max(7px, env(safe-area-inset-bottom));
    width: auto;
    height: min(90dvh, 700px);
    min-height: min(510px, calc(100dvh - 14px));
    border-radius: 22px;
    transform-origin: center bottom;
  }

  .dcb__header {
    min-height: 80px;
    padding: 14px 12px 13px 15px;
  }

  .dcb__avatar {
    width: 44px;
    height: 44px;
  }

  .dcb__messages {
    padding: 14px 11px 9px;
  }

  .dcb__message {
    max-width: 96%;
  }

  .dcb__message--language .dcb__bubble {
    width: min(100%, 295px);
  }

  .dcb__read-more-panel {
    max-height: min(390px, 48dvh);
    padding-inline: 10px;
  }

  .dcb__read-more-section {
    padding-bottom: 6px;
  }

  .dcb__read-more-section + .dcb__read-more-section {
    padding-top: 6px;
  }

  .dcb__quick {
    padding-inline: 10px;
  }

  .dcb__booking {
    max-height: min(410px, 53dvh);
    padding-inline: 10px;
  }

  .dcb__composer {
    padding-inline: 10px;
  }
}

@media (max-width: 370px) {
  .dcb__identity small {
    display: none;
  }

  .dcb__identity {
    gap: 8px;
  }

  .dcb__window-actions {
    gap: 5px;
  }

  .dcb__window-actions button {
    width: 36px;
    height: 36px;
  }

  .dcb__window-actions button.dcb__language-switch {
    width: auto;
    min-width: 38px;
    padding-inline: 6px;
  }
}

@media (max-height: 610px) and (min-width: 521px) {
  .dcb__panel {
    height: calc(100dvh - 20px);
    min-height: 0;
  }

  .dcb__header {
    min-height: 72px;
    padding-block: 12px;
  }
}

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

@media print {
  .dcb {
    display: none !important;
  }
}
