.adspopup-container {
    position: fixed;
    z-index: 9995;
    top: 50%;
    text-align: center;
    left: 50%;
    transform: translate(-50%, -50%);
    height: 600px;
	max-width: 600px;
}
.adspopup-container.left {
    top: auto;
    transform: translate(0, 0);
    height: 600px;
    max-width: 600px;
    bottom: 15px;
	right: auto;
    left: 15px;
}
.adspopup-container.right {
    top: auto;
    left: auto;
    transform: translate(0, 0);
    height: 600px;
    max-width: 600px;
    bottom: 15px;
    right: 15px;
}
.adspopup-container.bottom {
    height: 300px;
    top: auto;
    bottom: 0;
    transform: translate(0, 0);
    width: 100%;
    left: 0;
	max-width: 640px;
}
.adspopup-container-mobile {
    position: fixed;
    z-index: 9995;
    bottom: 0;
    text-align: center;
    left: 50%;
    transform: translate(-50%,0);
    height: 130px;
    max-width: 420px;
    width: 100%;
    padding: 0;
    background: rgba(0, 0, 0, .1);
}
.adspopup-container-mobile.toggle {
    position: relative;
    z-index: auto;
    bottom: auto;
    text-align: center;
    left: auto;
    transform: none;
    height: 120px;
    max-width: 420px;
    width: 100%;
    padding: 10px 0 0;
    background: transparent;
}
.adspopup-close-button {
    position: absolute;
    top: 0px;
    right: 0px;
    width: 23px;
    height: 23px;
    background: #000;
    cursor: pointer;
    z-index: 9;
    border: none;
    box-shadow: 0px 0px 4px 1px rgb(0 0 0 / 30%);
}
.adspopup-container-mobile.toggle .adspopup-close-button, .adspopup-container-desktop.toggle .adspopup-close-button {
    display: none;
}
.adspopup-container-mobile .adspopup-close-button {
    top: 0px;
    right: 0;
}
.adspopup-close-button:before {
    content: "×";
    display: block;
    color: #fff;
    position: absolute;
    top: 0;
    left: 0;
    font-size: 32px;
    line-height: 23px;
    width: 23px;
    text-align: center;
}
.ads-in-text-container {
    margin: 20px 0;
}
.ads-in-anywhere-container {
    margin: 0;
}
.adspopup-container.container-gnezdo {
    height: auto;
    padding: 10px;
    background: none;
}
.adspopup-container-mobile.container-gnezdo {
    background: none;
	transform: translate(-50%,10px);
}
.adspopup-container-mobile.container-gnezdo > div {
    margin: 10px 0 0 0 !important;
}
.adspopup-container.container-gnezdo.bottom {
    height: 300px;
}
.adspopup-container-mobile.container-relap {
    padding: 0 10px;
    background: transparent;
}
.js-relap-widget-wrapper {
    background: #fff;
}
.adspopup-container-mobile.container-relap.toggle {
    position: inherit;
    z-index: auto;
    bottom: auto;
    left: auto;
    transform: none;
    height: auto !important;
    max-width: 100%;
    width: 100%;
    padding: 0;
    background: transparent;
    margin: 20px 0;
}
.adspopup-container-desktop {
    position: fixed;
    width: 100%;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 10000;
    padding: 0 40px;
    box-shadow: 1px -1px 4px 0px rgb(0 0 0 / 40%);
}
.adspopup-container-desktop.toggle {
    position: inherit;
    z-index: auto;
    bottom: auto;
    left: auto;
    transform: none;
    padding: 0;
    background: transparent;
    margin: 20px 0 40px;
    box-shadow: none;
}
.ads-in-text-container.in-visible {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    margin: 0;
    z-index: 9999;
    padding: 0 10px;
    max-width: 100vw;
}
.ads-in-text-container .adspopup-close-button {
	display: none;
}
.ads-in-text-container.in-visible .adspopup-close-button {
	display: block;
}

@media (max-width:576px){
	.adspopup-container {
		height: 500px;
		max-width: 420px;
		padding: 10px 10px 0;
		min-width: 300px;
	}
}