/*
 * Moscow showroom landing webchat isolation.
 *
 * The showroom React landing has a fullscreen mobile layout and its own form
 * styles. Keep the shared webchat widget inside the visual viewport on focus
 * without changing the widget globally on eurobabyshop.ru.
 */
@media (max-width: 768px) {
  html,
  body {
    max-width: 100%;
    overflow-x: clip;
  }

  body.ebsWebchatNoScroll {
    max-width: 100%;
    overflow-x: hidden;
  }

  .ebsWebchatLauncher {
    max-width: 100%;
    overflow-x: clip;
    font-size: 16px;
  }

  .ebsWebchatLauncher.isOpen {
    position: fixed !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100dvh !important;
    max-height: 100dvh !important;
    overflow: hidden !important;
  }

  .ebsWebchatPanel {
    position: fixed !important;
    top: 0 !important;
    bottom: auto !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    height: 100dvh !important;
    max-height: 100dvh !important;
    min-height: 0 !important;
    box-sizing: border-box;
    transform: none !important;
  }

  @supports (height: 100svh) {
    .ebsWebchatLauncher.isOpen,
    .ebsWebchatPanel {
      height: 100svh !important;
      max-height: 100svh !important;
    }
  }

  .ebsWebchatHeader,
  .ebsWebchatBody,
  .ebsWebchatFooter,
  .ebsWebchatDegradedBar {
    box-sizing: border-box;
    max-width: 100%;
  }

  .ebsWebchatFooter {
    width: 100%;
  }

  .ebsWebchatInput,
  .ebsWebchatContactInput {
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
    font-size: 16px;
    line-height: 1.35;
  }

  .ebsWebchatSend {
    flex: 0 0 auto;
  }
}
