/* EasyDecide / SaaS · floating dock (AI + back-to-top) */
.ed-float-dock {
  position: fixed;
  right: clamp(12px, 2.6vw, 18px);
  bottom: calc(80px + env(safe-area-inset-bottom, 0px));
  z-index: 2147483000;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 10px 7px 12px 18px;
  border-radius: 28px;
  background: rgba(255, 255, 255, .9);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(216, 224, 219, .95);
  box-shadow:
    0 12px 36px rgba(15, 47, 34, .11),
    0 2px 8px rgba(15, 47, 34, .05);
  overflow: visible;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: bottom .28s ease, transform .28s ease, opacity .24s ease;
}
@media (max-width: 720px) {
  .ed-float-dock {
    top: 67%;
    bottom: auto;
    right: 4px;
    left: auto;
    width: auto;
    max-width: 72px;
    transform: translateY(-50%);
    padding: 6px 4px 8px 12px;
    gap: 8px;
    border-radius: 22px;
  }
  .ed-float-dock .ed-fab-wrap {
    width: 54px;
    height: auto;
    min-height: 44px;
  }
  .ed-float-dock .ed-fab,
  .ed-float-dock .ed-totop,
  .ed-float-dock .og-totop { width: 44px !important; height: 44px !important; }
  .ed-float-dock .ed-fab svg,
  .ed-float-dock .ed-totop svg,
  .ed-float-dock .og-totop svg { width: 20px; height: 20px; }
  .ed-float-dock--folded {
    padding: 4px !important;
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    max-width: 40px !important;
    min-height: 40px !important;
    border-radius: 50% !important;
    box-sizing: border-box !important;
  }
  .ed-float-dock--folded .ed-float-dock__fold {
    width: 32px !important;
    height: 32px !important;
    border-radius: 50%;
  }
  html[dir="rtl"] .ed-float-dock,
  body[dir="rtl"] .ed-float-dock,
  html.ed-rtl .ed-float-dock {
    left: 8px;
    right: auto;
  }
}
html[dir="rtl"] .ed-float-dock,
html.ed-rtl .ed-float-dock,
body[dir="rtl"] .ed-float-dock {
  padding: 10px 18px 12px 7px;
}
.ed-float-dock__fold {
  position: absolute;
  left: 1px;
  right: auto;
  top: 50%;
  z-index: 6;
  width: 18px;
  height: 40px;
  margin: 0;
  padding: 0;
  flex: none;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #111;
  box-shadow: none;
  cursor: pointer;
  display: grid;
  place-items: center;
  transform: translateY(-50%);
  appearance: none;
  -webkit-appearance: none;
  -webkit-tap-highlight-color: transparent;
}
.ed-float-dock__fold svg {
  width: 18px;
  height: 18px;
  display: block;
}
.ed-float-dock__fold:hover,
.ed-float-dock__fold:focus-visible {
  color: #00875a;
  background: transparent;
  outline: none;
}
html[dir="rtl"] .ed-float-dock__fold,
html.ed-rtl .ed-float-dock__fold,
body[dir="rtl"] .ed-float-dock__fold {
  left: auto;
  right: 1px;
}
.ed-float-dock--folded {
  padding: 4px !important;
  gap: 0 !important;
  overflow: visible !important;
  width: 40px !important;
  height: 40px !important;
  min-width: 40px !important;
  max-width: 40px !important;
  min-height: 40px !important;
  border-radius: 50% !important;
  box-sizing: border-box !important;
  aspect-ratio: 1 / 1;
}
.ed-float-dock--folded > :not(.ed-float-dock__fold) {
  display: none !important;
}
.ed-float-dock--folded .ed-float-dock__fold {
  position: relative;
  left: auto;
  right: auto;
  top: auto;
  transform: none;
  width: 32px;
  height: 32px;
  margin: 0;
  border: 0;
  border-radius: 50%;
  box-shadow: none;
  background: transparent;
}
.ed-float-dock .ed-fab,
.ed-float-dock .ed-totop,
.ed-float-dock .og-totop {
  position: relative;
  right: auto;
  bottom: auto;
  top: auto;
  left: auto;
  margin: 0;
  flex-shrink: 0;
}
.ed-float-dock .ed-fab {
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(145deg, #d8f264 0%, #b8e04c 52%, #a8d63f 100%);
  color: #0a100d;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .45),
    0 6px 18px rgba(92, 130, 38, .28);
  display: grid;
  place-items: center;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: transform .2s ease, box-shadow .2s ease;
}
.ed-float-dock .ed-fab:hover,
.ed-float-dock .ed-fab:focus-visible {
  transform: translateY(-1px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .5),
    0 10px 24px rgba(92, 130, 38, .32);
  outline: none;
}
.ed-float-dock .ed-fab svg { width: 22px; height: 22px; }
.ed-float-dock .ed-totop,
.ed-float-dock .og-totop,
.ed-float-dock .site-back-top,
.ed-float-dock .eg-back-top,
.ed-float-dock #siteBackTop,
.ed-float-dock #egBackTop,
.ed-float-dock #vsBackTop {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 1px solid #e3ebe6;
  border-radius: 999px;
  background: #fff;
  color: #2a4035;
  box-shadow: 0 4px 14px rgba(16, 40, 28, .08);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  overflow: hidden;
  transition:
    opacity .26s ease,
    transform .26s ease,
    width .26s ease,
    height .26s ease,
    margin .26s ease,
    border-color .2s ease,
    color .2s ease,
    box-shadow .2s ease;
}
.ed-float-dock .ed-totop:not(.is-show),
.ed-float-dock .og-totop:not(.is-show),
.ed-float-dock .site-back-top:not(.is-show),
.ed-float-dock .eg-back-top:not(.is-show),
.ed-float-dock .ed-totop[hidden],
.ed-float-dock .og-totop[hidden],
.ed-float-dock .site-back-top[hidden],
.ed-float-dock .eg-back-top[hidden],
.ed-float-dock #siteBackTop:not(.is-show),
.ed-float-dock #egBackTop:not(.is-show),
.ed-float-dock #vsBackTop:not(.is-show),
.ed-float-dock #siteBackTop[hidden],
.ed-float-dock #egBackTop[hidden],
.ed-float-dock #vsBackTop[hidden],
.ed-float-dock:not(.ed-float-dock--totop) > .ed-totop,
.ed-float-dock:not(.ed-float-dock--totop) > .og-totop,
.ed-float-dock:not(.ed-float-dock--totop) > .site-back-top,
.ed-float-dock:not(.ed-float-dock--totop) > .eg-back-top,
.ed-float-dock:not(.ed-float-dock--totop) > #siteBackTop,
.ed-float-dock:not(.ed-float-dock--totop) > #egBackTop,
.ed-float-dock:not(.ed-float-dock--totop) > #vsBackTop {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
  min-height: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  opacity: 0 !important;
  border-width: 0 !important;
  box-shadow: none !important;
  pointer-events: none !important;
}
.ed-float-dock .ed-totop.is-show,
.ed-float-dock .og-totop.is-show,
.ed-float-dock .site-back-top.is-show,
.ed-float-dock .eg-back-top.is-show,
.ed-float-dock #siteBackTop.is-show,
.ed-float-dock #egBackTop.is-show,
.ed-float-dock #vsBackTop.is-show {
  display: grid !important;
  opacity: 1 !important;
  visibility: visible !important;
  transform: none !important;
}
.ed-float-dock .ed-totop:hover,
.ed-float-dock .ed-totop:focus-visible,
.ed-float-dock .og-totop:hover,
.ed-float-dock .og-totop:focus-visible,
.ed-float-dock .site-back-top:hover,
.ed-float-dock .site-back-top:focus-visible,
.ed-float-dock #siteBackTop:hover,
.ed-float-dock #siteBackTop:focus-visible {
  border-color: #00875a;
  color: #00875a;
  outline: none;
}
.ed-float-dock .ed-totop svg,
.ed-float-dock .og-totop svg,
.ed-float-dock .site-back-top svg,
.ed-float-dock #siteBackTop svg { width: 20px; height: 20px; }
.ed-float-act {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 54px;
  min-height: 64px;
  text-decoration: none;
  color: #1d3a2e;
  -webkit-tap-highlight-color: transparent;
  flex-shrink: 0;
}
.ed-float-act__ico {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid #e3ebe6;
  background: #fff;
  color: #1d4ed8;
  display: grid;
  place-items: center;
  box-shadow: 0 4px 14px rgba(16, 40, 28, .08);
}
.ed-float-act--login .ed-float-act__ico { color: #0f766e; }
.ed-float-act--consult .ed-float-act__ico { color: #0891b2; }
.ed-float-act__ico svg { width: 20px; height: 20px; display: block; }
.ed-float-act__txt {
  font-size: 10px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: .02em;
  text-align: center;
  max-width: 56px;
  white-space: normal;
}
.ed-float-act:hover .ed-float-act__ico,
.ed-float-act:focus-visible .ed-float-act__ico {
  border-color: #00875a;
  color: #00875a;
  outline: none;
}
body.egm-page--dash .ed-float-dock,
.egm-rail-host .ed-float-dock,
body.ed-login .ed-float-dock,
body.ed-reg .ed-float-dock {
  z-index: 10060;
}
html[dir="rtl"] .ed-float-dock,
body[dir="rtl"] .ed-float-dock,
html.ed-rtl .ed-float-dock {
  right: auto;
  left: clamp(12px, 2.6vw, 18px);
  width: auto;
  max-width: 92px;
}
body.ed-drawer-open .ed-float-dock,
html.ed-drawer-open .ed-float-dock,
body.vs-drawer-open .ed-float-dock,
body.og-cookie-open .ed-float-dock {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  transform: none !important;
}
body.eg-partner-sticky-on .ed-float-dock {
  bottom: calc(112px + env(safe-area-inset-bottom, 0px));
}
body.ed-has-float-dock .back-top,
body.ed-has-float-dock button.back-top,
body.ed-has-float-dock .gotop,
body.ed-has-float-dock #goTop,
body.ed-has-float-dock > .ed-totop,
body.ed-has-float-dock > .og-totop,
body.ed-has-float-dock > .ed-fab,
body.ed-has-float-dock > .ed-fab-wrap {
  display: none !important;
}

.ed-fab-wrap {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: auto;
  min-height: 48px;
  flex-shrink: 0;
  overflow: visible;
}
.ed-float-dock .ed-fab {
  overflow: visible;
  margin: 0 auto;
}

/* AI 问候气泡：贴在青色圆圈左上角，不占悬浮栏高度 */
.ed-fab-wrap .ed-ai-tip {
  position: absolute !important;
  right: calc(100% - 8px) !important;
  bottom: calc(100% - 10px) !important;
  left: auto !important;
  top: auto !important;
  z-index: 2;
  width: max-content;
  max-width: min(240px, calc(100vw - 96px));
  margin: 0 !important;
  padding: 12px 28px 12px 14px;
  font-size: 15.3px;
  font-weight: 700;
  line-height: 1.45;
  text-align: left;
  border-radius: 16px;
  box-shadow: 0 12px 32px rgba(18, 61, 44, .16);
  pointer-events: auto;
}
.ed-fab-wrap.is-fab-consult-open .ed-ai-tip,
body.ed-consult-modal-open .ed-ai-tip {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}
body.ed-consult-modal-open .ed-float-dock {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}
.ed-fab-consult {
  position: absolute;
  right: calc(100% + 12px);
  bottom: 0;
  z-index: 8;
  width: 248px;
  max-height: min(560px, calc(100dvh - 24px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px)));
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  padding: 14px 14px 12px;
  border-radius: 16px;
  background: linear-gradient(180deg, #ffffff 62%, #f3fbe4 100%);
  border: 1px solid #e3ebe6;
  box-shadow: 0 12px 32px rgba(18, 61, 44, .16);
  text-align: center;
  pointer-events: auto;
  box-sizing: border-box;
}
.ed-fab-consult[hidden] { display: none !important; }
/* 绿圆 ↔ 弹层空隙桥接，避免鼠标移过去时触发 mouseleave 关层 */
.ed-fab-consult::before {
  content: '';
  position: absolute;
  right: -18px;
  top: 0;
  bottom: 0;
  width: 18px;
  background: transparent;
}
html[dir="rtl"] .ed-fab-consult::before,
html.ed-rtl .ed-fab-consult::before {
  right: auto;
  left: -18px;
}
.ed-fab-consult::after {
  content: '';
  position: absolute;
  right: -6px;
  bottom: 16px;
  width: 12px;
  height: 12px;
  background: #f6fbe8;
  border-right: 1px solid #e3ebe6;
  border-top: 1px solid #e3ebe6;
  transform: rotate(45deg);
}
@media (max-width: 720px) {
  .ed-fab-consult {
    position: fixed;
    right: 72px;
    left: auto;
    top: 50%;
    bottom: auto;
    transform: translateY(-50%);
    width: min(248px, calc(100vw - 88px));
    max-height: calc(100dvh - 16px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px));
    z-index: 2147483001;
  }
  html[dir="rtl"] .ed-fab-consult,
  html.ed-rtl .ed-fab-consult {
    left: 72px;
    right: auto;
  }
  .ed-fab-consult::before {
    right: -24px;
    width: 24px;
  }
  html[dir="rtl"] .ed-fab-consult::before,
  html.ed-rtl .ed-fab-consult::before {
    right: auto;
    left: -24px;
  }
  .ed-fab-consult::after {
    top: 50%;
    bottom: auto;
    transform: translateY(-50%) rotate(45deg);
  }
}
.ed-fab-consult__qrs {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: center;
  gap: 8px;
}
.ed-fab-consult__cell {
  display: block;
  width: 104px;
  height: 104px;
  flex: 0 0 104px;
  box-sizing: border-box;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid #e8eef2;
  background-color: #fff;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}
@media (min-width: 721px) {
  .ed-fab-consult:not(.is-open) {
    display: none !important;
  }
  .ed-fab-wrap.is-fab-consult-open .ed-fab-consult,
  .ed-fab-consult.is-open {
    display: block !important;
  }
  .ed-consult-modal__card {
    width: min(420px, 100%);
  }
}
.ed-fab-consult__lead {
  margin: 10px 0 8px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.45;
  color: #1f2a26;
  text-align: left;
}
.ed-fab-consult__row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}
.ed-fab-consult__id {
  font-size: 13px;
  font-weight: 800;
  color: #0f172a;
}
.ed-fab-consult .ed-consult-modal__help {
  text-align: left;
}

.ed-consult-modal {
  position: fixed;
  inset: 0;
  z-index: 2147483646;
  display: grid;
  align-items: center;
  justify-items: center;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: max(12px, env(safe-area-inset-top, 0px)) 12px max(12px, env(safe-area-inset-bottom, 0px));
  background: rgba(15, 23, 42, .42);
  box-sizing: border-box;
}
.ed-consult-modal[hidden] { display: none !important; }
.ed-consult-modal__card {
  position: relative;
  width: min(360px, 100%);
  max-height: calc(100dvh - 24px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px));
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  padding: 22px 20px 18px;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 18px 48px rgba(15, 23, 42, .18);
  text-align: center;
  box-sizing: border-box;
}
@media (max-width: 720px) {
  .ed-consult-modal__qrs {
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: flex-start;
    justify-content: center;
    gap: 8px;
  }
}
.ed-consult-modal__x {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 32px;
  height: 32px;
  border: 0;
  background: transparent;
  font-size: 24px;
  line-height: 1;
  color: #64748b;
  cursor: pointer;
}
.ed-consult-modal__card h2 {
  margin: 4px 28px 8px;
  font-size: 1.15rem;
  color: #0f172a;
}
.ed-consult-modal__lead {
  margin: 0 0 14px;
  font-size: 14px;
  line-height: 1.5;
  color: #475569;
}
.ed-consult-modal__qrs {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: flex-start;
  justify-content: center;
  gap: 12px;
  margin: 0 0 14px;
}
.ed-consult-modal__qr-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0;
  width: 128px;
  max-width: 128px;
  flex: 0 0 128px;
  min-width: 0;
}
.ed-consult-modal__cell {
  display: block;
  width: 128px;
  height: 128px;
  flex: 0 0 128px;
  box-sizing: border-box;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid #e8eef2;
  background-color: #fff;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}
.ed-consult-modal__cell img,
.ed-fab-consult__cell img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.ed-consult-modal__qr-item figcaption {
  margin-top: 6px;
  font-size: 13px;
  font-weight: 800;
  color: #0f172a;
}
.ed-consult-modal__tg-cap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}
.ed-consult-modal__tg-name {
  font-size: 13px;
  font-weight: 800;
  color: #0f172a;
}
.ed-consult-modal__copy {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 28px;
  padding: 0 8px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  background: #fff;
  color: #0f172a;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  line-height: 1;
}
.ed-consult-modal__copy:hover {
  border-color: #0891b2;
  color: #0e7490;
}
.ed-consult-modal__copy[data-copied='1'] {
  border-color: #059669;
  color: #047857;
}
.ed-consult-modal__tg {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  background: #0891b2;
  color: #fff;
  font-weight: 800;
  font-size: 14px;
  text-decoration: none;
}
.ed-consult-modal__help {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid #e5e7eb;
  text-align: left;
}
.ed-consult-modal__help b {
  display: block;
  margin-bottom: 4px;
  color: #0f172a;
}
.ed-consult-modal__help p {
  margin: 0 0 10px;
  font-size: 13px;
  color: #64748b;
  line-height: 1.45;
}
.ed-consult-modal__support {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1.5px solid #0f172a;
  color: #0f172a;
  font-weight: 800;
  font-size: 13px;
  text-decoration: none;
}
.ed-fab-consult__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.ed-fab-consult__x {
  position: relative;
  z-index: 3;
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #64748b;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  pointer-events: auto;
  -webkit-tap-highlight-color: transparent;
}
.ed-fab-consult__x:hover,
.ed-fab-consult__x:focus-visible {
  color: #0f172a;
  background: #f1f5f9;
  outline: none;
}
