/**
 * All of the CSS for your public-facing functionality should be
 * included in this file.
 */

:root {
    --admin-bar-height: 46px;
    --sticky-banner-height: 48px;
    --header-height: 70px;

    --wpco-brand-primary: rgb(41, 127, 170);
}

.wpco-sticky-cta {
    width: 100%;
    z-index: 999;
    position: fixed;
    bottom: 0!important;
    left: 0;
    right: 0!important;
    flex-direction: column;
}

.wpco-sticky-cta .cta-button-wrapper {
    display: flex;
    gap: 18px;
    padding-right: 15px;
    padding-left: 15px;
    margin-bottom: 20px;
    transition: all 250ms ease-in-out 0s;
    visibility: hidden;
    flex-direction: column-reverse;
    align-items: flex-end;
}

.wpco-sticky-cta .cta-fixed {
    font-weight: 600;
    background: #ffffff;
    display: flex;
    flex-direction: row;
    gap: 15px;
    padding: 15px;
    justify-content: center;
}

@media screen and (max-width: 767px) {
    body:not(.page-id-320231) {
        padding-bottom: 81px;
    }
}

@media screen and (min-width: 768px) {
    .wpco-sticky-cta {
        left: auto;
        width: auto;
    }
    .wpco-sticky-cta .cta-fixed {
        background: none;
        width: auto;
        justify-content: end;
    }
}

.wpco-sticky-cta .cta-head {
    visibility: visible;
    color: #1e1e1e;
    font-size: 18px;
    border: 2px solid var(--wpco-brand-primary);
    background: white;
    padding: 10px 25px;
    cursor: pointer;
    width: 100%;
    text-align: center;
    justify-content: center;
    display: flex;
    text-decoration: none;
    align-items: center;
}
.wpco-sticky-cta .cta-head .mobile-text{
    display: flex;
}
.wpco-sticky-cta .cta-head .desktop-icon{
    width: 30px;
    height: 30px;
    display: none;
    margin-top: -4px;
    justify-content: center;
}
.wpco-sticky-cta .cta-head .desktop-icon svg{
    color: var(--wpco-brand-primary);
}

@media screen and (min-width: 768px) {
    .wpco-sticky-cta .cta-head .mobile-text{
        display: none;
    }
    .wpco-sticky-cta .cta-head .desktop-icon{
        display: flex;
    }
}

.wpco-sticky-cta .cta-head-info {
    color: white;
    background: var(--wpco-brand-primary);
}

@media screen and (min-width: 768px) {
    .wpco-sticky-cta .cta-head{
        display: flex;
        border-radius: 50%;
        aspect-ratio: 1;
        width: 60px;
        padding: 0;
        align-items: center;
        justify-content: center;
    }
    .wpco-sticky-cta .cta-head.cta-head-info{
        display: none;
    }

    .wpco-sticky-cta--open .wpco-sticky-cta .cta-head .desktop-icon svg {
        display: none;
    }
    .wpco-sticky-cta--open .wpco-sticky-cta .cta-head .desktop-icon:before {
        content: 'x';
        color: var(--wpco-brand-primary);;
        font-size: 30px;
        line-height: 1;
        text-decoration: none;
    }
}

.wpco-sticky-cta .cta-button {
    display: none;
    top: 50%;
    background: rgb(255, 255, 255);
    color: #1e1e1e;
    padding: 10px 25px;
    font-size: 18px;
    font-weight: 700;
    border: 2px solid var(--wpco-brand-primary);
    transition: all 0.2s ease-out 0s;
    font-family: unset;
    line-height: initial;

    text-decoration: none;

    opacity: 1;
    visibility: visible;

    max-width: 100%;
    white-space: normal;
    word-break: break-word;
}

@media screen and (max-width:767px) {
    .wpco-sticky-cta .cta-button.show-on-mobile {
        display: flex;
    }
}

@media screen and (min-width:768px) {
    .wpco-sticky-cta .cta-button.show-on-desktop {
        display: flex;
    }
}

.wpco-sticky-cta .cta-button.show-on-mobile.show-on-desktop {
    display: flex;
}

@media screen and (max-width:420px) {
    .wpco-sticky-cta .cta-head,
    .wpco-sticky-cta .cta-button {
        padding: 7px 10px;
        font-size: 16px;
    }
}

.wpco-sticky-cta--open {
    position: relative;
}
.wpco-sticky-bg {
    opacity: 0;
    z-index: -1;
}
.wpco-sticky-cta--open .wpco-sticky-bg {
    content: '';
    z-index: 995;
    opacity: 1;
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    transition: all 0.4s ease-in-out;
}

.wpco-sticky-cta--closed .wpco-sticky-cta .cta-button {
    opacity: 0;
    visibility: hidden;
    margin-bottom: -42px;
}

.wpco-sticky-cta--closed .wpco-sticky-cta .cta-button .cta-button__label {
    opacity: 0;
    visibility: hidden;
}


.wpco-sticky-banner {
    position: sticky;
    display: inline-block;
    width: 100%;
    line-height: 1;
    font-size: 12px;
    padding: 12px 15px;
    text-align: center;
    top: 0;
    left: 0;
    z-index: 999;
}

.wpco-sticky-banner .wpco-sticky-banner--text p {
    margin: 0;
}
.wpco-sticky-banner .wpco-sticky-banner--text a {
    text-decoration: underline;
}
.wpco-sticky-banner .wpco-sticky-banner--close {
    position: absolute;
    right: 15px;
    font-size: 16px;
    top: 50%;
    transform: translateY(-50%);
}

.wpco-modal-window {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    opacity: 0;
    visibility: hidden;
    z-index: 999;
    transition: all 0.5s;
    pointer-events: none;
}
.wpco-modal-backdrop {
    cursor: pointer;
    width: 100%;
    height: 100%;
    position: absolute;
    left: 0;
    top: 0;
    z-index: 0;
    background-color: rgba(16, 16, 16, 0.6);
}
/*.wpco-modal-window:target {*/
/*  visibility: visible;*/
/*  opacity: 1;*/
/*  pointer-events: auto;*/
/*}*/
.wpco-modal-window > div .js-close-modal{
    align-self: end;
    display: flex;
    position: absolute;
    top: 0;
    right: 0;
    font-size: 20px;
    padding: 5px 8px;
    color: #ffffff;
    background: var(--wpco-brand-primary);;
}
.wpco-modal-window > div .modal-image{
    object-fit: cover;
    height: 100%;
    object-position: center center;
}
.wpco-modal-window > div .content{
    padding: 2em;
    display: flex;
    flex-direction: column;
    flex: 1;
    justify-content: center;
}
.wpco-modal-window > .wpco-modal-wrapper {
    position: absolute;
    display: flex;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    z-index: 9;
    max-width: 1024px;
}
.wpco-modal-window.show-popup {
    pointer-events: auto;
    visibility: visible;
    opacity: 1;
    display: flex;
}

.wpco-modal-content--mobile {
    display: none;
}

.wpco-cta-footer {
    transition: transform 0.1s linear;
    padding: 15px 24px;
    display: none;
    position: fixed;
    top: 0;
    width: 100%;
    text-align: center;
    font-weight: bold;
    z-index: 999;
}

.admin-bar .wpco-sticky-banner + #site-header + .wpco-cta-footer {
    transform: translateY(calc(var(--admin-bar-height) + var(--header-height) + var(--sticky-banner-height)))  translateX(-50%);
    left: 50%;
}

.wpco-sticky-banner + #site-header + .wpco-cta-footer {
    transform: translateY(calc(var(--header-height) + var(--sticky-banner-height)))  translateX(-50%);
    left: 50%;
}
.admin-bar #site-header + .wpco-cta-footer {
    transform: translateY(calc(var(--admin-bar-height) + var(--header-height))) translateX(-50%);
    left: 50%;
}
#site-header.header-container-sticked + .wpco-cta-footer {
    transform: translateY(0)  translateX(-50%);
    left: 50%;
}
.wpco-cta-footer {
    transform: translateY(var(--header-height))  translateX(-50%);
    left: 50%;
}

@media screen and (max-width:991px) {
    .wpco-modal-wrapper {
        width: 90%!important;
    }
}
@media screen and (max-width:767px) {
    .wpco-sticky-cta .cta_hide_mobile {
        display: none;
    }
    .wpco-cta-footer {
        display: block;
    }
    .wpco-modal-content--desktop {
        display: none;
    }
    .wpco-modal-content--mobile {
        display: block;
    }
    .wpco-modal-window > .wpco-modal-wrapper {
        flex-direction: column;
    }
    .wpco-modal-window > div .modal-image {
        height: 200px;
        width: 100%;
    }
}