/* Doctor Doma V49 messenger UI.
   Keitaro parses inline {position:...} fragments as tracker macros, therefore this UI
   intentionally lives in a separate stylesheet. */
.dd-messenger-launcher {
  z-index: 9998 !important;
  position: fixed !important;
  right: 22px !important;
  bottom: 24px !important;
  display: grid !important;
  grid-template-columns: 52px minmax(0, 1fr) 24px !important;
  grid-template-rows: 1fr !important;
  column-gap: 12px;
  align-items: center;
  min-width: 244px;
  padding: 10px 12px 10px 10px;
  border: 1px solid #ffffff4d;
  border-radius: 22px;
  appearance: none;
  color: #fff;
  background: linear-gradient(135deg, #0e4f91 0%, #147fc4 48%, #1a9ccf 100%);
  box-shadow: 0 18px 48px #082b5866, 0 5px 14px #146ba133, inset 0 1px 0 #ffffff59;
  overflow: visible;
  cursor: pointer;
  isolation: isolate;
  font: inherit;
  transition: transform .2s, box-shadow .2s;
  animation: ddMessengerFloat 4.8s ease-in-out infinite;
}
.dd-messenger-launcher::before {
  content: "";
  z-index: -2;
  position: absolute;
  inset: -7px;
  border-radius: 28px;
  background: linear-gradient(135deg, #3ab7ee55, #36c99938);
  filter: blur(12px);
  opacity: .75;
}
.dd-messenger-launcher::after {
  content: "";
  z-index: -1;
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(110deg, #ffffff2e 0%, #ffffff05 42%, #ffffff26 58%, #ffffff00 74%);
  background-size: 220% 100%;
  animation: ddMessengerShine 5.8s ease-in-out infinite;
  pointer-events: none;
}
.dd-messenger-launcher:hover {
  transform: translateY(-4px) scale(1.015);
  box-shadow: 0 24px 58px #082b5873, 0 7px 18px #146ba13d, inset 0 1px 0 #ffffff73;
  animation-play-state: paused;
}
.dd-messenger-launcher:focus-visible {
  outline: 3px solid #80d5ff;
  outline-offset: 4px;
}
.dd-messenger-launcher-icon {
  grid-row: auto !important;
  position: relative;
  width: 52px !important;
  height: 52px !important;
  display: grid !important;
  place-items: center !important;
  border: 1px solid #ffffff38;
  border-radius: 17px !important;
  background: linear-gradient(145deg, #ffffff35, #ffffff14) !important;
  box-shadow: inset 0 1px 0 #ffffff54, 0 7px 16px #073f722e;
}
.dd-messenger-launcher-icon svg {
  width: 25px;
  height: 25px;
  fill: none;
  stroke: #fff;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.dd-messenger-launcher-icon > i {
  right: -2px;
  position: absolute;
  top: -2px;
  width: 12px;
  height: 12px;
  border: 3px solid #1478b7;
  border-radius: 50%;
  background: #39d58a;
  box-shadow: 0 0 0 4px #39d58a24;
  animation: ddMessengerOnline 2.2s ease-out infinite;
}
.dd-messenger-launcher-copy {
  grid-row: auto !important;
  width: auto !important;
  height: auto !important;
  min-width: 0;
  display: flex !important;
  flex-direction: column;
  align-items: flex-start;
  place-items: initial !important;
  border-radius: 0 !important;
  background: none !important;
  text-align: left;
}
.dd-messenger-launcher-copy b {
  color: #fff;
  font-size: 15px;
  line-height: 1.15;
  letter-spacing: .005em;
}
.dd-messenger-launcher-copy small {
  margin-top: 4px;
  display: flex !important;
  align-items: center;
  gap: 5px;
  color: #dff5ff;
  font-size: 10px;
  text-align: left;
}
.dd-messenger-launcher-copy small i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #42de94;
  box-shadow: 0 0 0 3px #42de9426;
}
.dd-messenger-launcher-arrow {
  grid-row: auto !important;
  width: 24px !important;
  height: 24px !important;
  display: grid !important;
  place-items: center !important;
  border-radius: 9px !important;
  background: #ffffff1f !important;
  color: #fff;
  font-size: 22px;
  font-weight: 300;
  line-height: 1;
}
.dd-messenger-backdrop {
  z-index: 10020 !important;
  position: fixed !important;
  inset: 0 !important;
  display: grid !important;
  place-items: center;
  padding: 22px;
  background: #07182d99;
  backdrop-filter: blur(8px);
}
.dd-messenger-backdrop[hidden] { display: none !important; }
.dd-messenger-sheet {
  width: min(520px, 100%);
  position: relative;
  padding: 30px;
  border-radius: 26px;
  background: #fff;
  box-shadow: 0 28px 80px #07182d66;
}
.dd-messenger-close {
  top: 14px;
  position: absolute;
  right: 14px;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  background: #eef3f8;
  color: #34485f;
  font-size: 27px;
  line-height: 1;
}
.dd-messenger-kicker {
  display: inline-block;
  padding: 7px 11px;
  border-radius: 999px;
  color: #176fbd;
  background: #eaf5ff;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.dd-messenger-sheet h2 {
  margin: 15px 44px 8px 0;
  color: #0b2854;
  font-size: 30px;
  line-height: 1.1;
  letter-spacing: -.7px;
}
.dd-messenger-sheet > p {
  margin: 0;
  color: #66778e;
  font-size: 15px;
  line-height: 1.55;
}
.dd-messenger-list {
  display: grid;
  gap: 11px;
  margin-top: 22px;
}
.dd-messenger-list > button {
  width: 100%;
  display: grid;
  grid-template-columns: 50px 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 15px;
  border: 1px solid #dce7f2;
  border-radius: 18px;
  background: #f8fbff;
  color: #123052;
  text-align: left;
  transition: transform .18s, border-color .18s, background .18s;
}
.dd-messenger-list > button:hover {
  transform: translateY(-1px);
  border-color: #6bb9e8;
  background: #f0f9ff;
}
.dd-messenger-list > button > i {
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  background: linear-gradient(145deg, #229ed9, #1377b5);
  color: #fff;
  font-size: 13px;
  font-style: normal;
  font-weight: 900;
}
.dd-messenger-list > button span b,
.dd-messenger-list > button span small { display: block; }
.dd-messenger-list > button span b { font-size: 17px; }
.dd-messenger-list > button span small {
  margin-top: 4px;
  color: #718197;
  font-size: 12px;
}
.dd-messenger-list > button > strong {
  color: #176fbd;
  font-size: 13px;
}
.dd-messenger-list > button:disabled { opacity: .7; cursor: wait; }
.dd-messenger-list > button.is-loading > strong { animation: ddPulse 1s infinite; }
.dd-messenger-trust {
  display: block;
  margin-top: 18px;
  color: #738397;
  font-size: 12px;
  text-align: center;
}
.dd-messenger-error {
  margin-top: 14px;
  padding: 11px 13px;
  border-radius: 12px;
  background: #fff0f1;
  color: #a6212e;
  font-size: 13px;
  font-weight: 700;
}
.dd-messenger-error.is-hint {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid #cde8f8;
  background: #eff9ff;
  color: #31536f;
  font-weight: 600;
}
.dd-messenger-error.is-hint a {
  flex: 0 0 auto;
  padding: 8px 11px;
  border-radius: 10px;
  background: #147fc4;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 5px 13px #147fc42b;
}
@keyframes ddPulse { 50% { opacity: .35; } }
@keyframes ddMessengerFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-3px); } }
@keyframes ddMessengerShine { 0%, 58% { background-position: 160% 0; } 82%, 100% { background-position: -70% 0; } }
@keyframes ddMessengerOnline { 0% { box-shadow: 0 0 0 0 #39d58a70; } 75%, 100% { box-shadow: 0 0 0 8px #39d58a00; } }
@media (max-width: 850px) {
  .dd-messenger-launcher {
    right: 14px !important;
    bottom: calc(86px + env(safe-area-inset-bottom)) !important;
    width: 60px !important;
    min-width: 60px !important;
    height: 60px !important;
    grid-template-columns: 1fr !important;
    column-gap: 0 !important;
    padding: 0 !important;
    border: 1px solid #ffffff9c;
    border-radius: 20px !important;
    background: linear-gradient(145deg, #235f96 0%, #177cae 56%, #28a5be 100%);
    box-shadow: 0 14px 34px #0d42615c, 0 4px 12px #12618e38, inset 0 1px 0 #ffffff73;
  }
  .dd-messenger-launcher::before { inset: -4px; border-radius: 24px; filter: blur(9px); opacity: .62; }
  .dd-messenger-launcher::after { border-radius: 20px; }
  .dd-messenger-launcher:hover { transform: translateY(-2px) scale(1.02); }
  .dd-messenger-launcher:active { transform: translateY(0) scale(.96); }
  .dd-messenger-launcher-icon {
    width: 58px !important;
    height: 58px !important;
    border: 0 !important;
    border-radius: 19px !important;
    background: transparent !important;
    box-shadow: none !important;
  }
  .dd-messenger-launcher-icon svg { width: 27px; height: 27px; stroke-width: 1.8; }
  .dd-messenger-launcher-icon > i { right: 6px; top: 6px; width: 11px; height: 11px; border-color: #1b79a5; }
  .dd-messenger-launcher-copy,
  .dd-messenger-launcher-arrow { display: none !important; }
  .dd-messenger-backdrop { align-items: end; padding: 10px 10px 0; }
  .dd-messenger-sheet {
    width: 100%;
    padding: 31px 19px calc(22px + env(safe-area-inset-bottom));
    border: 1px solid #ffffff;
    border-bottom: 0;
    border-radius: 27px 27px 0 0;
    background: linear-gradient(180deg, #fff 0%, #f8fbfd 100%);
    box-shadow: 0 -20px 55px #07182d42;
  }
  .dd-messenger-sheet::before {
    content: "";
    top: 10px;
    position: absolute;
    left: 50%;
    width: 38px;
    height: 4px;
    border-radius: 99px;
    background: #d9e2e9;
    transform: translateX(-50%);
  }
  .dd-messenger-close { top: 18px; right: 17px; background: #edf3f7; }
  .dd-messenger-kicker { padding: 6px 10px; font-size: 9px; }
  .dd-messenger-sheet h2 { margin-top: 14px; font-size: 26px; letter-spacing: -.55px; }
  .dd-messenger-sheet > p { padding-right: 12px; font-size: 13px; line-height: 1.5; }
  .dd-messenger-list { margin-top: 17px; }
  .dd-messenger-list > button {
    min-height: 74px;
    grid-template-columns: 48px 1fr auto;
    padding: 12px;
    border-color: #d7e4ed;
    border-radius: 17px;
    background: #fff;
    box-shadow: 0 8px 22px #17374f0b;
  }
  .dd-messenger-list > button > i { width: 48px; height: 48px; border-radius: 15px; }
  .dd-messenger-trust { margin-top: 14px; font-size: 10px; }
  .dd-messenger-error.is-hint { align-items: stretch; flex-direction: column; text-align: center; }
  .dd-messenger-error.is-hint a { text-align: center; }
}
@media (max-width: 390px) {
  .dd-messenger-launcher {
    right: 12px !important;
    width: 58px !important;
    min-width: 58px !important;
    height: 58px !important;
  }
  .dd-messenger-launcher-icon { width: 56px !important; height: 56px !important; }
  .dd-messenger-sheet h2 { font-size: 24px; }
  .dd-messenger-list > button > strong { font-size: 0; }
  .dd-messenger-list > button > strong::after { content: "→"; font-size: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .dd-messenger-launcher,
  .dd-messenger-launcher::after,
  .dd-messenger-launcher-icon > i { animation: none; }
}
