/* Reusable one-time spotlight: knipmasker around one target + optional popover. */

.ec-feature-spotlight {
    position: fixed;
    inset: 0;
    z-index: 1060;
    background: transparent;
    pointer-events: none;
}

.ec-feature-spotlight[hidden] {
    display: none !important;
}

/* Keep the fixed navbar under the spotlight so the mask can dim it. */
html.ec-feature-spotlight-open .navbar-fixed-top,
html.ec-feature-spotlight-open .ec-nav.navbar {
    z-index: 1030;
}

/* Rounded hole: transparent center, dim via huge box-shadow (knipmasker). */
.ec-feature-spotlight__cutout {
    position: fixed;
    z-index: 1;
    border-radius: 999px;
    background: transparent;
    box-shadow: 0 0 0 9999px rgba(20, 24, 32, 0.55);
    pointer-events: none;
}

/* Invisible click blockers around the hole (shadow alone does not capture clicks). */
.ec-feature-spotlight__shade {
    position: fixed;
    z-index: 2;
    background: transparent;
    pointer-events: auto;
}

/* Pill matches circular cutout; no rectangular hover fill. */
html.ec-feature-spotlight-open [data-ec-feature-spotlight-target] {
    position: relative;
    pointer-events: auto;
    border-radius: 999px !important;
    background: transparent !important;
    box-shadow: none !important;
}

html.ec-feature-spotlight-open [data-ec-feature-spotlight-target]:hover,
html.ec-feature-spotlight-open [data-ec-feature-spotlight-target]:focus,
html.ec-feature-spotlight-open [data-ec-feature-spotlight-target]:active {
    background: transparent !important;
    box-shadow: none !important;
}

/* White speech bubble — beat global peach .popover in style.css (incl. hover). */
.popover.ec-feature-spotlight-popover {
    z-index: 1062;
    max-width: min(260px, calc(100vw - 40px));
    padding: 0;
    background-color: #fff !important;
    color: var(--ec-black, #323232) !important;
    border: 0 !important;
    border-radius: 12px !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18) !important;
    overflow: visible;
    pointer-events: auto;
    cursor: pointer;
}

.popover.ec-feature-spotlight-popover.bottom {
    margin-top: 17px;
}

.popover.ec-feature-spotlight-popover:hover,
.popover.ec-feature-spotlight-popover:focus,
.popover.ec-feature-spotlight-popover:active {
    background-color: #fff !important;
    border-radius: 12px !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18) !important;
}

.popover.ec-feature-spotlight-popover .popover-title {
    display: none;
}

.popover.ec-feature-spotlight-popover .popover-content {
    padding: 14px 16px 16px;
    text-align: center;
    color: var(--ec-black, #323232) !important;
    background: transparent !important;
    border-radius: 0 !important;
}

.popover.ec-feature-spotlight-popover .popover-content:hover {
    background: transparent !important;
    color: var(--ec-black, #323232) !important;
}

.ec-feature-spotlight-popover__title {
    margin: 0 0 8px;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.3;
    color: #1a2744;
}

.ec-feature-spotlight-popover__hint {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
    color: #ff9900;
}

.ec-feature-spotlight-popover__hint-arrow {
    width: 13px;
    height: 15px;
    flex-shrink: 0;
    color: #ff9900;
}

/* Restore Bootstrap 3 arrow (global .popover .arrow { border: 0 } hides it otherwise). */
.popover.ec-feature-spotlight-popover > .arrow,
.popover.ec-feature-spotlight-popover > .arrow:after {
    position: absolute;
    display: block;
    width: 0;
    height: 0;
    border-color: transparent;
    border-style: solid;
}

.popover.ec-feature-spotlight-popover > .arrow {
    border-width: 11px;
}

.popover.ec-feature-spotlight-popover > .arrow:after {
    content: "";
    border-width: 10px;
}

.popover.ec-feature-spotlight-popover.bottom > .arrow {
    top: -11px;
    border-top-width: 0;
    border-bottom-color: rgba(0, 0, 0, 0.12);
}

.popover.ec-feature-spotlight-popover.bottom > .arrow:after {
    top: 1px;
    margin-left: -10px;
    border-top-width: 0;
    border-bottom-color: #fff !important;
}

.popover.ec-feature-spotlight-popover.top > .arrow:after {
    border-top-color: #fff;
}

.popover.ec-feature-spotlight-popover.left > .arrow:after {
    border-left-color: #fff;
}

.popover.ec-feature-spotlight-popover.right > .arrow:after {
    border-right-color: #fff;
}
