.dobre-popup,
.dobre-popup * {
    box-sizing: border-box;
}

.dobre-popup[hidden] {
    display: none !important;
}

.dobre-popup {
    position: fixed;
    inset: 0;
    display: block;
    overflow-x: hidden;
    overflow-y: auto;
    background: rgba(0, 0, 0, .7);
    opacity: 0;
    transition: opacity .35s ease;
}

.dobre-popup.dobre-popup--without-overlay {
    pointer-events: none;
    background: transparent;
}

.dobre-popup.is-opening,
.dobre-popup.is-open {
    opacity: 1;
}

.dobre-popup__container {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 60%;
    height: auto;
    margin: 0 0 3em;
    padding: 0;
    transform: translate(-50%, -50%);
    background: transparent;
    pointer-events: auto;
}

.dobre-popup .pum-content:focus {
    outline: none;
}

.dobre-popup .pum-content > :first-child {
    margin-top: 0;
}

.dobre-popup .pum-content > :last-child {
    margin-bottom: 0;
}

.dobre-popup__close {
    position: absolute;
    z-index: 2;
    top: 7px;
    right: 7px;
    width: 18px;
    height: 18px;
    min-width: 1em;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 15px;
    background: transparent;
    color: #fff;
    font-family: inherit;
    font-size: 20px;
    font-weight: 700;
    line-height: 18px;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
}

html.dobre-popup-open,
html.dobre-popup-open body {
    overflow: hidden;
}

@media (max-width: 1200px) {
    .dobre-popup__container {
        width: 80%;
    }
}

@media (max-width: 640px) {
    .dobre-popup__container {
        top: 24px;
        width: calc(100% - 24px);
        margin-bottom: 24px;
        transform: translateX(-50%);
    }
}

@media (prefers-reduced-motion: reduce) {
    .dobre-popup {
        transition-duration: .01ms;
    }
}
