.popup-wrapper:has(.popup_dt) {
    position: fixed;
    top: 0;
    bottom: 0;
    right: 0;
    left: 0;
    background: #fff;
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
    box-sizing: border-box;
    width: 100%;
    height: 100%;
    z-index: 1000000;
}

.popup-wrapper:has(.popup_dt) .close {
	width: max-content;
	text-align: center;
	display: flex;
	flex-direction: row;
	justify-content: flex-end;
	align-items: center;
    cursor: pointer;
}
.popup-wrapper:has(.popup_dt) .close:before {
    content: "SULJE";
    font-family: "Proxima-nova",sans-serif;
    padding-right: 4px;
}

.popup-wrapper:has(.popup_dt) .popup_dt {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.popup-wrapper:has(.popup_dt) img {
    width: auto !important;
    height: 100% !important;
    max-width: 100% !important;
    display: block;
}

.popup-wrapper:has(.popup_dt) .image-wrap {
    background-image: url('https://www.itavayla.fi/neodirect/static/2/banner_mainos.png');
    background-size: 150px;
    display: flex;
    width: 150px;
    height: 50px;
    background-repeat: no-repeat;
    background-position: center;
}

.popup-wrapper:has(.popup_dt) .closeWrapper {
    display: flex;
    justify-content: space-between;
    width: 100%;
    padding: 5px 0;
    border-bottom: 1px solid #dadada;
    margin-bottom: 10px;
}

.popup-wrapper:has(.popup_dt) * {
    box-sizing: border-box;
}

.popup-wrapper:has(.popup_dt) a, .popup-wrapper:has(.popup_dt) section {
    display: flex;
    height: 100%;
    width: 100%;
}

.popup-wrapper:has(.popup_dt) section {
    max-height: calc(100% - 71px);
    padding-bottom: 10px;
}

.popup-wrapper:has(.popup_dt) .close svg {
    width: 20px;
    height: auto;
    cursor: pointer;
}





.popup-wrapper:has(.tarranurkka) {
    max-width: 300px;
    width: 100%;
    position: fixed;
    bottom: 0;
    left: 0;
    z-index: 999999;
}

.popup-wrapper:has(.tarranurkka) .closeWrapper {
    border: 0;
    position: absolute;
    top: 0;
    right: 0;
    padding: 0;
    margin: 0;
}

.popup-wrapper:has(.tarranurkka) .closeWrapper .image-wrap {
    display: none;
}

.popup-wrapper:has(.tarranurkka) .closeWrapper .close svg {
    height: 15px;
    width: 15px;
    fill: #fff;
}

.popup-wrapper:has(.tarranurkka) .closeWrapper .close {
    position: absolute;
    right: 0;
    background: #969696;
    top: 0;
    padding: 3px;
    display: flex;
    cursor: pointer;
}

.popup-wrapper:has(.tarranurkka) .closeWrapper .close:hover svg {
    fill: #d53d20;
}

.popup-wrapper:has(.tarranurkka) img {
    display: block;
    max-width: 300px;
    width: 100%;
}

@media (max-width: 768px) {
    .popup-wrapper:has(.tarranurkka){
        display: none;
    } 
}

@media (max-width: 700px) {
    
    .popup-wrapper:has(.popup_dt) div.closeWrapper {
        padding: 5px 10px;
    } 
}