/* Outer shell — from saved page Amazon Connect widget (338×700). */
.o2-chat-root {
  position: fixed;
  z-index: 999999999;
  bottom: min(2vh, 2vw);
  right: min(2vh, 2vw);
  pointer-events: none;
}

.o2-chat-root.is-open {
  pointer-events: auto;
}

.o2-chat-frame {
  width: 0;
  height: 0;
  display: none;
  background: #fff;
  overflow: hidden;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.3);
  border-top-left-radius: 4px;
  border-top-right-radius: 4px;
}

.o2-chat-root.is-open .o2-chat-frame {
  display: block;
  width: 338px;
  height: 700px;
  max-height: min(700px, calc(100vh - 24px));
  max-width: min(338px, calc(100vw - 24px));
}

.o2-chat-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  background: #fff;
}

.o2-chat-minimize {
  width: min(55px, 10.5vh);
  height: min(55px, 10.5vh);
  padding: 0;
  border-radius: 50%;
  border: none;
  float: right;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.3);
  cursor: pointer;
  background: #0050ff;
  color: #fff;
}

.o2-chat-root.is-open .o2-chat-minimize {
  display: flex;
  margin-top: 8px;
}

#openChatWindow.ui-interactive-enabled,
#openChatWindow .ui-interactive-enabled,
#openChatIconVertical.ui-interactive-enabled,
.openAWSChat.ui-interactive-enabled {
  pointer-events: auto !important;
}
