/* Colors */
.default {
  --border_popup: #ddd;
}
.primary {
  --border_popup: var(--lib_primary_border_color);
}
.secondary {
  --border_popup: var(--lib_secondary_border_color);
}
.danger {
  --border_popup: var(--lib_danger_border_color);
}
.success {
  --border_popup: var(--lib_success_border_color);
}
/* common */
.popupContainer {
  position: relative;
}
.hover.popup {
  display: block;
}
.popupSubContainer {
  position: absolute;
  z-index: 1;
}
.popup {
  border: 1px solid var(--border_popup);
  position: relative;
  box-sizing: border-box;
  box-shadow: 0 3px 10px 0 var(--border_popup);
  background-color: #fff;
}
.popupHide {
  height: 0;
  width: 0;
  overflow: hidden;
  visibility: hidden;
}
/* Content Size */
.default {
  min-width: 100px;
  min-height: 100px;
}
.small {
  min-width: 80px;
  min-height: 80px;
}
.medium {
  min-width: 150px;
  min-height: 150px;
}
.large {
  min-width: 200px;
  min-height: 200px;
}
.xlarge {
  min-width: 300px;
  min-height: 300px;
}

/* box position */
.topStart {
  bottom: 100%;
  right: 0;
}
.topEnd {
  bottom: 100%;
  left: 0;
}
.topMid {
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
}
.bottomStart {
  top: 100%;
  right: 0;
}
.bottomEnd {
  top: 100%;
  left: 0;
}
.bottomMid {
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
}
.rightStart {
  left: 100%;
  bottom: 0;
}
.rightEnd {
  left: 100%;
  top: 0;
}
.rightMid {
  left: 100%;
  top: 50%;
  transform: translateY(-50%);
}
.leftStart {
  right: 100%;
  bottom: 0;
}
.leftEnd {
  right: 100%;
  top: 0;
}
.leftMid {
  right: 100%;
  top: 50%;
  transform: translateY(-50%);
}
/* arrow handling  */

.arrow {
  position: absolute;
  height: 34px;
  width: 34px;
  clip: rect(3px, 29px, 17px, 8px);
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.arrowShape {
  height: 10px;
  width: 10px;
  box-shadow: 1px -1px 2px 0 var(--border_popup);
  background-color: #fff;
  -webkit-transform: rotateZ(-45deg);
  transform: rotateZ(-45deg);
}
.start,
.end,
.mid {
  composes: arrow;
}
.top .start,
.top .end,
.top .mid {
  bottom: -17px;
}
.top .start {
  left: 28px;
}
.top .end {
  right: 28px;
  transform: rotate(180deg) translateX(-50%);
}
.top .mid {
  left: 50%;
}
.top .start,
.top .mid {
  transform: rotate(180deg) translateX(50%);
}
.bottom .start,
.bottom .end,
.bottom .mid {
  top: -17px;
}
.bottom .start {
  left: 28px;
}
.bottom .mid {
  left: 50%;
}
.bottom .end {
  right: 28px;
  transform: translateX(50%);
}
.bottom .mid,
.bottom .start {
  transform: translateX(-50%);
}
.left .start,
.left .mid,
.left .end {
  right: -17px;
}
.left .start {
  top: 28px;
}
.left .end {
  transform: rotate(90deg) translateX(50%);
  bottom: 28px;
}
.left .mid {
  top: 50%;
}
.left .start,
.left .mid {
  transform: rotate(90deg) translateX(-50%);
}
.right .start,
.right .mid,
.right .end {
  left: -17px;
}
.right .start {
  top: 28px;
}
.right .mid {
  top: 50%;
}
.right .start,
.right .mid {
  transform: rotate(-90deg) translateX(50%);
}
.right .end {
  bottom: 28px;
  transform: rotate(-90deg) translateX(-50%);
}
/* space for arrow */
.arrowtop {
  padding-bottom: 10px;
}
.arrowright {
  padding-left: 10px;
}
.arrowleft {
  padding-right: 10px;
}
.arrowbottom {
  padding-top: 10px;
}
