.twosides-popup {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.twosides-popup[hidden] {
    display: none;
}

.twosides-popup__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
}

.twosides-popup__dialog {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 560px;
    max-height: calc(100vh - 48px);
    overflow: auto;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
    padding: 32px 32px 32px;
}

.twosides-popup__close {
    position: absolute;
    top: 8px;
    right: 10px;
    width: 36px;
    height: 36px;
    border: 0;
    background: transparent;
    color: #333;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
}

.twosides-popup__close:hover,
.twosides-popup__close:focus {
    color: #000;
}

.twosides-popup__content {
    color: #222;
    font-size: 16px;
    line-height: 1.55;
}

.twosides-popup__content > *:first-child {
    margin-top: 0;
}

.twosides-popup__content > *:last-child {
    margin-bottom: 0;
}

.twosides-popup__content img {
    max-width: 100%;
    height: auto;
}

body.twosides-popup-open {
    overflow: hidden;
}
