.annd-popup-trigger {
    color: #c41f49;
    font-weight: 700;
    border-bottom: 1.5px dashed #c41f49;
    padding-bottom: 3px;
    cursor: pointer;
    text-decoration: none !important;
}

.annd-popup-trigger:hover,
.annd-popup-trigger:focus {
    color: #9f1738;
    border-bottom-color: #9f1738;
    outline: none;
}

.annd-popup-note-no-scroll,
.annd-popup-note-no-scroll body {
    overflow: hidden !important;
}

.annd-popup-note-overlay {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.annd-popup-note-overlay.is-open {
    display: flex;
}

.annd-popup-note-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 18, 28, 0.72);
    backdrop-filter: blur(3px);
}

.annd-popup-note-modal {
    position: relative;
    z-index: 1;
    width: min(900px, 94vw);
    max-height: 86vh;
    overflow-y: auto;
    background: #ffffff;
    color: #1f2433;
    border-radius: 18px;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.28);
    padding: 46px 42px 38px;
    direction: rtl;
    text-align: right;
}

.annd-popup-note-close {
    position: absolute;
    top: 14px;
    left: 14px;
    width: 42px;
    height: 42px;
    padding: 0 !important;
    border: none !important;
    border-radius: 50%;
    background: #c41f49;
    color: #ffffff;
    font-size: 30px;
    font-weight: 400;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    cursor: pointer;
    z-index: 2;
    box-shadow: none !important;
}

.annd-popup-note-close:hover,
.annd-popup-note-close:focus {
    background: #9f1738;
    color: #fff;
    outline: none;
}

.annd-popup-note-content {
    font-size: 17px;
    line-height: 1.9;
}

.annd-popup-note-content p:first-child,
.annd-popup-note-content figure:first-child,
.annd-popup-note-content .annd-popup-note-video-wrap:first-child {
    margin-top: 0;
}

.annd-popup-note-content p:last-child,
.annd-popup-note-content figure:last-child,
.annd-popup-note-content .annd-popup-note-video-wrap:last-child {
    margin-bottom: 0;
}

.annd-popup-note-content img,
.annd-popup-note-content video,
.annd-popup-note-content iframe {
    max-width: 100%;
}

.annd-popup-note-content iframe {
    display: block;
    margin: 18px auto;
}

.annd-popup-note-video-wrap,
.annd-popup-note-content .wp-block-embed,
.annd-popup-note-content .wp-block-embed__wrapper {
    width: 100%;
    max-width: 760px;
    margin: 18px auto;
}

.annd-popup-note-video-wrap {
    position: relative;
    aspect-ratio: 16 / 9;
    background: #000;
    border-radius: 12px;
    overflow: hidden;
}

.annd-popup-note-video-wrap iframe,
.annd-popup-note-content .wp-block-embed iframe {
    width: 100% !important;
    height: 100% !important;
    aspect-ratio: 16 / 9;
    border: 0;
    margin: 0 auto !important;
    display: block;
}

.annd-popup-note-loading,
.annd-popup-note-error {
    text-align: center;
    margin: 0;
    font-weight: 700;
}

@media (max-width: 767px) {
    .annd-popup-note-overlay {
        padding: 14px;
    }

    .annd-popup-note-modal {
        width: 96vw;
        max-height: 88vh;
        padding: 52px 22px 30px;
        border-radius: 14px;
    }

    .annd-popup-note-close {
        top: 10px;
        left: 10px;
        width: 38px;
        height: 38px;
        font-size: 28px;
    }

    .annd-popup-note-content {
        font-size: 16px;
    }
}
