:import {
  -st-from: "wix-ui-core/index.st.css";
  -st-named: Tooltip;
}

:import {
  -st-from: "../../colors.st.css";
  -st-named: 
  D10,
WHITE;
}

:import {
  -st-from: "../../typography.st.css";
  -st-named: fontRoman;
}

:import {
  -st-from: "../../shadows.st.css";
  -st-named: shadow30;
}

.root {
  -st-states: bounce, placement-right, placement-left, placement-top, placement-bottom;
  -st-extends: Tooltip;
}

.root::popoverContent {
  border: none;

  font-family: value(fontRoman);
  border-radius: 8px;
  padding: 12px 24px;
  box-sizing: border-box;
  font-size: 14px;
  line-height: 1.29;
  box-shadow: value(shadow30);
  word-wrap: break-word;
  -webkit-font-smoothing: antialiased;

  color: value(WHITE);
  background: value(D10);
  font-size: 14px;
  line-height: 18px;
  text-align: center;
  max-width: 230px;
}

.root:bounce::popover {
  animation-duration: 1.15s;
  animation-iteration-count: infinite;
}

.root:bounce:placement-right::popover {
  animation-name: right-bounce;
}

.root:bounce:placement-left::popover {
  animation-name: left-bounce;
}

.root:bounce:placement-top::popover {
  animation-name: top-bounce;
}

.root:bounce:placement-bottom::popover {
  animation-name: bottom-bounce;
}

@keyframes right-bounce {
  0%, 100% { left: 5px;   }
  50%      { left: -5px; }
}

@keyframes left-bounce {
  0%, 100% { left: -5px;   }
  50%      { left: 5px; }
}

@keyframes top-bounce {
  0%, 100% { top: -5px;   }
  50%      { top: 5px; }
}

@keyframes bottom-bounce {
  0%, 100% { top: 5px;   }
  50%      { top: -5px; }
}
