.ad-modal-annonce {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.ad-modal-annonce__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.58);
}

.ad-modal-annonce__dialog {
    position: relative;
    width: min(620px, 100%);
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    padding: 36px 32px 28px;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 18px 55px rgba(0, 0, 0, 0.28);
    color: #222;
}

.ad-modal-annonce__close {
    position: absolute;
    top: 10px;
    right: 14px;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    font-size: 32px;
    line-height: 1;
    cursor: pointer;
}

.ad-modal-annonce__title {
    margin: 0 34px 20px 0;
    font-size: 26px;
    line-height: 1.25;
}

.ad-modal-annonce__content {
    font-size: 17px;
    line-height: 1.6;
}

.ad-modal-annonce__content p:first-child {
    margin-top: 0;
}

.ad-modal-annonce__content p:last-child {
    margin-bottom: 0;
}

body.ad-modal-annonce-open {
    overflow: hidden;
}

@media (max-width: 600px) {
    .ad-modal-annonce__dialog {
        padding: 32px 22px 24px;
    }

    .ad-modal-annonce__title {
        font-size: 22px;
    }

    .ad-modal-annonce__content {
        font-size: 16px;
    }
}
