:root {
  --robosupport-right: max(22px, env(safe-area-inset-right));
  --robosupport-bottom: max(20px, env(safe-area-inset-bottom));
  --robosupport-button: 62px;
  --robosupport-gap: 12px;
  --robosupport-window-bottom: calc(var(--robosupport-bottom) + var(--robosupport-button) + var(--robosupport-gap));
}

#robosupport-chat-fallback {
  position: fixed;
  right: var(--robosupport-right);
  bottom: var(--robosupport-bottom);
  z-index: 2147483001;
  display: grid;
  place-items: center;
  box-sizing: border-box;
  width: var(--robosupport-button);
  height: var(--robosupport-button);
  color: #fff;
  background: linear-gradient(145deg, #185897, #0c274c);
  border: 1px solid #5297dc;
  border-radius: 22px;
  box-shadow: 0 7px 22px #08284a59;
  text-decoration: none;
}

#robosupport-chat-fallback:hover { background: #185897; }
#robosupport-chat-fallback[aria-expanded="true"] { background: #185897; }
#robosupport-chat-fallback[aria-busy="true"] { cursor: progress; }

.robo-robot {
  position: relative;
  display: block;
  box-sizing: border-box;
  width: 29px;
  height: 22px;
  margin-top: 6px;
  border: 2px solid currentColor;
  border-radius: 7px;
}

.robo-robot::before {
  content: "";
  position: absolute;
  width: 2px;
  height: 6px;
  top: -7px;
  left: calc(50% - 1px);
  background: currentColor;
}

.robo-robot::after {
  content: "";
  position: absolute;
  width: 4px;
  height: 4px;
  top: -9px;
  left: calc(50% - 2px);
  border-radius: 50%;
  background: #7edbff;
}

.robo-robot > span {
  position: absolute;
  top: 6px;
  left: 5px;
  width: 4px;
  height: 5px;
  border-radius: 4px;
  background: currentColor;
  box-shadow: 10px 0 0 currentColor;
}

#cw-widget-holder.woot-widget-holder {
  top: auto !important;
  right: var(--robosupport-right) !important;
  bottom: var(--robosupport-window-bottom) !important;
  width: min(450px, calc(100% - 44px)) !important;
  height: min(680px, calc(100dvh - var(--robosupport-window-bottom) - 16px)) !important;
  max-height: none !important;
  min-height: 0 !important;
  border: 1px solid #5181b5 !important;
  border-radius: 18px !important;
  box-shadow: 0 18px 60px #06172a66 !important;
  background: #0c274c;
  overscroll-behavior: contain;
}

#cw-widget-holder.woot-widget-holder iframe {
  display: block;
  height: calc(100% - 60px) !important;
  min-height: 0 !important;
}

.robo-window-bar {
  box-sizing: border-box;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 0 12px 0 16px;
  background: #102e54;
  color: #fff;
  font: 14px/1.25 system-ui, sans-serif;
}

.robo-window-title, .robo-window-actions { display: flex; align-items: center; gap: 10px; }
.robo-window-title small { display: block; color: #b9d3ee; margin-top: 2px; }
.robo-window-actions { flex-shrink: 0; gap: 5px; }
.robo-window-actions button {
  width: 38px;
  height: 38px;
  color: inherit;
  border: 0;
  border-radius: 8px;
  background: transparent;
  font: 23px/1 system-ui, sans-serif;
  cursor: pointer;
}
.robo-window-actions button:hover { background: #ffffff24; }
#robosupport-chat-fallback:focus-visible, .robo-window-actions button:focus-visible {
  outline: 2px solid #83d9ff;
  outline-offset: 2px;
}

@media (max-width: 667px) {
  :root {
    --robosupport-right: max(12px, env(safe-area-inset-right));
    --robosupport-bottom: max(12px, env(safe-area-inset-bottom));
    --robosupport-button: 54px;
    --robosupport-gap: 10px;
  }
  #cw-widget-holder.woot-widget-holder {
    width: min(420px, calc(100% - var(--robosupport-right) - max(12px, env(safe-area-inset-left)))) !important;
    height: min(620px, calc(100dvh - var(--robosupport-window-bottom) - max(12px, env(safe-area-inset-top)))) !important;
    border-radius: 16px !important;
  }
}
