/* === Popover Component === */
.info-popover {
    position: fixed;
    inset: 50% auto auto 50%;
    width: calc(100% - 2rem);
    max-width: 36rem;
    max-height: calc(100dvh - 2rem);
    margin: 0;
    padding: 1rem;
    border: 0;
    border-radius: 3px;
    opacity: 0;
    transform: translate(-50%, calc(-50% + 1rem)) scale(0.98);
    overflow-y: auto;
    transition:
        opacity 0.25s ease,
        transform 0.25s ease,
        display 0.25s allow-discrete,
        overlay 0.25s allow-discrete;
}
.info-popover[open] {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}
@starting-style {
    .info-popover[open] {
        opacity: 0;
        transform: translate(-50%, calc(-50% + 1rem)) scale(0.98);
    }
}
/* Backdrop */
.info-popover::backdrop {
    background: rgb(0 0 0 / 0);

    transition:
        background 0.25s ease,
        display 0.25s allow-discrete,
        overlay 0.25s allow-discrete;
}
.info-popover[open]::backdrop {
    background: rgb(0 0 0 / 0.5);
}
@starting-style {
    .info-popover[open]::backdrop {
        background: rgb(0 0 0 / 0);
    }
}

/* Close button */

.info-popover__close {
    position: absolute;
    top: 15px;
    right: 15px;
    border: 0;
    background: transparent;
    background: var(--secondary);
    color: white !important;
    opacity: 1 !important;
    visibility: visible !important;
    line-height: 1;
    cursor: pointer;
    z-index: 10;
}

/* Trigger */
.info-popover__trigger {
    cursor: pointer;
}

.info-popover__close svg {
    display: block !important;
    width: 1em !important;
    height: 1em !important;
    color: white !important;
    fill: currentColor;
}
