$arrow-size: rem(14px);
$visible-portion-of-arrow: rem(5px);
$content-max-height: rem(295px);
$content-max-width: rem(400px);

.p_hp {
  max-width: calc(100vw - #{2 * spacing()});
  margin: $visible-portion-of-arrow spacing() spacing();
  opacity: 1;
  box-shadow: shadow(deep);
  border-radius: border-radius(large);
  will-change: opacity, left, top;
  transition: opacity duration() easing(in);
}

.p_wa {
  margin: 0;
  margin-top: $visible-portion-of-arrow;

  .p_ey {
    max-width: none;
  }
}

.p_o6:not(.p_db),
.p_db {
  opacity: 0;
}

.p_o6 {
  .p_ey {
    display: block;
  }
}

.p_db {
  transition-timing-function: easing(out);
}

.p_jt {
  margin: spacing() spacing() $visible-portion-of-arrow;

  .p_v5 {
    top: inherit;
    bottom: 0;
    border-top-left-radius: 0;
    border-bottom-right-radius: border-radius();
  }
}

.p_ig {
  position: relative;
  overflow: hidden;
  background-color: color(white);
  border-radius: border-radius(large);
}

.p_ey {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: border-radius(large);
  max-width: $content-max-width;
  max-height: $content-max-height;

  &:focus {
    outline: none;
  }
}

.p_v5 {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
  height: $arrow-size;
  width: $arrow-size;
  background: color(white);
  border-top-left-radius: border-radius();
  box-shadow: shadow(deep);
}

.p_u4 {
  flex: 1 1 0%;
  max-width: 100%;

  + .p_u4 {
    border-top: border();
  }
}

.p_fp {
  overflow: visible;
  flex: 0 0 auto;
}

.p_pk {
  padding: spacing();

  + .p_pk {
    border-top: border();
  }
}

.p_mr {
  @include visually-hidden;
}
