/* Overlay */
.ichar-popup-overlay {
    position: fixed;
    inset: 0;
    background: rgba(245, 130, 50, 0.5);
    /* #F58232, 50% */
    display: none;
    z-index: 9998;
}

/* Popup */
.ichar-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);

    display: none;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
    padding: 24px;

    width: fit-content;
    max-width: calc(100vw - 32px);
    max-height: calc(100vh - 32px);
    overflow: auto;

    z-index: 9999;
}

/* Кнопка закрытия вне окна */
.ichar-popup-close {
    position: absolute;
    top: -16px;
    right: -16px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: #ffffff;
    font-size: 24px;
    line-height: 36px;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}

/* Адаптив */
@media (max-width: 480px) {
    .ichar-popup {
        width: calc(100vw - 24px);
        padding: 20px 16px;
    }

    .ichar-popup-close {
        top: -12px;
        right: -12px;
    }
}