/* Appearance layer for the existing chat plugin. No live-presence indicator. */
.sc-assistant-enhanced .sc-chat-launcher {
  gap: 10px;
  padding: 8px 16px 8px 8px;
  min-height: 62px;
  width: auto;
  max-width: calc(100vw - 32px);
  background: #073967;
  border: 1px solid #b9dae9;
  box-shadow: 0 5px 22px rgb(7 39 71 / 22%);
}
.sc-assistant-enhanced .sc-chat-launcher:hover { background: #0b4c7e; }
.sc-assistant-enhanced .sc-chat-launcher__icon { display: none; }
.sc-assistant-enhanced .sc-chat-launcher__text {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.sc-assistant-avatar {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  border-radius: 50%;
  background: #e5f5fa;
  object-fit: cover;
  object-position: 50% 18%;
}
.sc-assistant-label { display: grid; gap: 3px; min-width: 0; text-align: left; overflow-wrap: anywhere; }
.sc-assistant-label strong { color: #fff; font-size: 15px; line-height: 1.3; }
.sc-assistant-label > span { color: #e1f2fa; font-size: 13px; line-height: 1.4; }
.sc-assistant-mobile-label { display: none; }
.sc-assistant-portrait {
  position: fixed;
  right: 29px;
  bottom: 81px;
  z-index: 1201;
  width: 144px;
  height: 176px;
  pointer-events: none;
}
.sc-assistant-portrait > img { display: block; width: 100%; height: 100%; object-fit: contain; }
.sc-assistant-minimize {
  position: absolute;
  top: 0;
  right: -3px;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 1px solid #8aabbc;
  border-radius: 50%;
  background: #fff;
  color: #153958;
  font: 22px/1 sans-serif;
  cursor: pointer;
  pointer-events: auto;
}
.sc-assistant-minimize:focus-visible { outline: 3px solid #f0b429; outline-offset: 3px; }
.sc-assistant-portrait[hidden], .sc-assistant-avatar[hidden] { display: none; }
.sc-assistant-enhanced.sc-assistant-nav-open { visibility: hidden; }
.sc-assistant-present { padding-bottom: 88px; }
@media (min-width: 1200px) {
  .sc-assistant-label { max-width: 120px; }
}
@media (max-width: 1199px) {
  /* Tablet copy has less spare horizontal space: keep the compact launcher. */
  .sc-assistant-portrait { display: none; }
}
@media (max-width: 767px), (max-height: 640px) {
  .sc-assistant-portrait { display: none; }
  .sc-assistant-enhanced .sc-chat-launcher { right: 12px; min-height: 56px; }
  .sc-assistant-avatar { width: 38px; height: 38px; flex-basis: 38px; }
  .sc-assistant-label strong { font-size: 14px; }
  .sc-assistant-label > span { font-size: 12px; }
}
@media (max-width: 767px) {
  /* Preserve the existing phone/LINE bar's reserved space. */
  .sc-assistant-enhanced .sc-chat-launcher { bottom: calc(88px + env(safe-area-inset-bottom, 0px)); }
  /* Share the existing fixed contact strip instead of obscuring page content. */
  .sc-assistant-with-contactbar .sc-mobile-sticky-cta { padding-right: 102px; }
  .sc-assistant-with-contactbar .sc-chat-launcher {
    right: 12px;
    bottom: calc(8px + env(safe-area-inset-bottom, 0px));
    width: 78px;
    height: 58px;
    min-height: 58px;
    padding: 4px;
    flex-direction: column;
    justify-content: center;
    gap: 1px;
    border-radius: 13px;
    box-shadow: none;
  }
  .sc-assistant-with-contactbar .sc-assistant-avatar { width: 28px; height: 28px; flex-basis: 28px; }
  .sc-assistant-with-contactbar .sc-assistant-label { text-align: center; gap: 0; }
  .sc-assistant-with-contactbar .sc-assistant-label > strong,
  .sc-assistant-with-contactbar .sc-assistant-label > span { display: none; }
  .sc-assistant-with-contactbar .sc-assistant-mobile-label { display: block; color: #fff; font-size: 13px; line-height: 1.3; }
}
@media print {
  .sc-assistant-enhanced { display: none; }
  .sc-assistant-present { padding-bottom: 0; }
}
