.am-popover {
  position: absolute;
  z-index: 1999;
}
.am-popover-hidden {
  display: none;
}
.am-popover-mask {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.4);
  height: 100%;
  z-index: 999;
}
.am-popover-mask-hidden {
  display: none;
}
.am-popover-arrow {
  position: absolute;
  width: 7px;
  height: 7px;
  border-radius: 1PX;
  background-color: #fff;
  -webkit-transform: rotate(45deg);
      -ms-transform: rotate(45deg);
          transform: rotate(45deg);
  z-index: 0;
}
.am-popover-placement-top .am-popover-arrow,
.am-popover-placement-topLeft .am-popover-arrow,
.am-popover-placement-topRight .am-popover-arrow {
  -webkit-transform: rotate(225deg);
      -ms-transform: rotate(225deg);
          transform: rotate(225deg);
  bottom: -3.5px;
}
.am-popover-placement-top .am-popover-arrow {
  left: 50%;
}
.am-popover-placement-topLeft .am-popover-arrow {
  left: 8px;
}
.am-popover-placement-topRight .am-popover-arrow {
  right: 8px;
}
.am-popover-placement-right .am-popover-arrow,
.am-popover-placement-rightTop .am-popover-arrow,
.am-popover-placement-rightBottom .am-popover-arrow {
  -webkit-transform: rotate(-45deg);
      -ms-transform: rotate(-45deg);
          transform: rotate(-45deg);
  left: -3.5px;
}
.am-popover-placement-right .am-popover-arrow {
  top: 50%;
}
.am-popover-placement-rightTop .am-popover-arrow {
  top: 8px;
}
.am-popover-placement-rightBottom .am-popover-arrow {
  bottom: 8px;
}
.am-popover-placement-left .am-popover-arrow,
.am-popover-placement-leftTop .am-popover-arrow,
.am-popover-placement-leftBottom .am-popover-arrow {
  -webkit-transform: rotate(135deg);
      -ms-transform: rotate(135deg);
          transform: rotate(135deg);
  right: -3.5px;
}
.am-popover-placement-left .am-popover-arrow {
  top: 50%;
}
.am-popover-placement-leftTop .am-popover-arrow {
  top: 8px;
}
.am-popover-placement-leftBottom .am-popover-arrow {
  bottom: 8px;
}
.am-popover-placement-bottom .am-popover-arrow,
.am-popover-placement-bottomLeft .am-popover-arrow,
.am-popover-placement-bottomRight .am-popover-arrow {
  top: -3.5px;
}
.am-popover-placement-bottom .am-popover-arrow {
  left: 50%;
}
.am-popover-placement-bottomLeft .am-popover-arrow {
  left: 8px;
}
.am-popover-placement-bottomRight .am-popover-arrow {
  right: 8px;
}
.am-popover-inner {
  font-size: 15px;
  color: #000;
  background-color: #fff;
  border-radius: 3px;
  box-shadow: 0 0 2px rgba(0, 0, 0, 0.21);
  overflow: hidden;
}
.am-popover .am-popover-item {
  padding: 0 8px;
}
.am-popover .am-popover-item-container {
  position: relative;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  height: 39px;
  box-sizing: border-box;
  padding: 0 8px;
}
.am-popover .am-popover-item:not(:first-child) .am-popover-item-container {
  border-top: 1PX solid #ddd;
}
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 2dppx) {
  html:not([data-scale]) .am-popover .am-popover-item:not(:first-child) .am-popover-item-container {
    border-top: none;
  }
  html:not([data-scale]) .am-popover .am-popover-item:not(:first-child) .am-popover-item-container::before {
    content: '';
    position: absolute;
    background-color: #ddd;
    display: block;
    z-index: 1;
    top: 0;
    right: auto;
    bottom: auto;
    left: 0;
    width: 100%;
    height: 1PX;
    -webkit-transform-origin: 50% 0;
        -ms-transform-origin: 50% 0;
            transform-origin: 50% 0;
    -webkit-transform: scaleY(0.5);
        -ms-transform: scaleY(0.5);
            transform: scaleY(0.5);
  }
}
@media (-webkit-min-device-pixel-ratio: 2) and (-webkit-min-device-pixel-ratio: 3), (min-resolution: 2dppx) and (min-resolution: 3dppx) {
  html:not([data-scale]) .am-popover .am-popover-item:not(:first-child) .am-popover-item-container::before {
    -webkit-transform: scaleY(0.33);
        -ms-transform: scaleY(0.33);
            transform: scaleY(0.33);
  }
}
.am-popover .am-popover-item.am-popover-item-active .am-popover-item-container {
  border-top: 0;
}
.am-popover .am-popover-item.am-popover-item-active .am-popover-item-container:before {
  display: none !important;
}
.am-popover .am-popover-item.am-popover-item-active + .am-popover-item .am-popover-item-container {
  border-top: 0;
}
.am-popover .am-popover-item.am-popover-item-active + .am-popover-item .am-popover-item-container:before {
  display: none !important;
}
.am-popover .am-popover-item.am-popover-item-active {
  background-color: #ddd;
}
.am-popover .am-popover-item.am-popover-item-active.am-popover-item-fix-active-arrow {
  position: relative;
}
.am-popover .am-popover-item.am-popover-item-disabled {
  color: #bbb;
}
.am-popover .am-popover-item.am-popover-item-disabled.am-popover-item-active {
  background-color: transparent;
}
.am-popover .am-popover-item-icon {
  margin-right: 8px;
  width: 18px;
  height: 18px;
}
