
#ckbp_popup {
    --overlay-popup-banner-color: #000;
}
/*--------------------------------------------*/
#ckbp_banner
{
    position: relative;
    z-index: 1;
    margin-bottom: -2px;
    background: var(--back-banner-color);
}
#ckbp_bannerText
{
    padding: 20px;
    text-align: center;
    position: relative;
    z-index: 1;
    color: var(--text-banner-color);
}
#ckbp_bannerText>p:first-child
{
    margin: 0;
}   
#ckbp_banner img
{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    opacity: 0.3;
}
/*-----------------------------------------------------------*/
#ckbp_popup, #ckbp_popupBefore
{
    content:'';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 100;
    display: grid;
    align-items: center;
    /* justify-content: center; */
}

#ckbp_popup.hidden
{
    display: none;
}

#ckbp_popupBefore
{
    position: absolute;
    background: var(--overlay-popup-banner-color);
    opacity: 0.8;
    z-index: 0;
    cursor: pointer;
}
#ckbp_popupTextOnly>*:first-child
{
    margin-top: 0;
}
#ckbp_popupTextOnly *:not(.button, strong,a)
{
   color: var(--text-popup-color);
}

.ckbp_popupText
{
    position: relative;
    z-index: 1;
    display: block;
    box-sizing: border-box;
    background: var(--back-popup-color);
    color: var(--text-popup-color);
    box-sizing: border-box;
    margin: 0 auto;
    width: 100%;
    max-width: 550px;
    /* overflow-y: scroll; */
    border-radius: 3px;
    overflow: hidden;
}
.ckbp_popupText p
{
    margin-bottom: 10px;
}

#ckbp_popupTextOnly::-webkit-scrollbar {
    width: 5px;
    height: 10px;
  }

  #ckbp_popupTextOnly::-webkit-scrollbar-thumb {
    background: #dadada;
    border: 0px none #ffffff;
    border-radius: 0px;
  }

#ckbp_popupTextOnly img
{
    width: 100%;
    height: 100%;
    object-fit: contain;
    line-height: 0;
    display: block;
}
#ckbp_popupTextOnly a:not(.lien-englobe),#ckbp_bannerText a:not(.lien-englobe)
{
    position: relative;
    z-index: 2;
}

#ckbp_popupText .lien-englobe
{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    background: none;
    border: none;
}

#ckbp_popup:not(.fixedImage):not(.imageOnly) #ckbp_popupTextOnly img
{
    margin: 20px 0;
}

.ckbp_popupText>*:not(a,.ckbp_close), #ckbp_bannerText>*:not(a,.ckbp_close)
{
    color: inherit!important;
}
#ckbp_bannerText>*:not(a)
{
    text-align: center;
}

#ckbp_popup .ckbp_close
{
    position: absolute;
    top: 0;
    right: 0;
    padding: 11px 16px;
    box-sizing: border-box;
    z-index: 3;
    cursor: pointer;
    font-size: 1.5em;
    line-height: 1;
    transition: all 0.4s;
    font-family: var(--font-bold);
    background: var(--back-popup-color);
    color: var(--text-popup-color);
}
.ckbp_popupWrap
{
    max-width: 800px;
    font-family: var(--font-bold);
}

.ckbp_close:hover
{
    color: var(--back-popup-color);
}

#ckbp_popup .liresuite a.button
{
    color: var(--text-popup-color);
}
#ckbp_popup .liresuite a.button:hover
{
    color: var(--back-popup-color);
}

#ckbp_popupTextOnly
{
    z-index: 1;
    position: relative;
    overflow-y: scroll;
    max-height: 90vh;
}
#ckbp_popup:not(.imageOnly) #ckbp_popupTextOnly
{
    padding: 50px 30px;
    box-sizing: border-box;
}
/*--------------------------------------------*/
#ckbp_popup.fixedImage:not(.imageOnly) img
{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    
}
#ckbp_popup.fixedImage:not(.full-opacity) img
{
    opacity: 0.2;
}

#ckbp_popup.fixedImage #ckbp_popupTextOnly
{
    display: grid;
    align-items: center;
    justify-content: center;
    align-content: center;
    height: 100%;
}

#ckbp_popup.imageOnly img
{
    width: 100%;
    height: 100%;
    object-fit: contain;
}

#ckbp_popup.imageOnly.fixedImage img
{
    object-fit: cover;
    display: block;
}
