@import "./popover";
@import "./popover.ios.vars";

// iOS Popover
// --------------------------------------------------

.popover-ios .popover-content {
  @include border-radius($popover-ios-border-radius);

  width: $popover-ios-width;
  min-width: $popover-ios-min-width;
  min-height: $popover-ios-min-height;
  max-height: $popover-ios-max-height;

  background-color: $popover-ios-background-color;
  color: $popover-ios-text-color;
}


// Popover Arrow
// -----------------------------------------

.popover-ios .popover-arrow {
  display: block;
  position: absolute;

  width: 20px;
  height: 10px;

  overflow: hidden;
}

.popover-ios .popover-arrow::after {
  @include position(3px, null, null, 3px);
  @include border-radius(3px);

  position: absolute;

  width: 14px;
  height: 14px;

  transform: rotate(45deg);

  background-color: $popover-ios-arrow-background-color;

  content: "";
  z-index: $z-index-overlay-wrapper;
}

.popover-ios.popover-bottom .popover-arrow {
  top: auto;
  bottom: -10px;
}

.popover-ios.popover-bottom .popover-arrow::after {
  top: -6px;
}

// Translucent Popover
// -----------------------------------------

.popover-translucent-ios .popover-content,
.popover-translucent-ios .popover-arrow::after {
  background: $popover-ios-translucent-background-color;
  backdrop-filter: $popover-ios-translucent-filter;
}
