/* Front-end popup visuals. */
html.inventive--popover-open,
html.inventive--popover-open body {
    overflow: hidden;
}

[data-inventive-popover] {
    position: fixed;
    inset: 0;
    z-index: 9999;
    pointer-events: auto;
}

[data-inventive-popover][hidden] {
    display: none !important;
}

.inventive-popover__close {
    position: absolute;
    top: 0.25rem;
    right: 0.5rem;
    background: none;
    border: 0;
    font-size: 1.5rem;
    line-height: 1;
    color: #000;
    cursor: pointer;
}


.inventive-popover__backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.3);
    z-index: 9999;
}

[data-inventive-popover][data-inventive-hover="1"] .inventive-popover__backdrop {
    display: none !important;
    pointer-events: none;
}

.inventive-popover__inner {
    position: relative;
    z-index: 10000;
    box-sizing: border-box;
    width: calc(100vw - 2rem);
    max-height: calc(100vh - 2rem);
    overflow: auto;
    background: #fff;
    color: #000;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,.3);
    padding: 1.25rem;
}

[data-inventive-popover]:not([hidden]) .inventive-popover__inner:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 2px;
}

/* Only show the arrow when the popup is set to hover mode. */
[data-inventive-popover][data-inventive-hover="1"] .inventive-popover__inner {
    position: fixed;
}

[data-inventive-popover][data-inventive-hover="1"] .inventive-popover__inner::after {
  content: "";
  position: absolute;
  top: -7px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-bottom: 8px solid #fff;
  z-index: 1;
  pointer-events: none;
}

[data-inventive-popover][data-inventive-hover="1"] .inventive-popover__inner::before {
  content: "";
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-bottom: 10px solid rgba(0,0,0,0.25);
  filter: blur(0.2px);
  z-index: 0;
  pointer-events: none;
}
