@import "typo3conf/ext/gowest_theme/Resources/Public/Sass/functions";
@import "typo3conf/ext/gowest_theme/Resources/Public/Sass/mixins/breakpoints";
@import "typo3conf/ext/gowest_theme/Resources/Public/Sass/mixins/gowest";


.frame-type-promotionoverlay {
    position: fixed;
    top: 50%;
    left: 50%;
    height: 100vh;
    width: 100vw;
    transform: translate(-50%, -50%);
    background: rgba(0,0,0,0.5);
    z-index: 2000;
    backdrop-filter: blur(5px);  
    display: none;
}


/* auf den Landingpages kein promotionoverlay */

body.pid157 .frame-type-promotionoverlay.visible,
body.pid45 .frame-type-promotionoverlay.visible {
    display: none !important;
}


.frame-type-promotionoverlay.visible {
    display: block;
}

.frame-type-promotionoverlay .inside {
    position: absolute;
    top: 50%;
    left: 50%;
    margin: 0;
    transform: translate(-50%, -50%);
    max-height: calc(100% - 140px);
    max-width: calc(100vw - 20px);
    overflow: scroll;
}

.frame-type-promotionoverlay .inside .innerWrap {
    background: #fff;
    box-shadow: 0px 0px 15px rgba(0, 0, 0, 0.25);
    padding: 0;
}

.frame-type-promotionoverlay .text {
    padding: 20px;
}

.frame-type-promotionoverlay .image {
    position: relative;
    height: 200px;
    padding: 0;
}


@media (min-width: 992px) {
    .frame-type-promotionoverlay .textWrap {
        max-height: calc(100vh - 220px);
        overflow: auto;
        overflow-x: hidden;
    }
}

.frame-type-promotionoverlay .close-button {
    position: absolute;
    top: 10px;
    right: 10px;
    height: 40px;
    width: 40px;
    background: #ff0068;
    color: #fff;
}
  
.frame-type-promotionoverlay .withIMG .close-button {
    top: -190px;
}

.frame-type-promotionoverlay .close-button:before {
    content: "\e90b";
    display: inline-block;
    width: 100%;
    text-align: center; 
    line-height: 40px;
    font-family: 'default';
    font-size: 13px;
    cursor: pointer;
}

@media (min-width: 992px) {
    .frame-type-promotionoverlay .inside .close-button {
        top: -20px;
        right: -20px; 
    }
    
    .frame-type-promotionoverlay .image {
        position: absolute;
        height: 100%;
    }
    .frame-type-promotionoverlay .inside {
        overflow: visible;
        max-width: calc(100vw - 140px);
    }
    
    .frame-type-promotionoverlay .text {
        padding: 50px 40px;
    }
}

