/* 
Theme Name: CodePix Child
Theme URI: https://github.com/elementor/hello-theme/
Description: Een website door CodePix
Author: Elementor Team
Author URI: https://elementor.com/
Template: hello-codepix
Version: 1.0.2
Text Domain: hello-elementor-child
License: GNU General Public License v3 or later.
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Tags: flexible-header, custom-colors, custom-menu, custom-logo, editor-style, featured-images, rtl-language-support, threaded-comments, translation-ready
*/

/* Hide recaptcha */
.grecaptcha-badge {
    visibility: hidden;
}

form .elementor-field-type-recaptcha_v3 {
    height: 0;
    margin-bottom: 0 !important;
}

.elementor-form .elementor-form-fields-wrapper small {
    line-height: 1.3em;
    display: block;
    text-wrap: balance;
}

.elementor-form .elementor-form-fields-wrapper small a {
    color: inherit;
    text-decoration: underline;
}

/* Elementor form messages */
.elementor-form .elementor-message {
    background-color: #f8f8f8;
    border-radius: 0px;
    padding: 15px;
    line-height: 1.5;
    border: 1px solid #bdbdbd;
}

.elementor-form .elementor-message.elementor-message-success {
    border-bottom: 3px solid var(--e-global-color-primary);
}

/* Hide hidden form fields */
.elementor-form .elementor-field-type-hidden {
    margin-bottom: 0 !important;
    height: 0 !important;
}

/* CPX form checkboxes and radio buttons */
.cpx-form .elementor-field-type-checkbox .elementor-field-option,
.cpx-form .elementor-field-type-acceptance .elementor-field-option,
.cpx-form .elementor-field-type-radio .elementor-field-option {
    position: relative;
    display: flex;
    flex-direction: row;
    align-items: flex-start;
}

.cpx-form .elementor-field-type-checkbox .elementor-field-option label,
.cpx-form .elementor-field-type-acceptance .elementor-field-option label,
.cpx-form .elementor-field-type-radio .elementor-field-option label {
    padding-left: 1.75em;
    position: relative;
    font-weight: 400;
    font-size: var(--e-global-typography-text-font-size);
    line-height: 1.2;
}

.cpx-form .elementor-field-type-checkbox .elementor-field-option label:hover,
.cpx-form .elementor-field-type-acceptance .elementor-field-option label:hover,
.cpx-form .elementor-field-type-radio .elementor-field-option label:hover {
    cursor: pointer;
}

.cpx-form .elementor-field-type-checkbox .elementor-field-option input[type="checkbox"],
.cpx-form .elementor-field-type-acceptance .elementor-field-option input[type="checkbox"],
.cpx-form .elementor-field-type-radio .elementor-field-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.cpx-form .elementor-field-type-checkbox .elementor-field-option label:before,
.cpx-form .elementor-field-type-acceptance .elementor-field-option label:before,
.cpx-form .elementor-field-type-radio .elementor-field-option label:before {
    content: '';
    position: absolute;
    top: 0px;
    left: 0;
    width: 21px;
    height: 21px;
    border-radius: 0px;
    background-color: #fff;
    border: 1px solid #b6b6b6;
    transition: background-color .2s ease-in-out;
    line-height: 0;
}

/* Make the radio buttons round */
.cpx-form .elementor-field-type-radio .elementor-field-option label:before {
    border-radius: 100%;
}

.cpx-form .elementor-field-type-checkbox .elementor-field-option label:after,
.cpx-form .elementor-field-type-acceptance .elementor-field-option label:after,
.cpx-form .elementor-field-type-radio .elementor-field-option label:after {
    content: '';
    color: var(--e-global-color-text);
    position: absolute;
    top: 2px;
    left: 2px;
    width: 17px;
    height: 17px;
    border-radius: 0px;
    background-color: var(--e-global-color-accent);
    transition: opacity .2s ease-in-out, transform .2s ease-in-out;
    line-height: 1;
    text-align: center;

    opacity: 0;
    transform: scale(0);
}

/* Make the radio buttons round */
.cpx-form .elementor-field-type-radio .elementor-field-option label:after {
    border-radius: 100%;
}

.cpx-form .elementor-field-type-checkbox .elementor-field-option:hover label:after,
.cpx-form .elementor-field-type-acceptance .elementor-field-option:hover label:after,
.cpx-form .elementor-field-type-radio .elementor-field-option:hover label:after {
    opacity: 1;
    transform: scale(0.6);
}

.cpx-form .elementor-field-type-checkbox .elementor-field-option input[type="checkbox"]:checked+label:after,
.cpx-form .elementor-field-type-acceptance .elementor-field-option input[type="checkbox"]:checked+label:after,
.cpx-form .elementor-field-type-radio .elementor-field-option input[type="radio"]:checked+label:after {
    opacity: 1;
    transform: none;
    content: '✓';
}

.cpx-form .elementor-field-type-radio .elementor-field-subgroup,
.cpx-form .elementor-field-type-checkbox .elementor-field-subgroup,
.cpx-form .elementor-field-type-acceptance .elementor-field-subgroup {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.cpx-form .elementor-field-type-checkbox .elementor-field-label,
.cpx-form .elementor-field-type-acceptance .elementor-field-label,
.cpx-form .elementor-field-type-radio .elementor-field-label {
    margin-bottom: .5rem;
}

.cpx-form .elementor-field-type-checkbox,
.cpx-form .elementor-field-type-acceptance,
.cpx-form .elementor-field-type-radio {
    margin-bottom: 30px !important;
}

/* End CPX form checkboxes */

/* Fix icons not having auto width defined on ipad */
.elementor-widget-icon svg {
    width: auto !important;
}

/* Elementor animation overwrites */
@keyframes cpx_fadeInDown {
    from {
        opacity: 0;
        transform: translate3d(0, -30px, 0)
    }

    to {
        opacity: 1;
        transform: none
    }
}

.fadeInDown {
    animation-name: cpx_fadeInDown !important;
}

@keyframes cpx_fadeInLeft {
    from {
        opacity: 0;
        transform: translate3d(-30px, 0, 0);
    }

    to {
        opacity: 1;
        transform: none
    }
}

.fadeInLeft {
    animation-name: cpx_fadeInLeft !important;
}

@keyframes cpx_fadeInRight {
    from {
        opacity: 0;
        transform: translate3d(30px, 0, 0);
    }

    to {
        opacity: 1;
        transform: none
    }
}

.fadeInRight {
    animation-name: cpx_fadeInRight !important
}

@keyframes cpx_fadeInUp {
    from {
        opacity: 0;
        transform: translate3d(0, 30px, 0)
    }

    to {
        opacity: 1;
        transform: none
    }
}

.fadeInUp {
    animation-name: cpx_fadeInUp !important;
}

/* Balance out all headings */
h1,
h2,
h3,
h4,
h5,
h6 {
    text-wrap: balance;
}

.text-balance {
    text-wrap: balance;
}

.text-pretty {
    text-wrap: pretty;
}

/* Fix elementor default line height for icons. Icons should not affect button height */
.elementor-widget-button .elementor-button-icon {
    line-height: 0;
    /* Flexbox to keep the icon in the middle if it's not big enough to fill height */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* Backgrounds */
.cpx-background {
    height: 100%;
}

.cpx-background img {
    object-fit: cover;
    object-position: center;
}

/* ::selection {
    background: rgba(251, 80, 0, 0.3);
    color: #FFFFFF;
}
  
::-moz-selection {
    background: rgba(251, 80, 0, 0.3);
    color: #FFFFFF;
} */

/* Prevent focussing woo messages with ugly outline */
.woocommerce-message:focus {
    outline: none;
    box-shadow: none;
}

/* Turn elementor grids into centered flex layout using the gap variables from the grid */
.cpx-grid-to-flex .elementor-grid {
    display: flex;
    flex-wrap: wrap;
    row-gap: var(--grid-row-gap, 30px);
    column-gap: var(--grid-column-gap, 30px);
    justify-content: center;
}

/* Based on the variable --grid-columns (this is an int, say: 5) i need the items (.e-loop-item) to have the correct sizes. calculate the gaps so it doesnt overflow */
.cpx-grid-to-flex .elementor-grid .e-loop-item {
    flex: 0 1 calc(calc(100% / var(--grid-columns, 5)) - var(--grid-column-gap, 30px));
}

body.logged-in .hide-logged-in {
    display: none !important;
}

body:not(.logged-in) .hide-logged-out {
    display: none !important;
}

/* cpx mt auto */
.cpx-mt-auto {
    margin-top: auto;
}

/* Fix paragraph spacings */
.elementor-widget-text-editor p:not(:last-child) {
    margin-bottom: 1em;
}

.elementor-widget-text-editor {

    ul,
    ol {
        padding-left: 1em;
        margin-bottom: 1em;

        li:not(:last-child) {
            margin-bottom: .5em;
        }

        &+ul,
        &+ol {
            margin-top: 1em;
        }
    }
}

/* Fix all icons */
.elementor-widget-container .elementor-icon-wrapper {
    line-height: 0;
}

body {
    --cpx-header-height: 120px;

    /* timing */
    --cpx-enter-duration: 2000ms;
    --cpx-enter-ease: ease-in-out;

    /* start delays als je wilt sequencen */
    --cpx-delay-short: 120ms;
    --cpx-delay-medium: 240ms;
}

.cpx-blurbox {
    background-color: rgba(23, 23, 23, .5);
    backdrop-filter: blur(10px);
}

.cpx-blurbox--darker {
    background-color: rgba(23, 23, 23, .65);
    backdrop-filter: blur(10px);
}

.cpx-blurbox-white {
    background-color: rgba(255, 255, 255, .5);
    backdrop-filter: blur(10px);
}

body.admin-bar {
    --cpx-header-height: calc(120px + 32px);

    .cpx-header {
        top: 32px !important;
    }
}

@media screen and (max-width: 782px) {
    body.admin-bar {
        --cpx-header-height: calc(100px + 46px);

        .cpx-header {
            top: 46px !important;
        }
    }
}

.no-pointer-events {
    pointer-events: none !important;
}

.cpx-banner {
    position: relative;

    .cpx-background {
        opacity: 0;
        transform: scale(1.02) translateZ(0);
    }

    .cpx-background {
        transform-origin: center center;
        will-change: transform, opacity;
        backface-visibility: hidden;
    }

    &.kenburns {
        .cpx-background {
            opacity: 0;
            transform: scale(1.02) translateZ(0);
            animation: cpx_kenburns_in var(--cpx-enter-duration) var(--cpx-enter-ease) var(--cpx-delay-short) forwards;
        }
    }
}

body.elementor-editor-active {
    .cpx-banner .cpx-background {
        opacity: 1 !important;
        transform: none !important;
        animation: none !important;
    }
}

@keyframes cpx_kenburns_in {
    0% {
        opacity: 0;
        transform: scale(1.02) translateZ(0);
    }

    100% {
        opacity: 1;
        transform: scale(var(--cpx-kenburns-scale)) translateZ(0);
    }
}

.cpx-footer-menu {
    a {
        display: inline-block;
    }
}

.reset-img-line-height {
    line-height: 0;

    img {
        line-height: 0;
    }
}

/* Cookie bar */
.cpx2_cookie-balk.cpx2_cookie-balk--v3 {
    left: auto;
    right: 15px;

    .cpx2_cookie-balk__acties {

        button.cpx2_cookie-balk__v3__alles-afwijzen,
        button.cpx2_cookie-balk__v3__selectie-toestaan,
        button.cpx2_cookie-balk__v3__alles-toestaan {
            border-radius: 0 !important;
        }
    }

    .cpx2_cookie-balk__wrapper {
        backdrop-filter: none !important;
        background-color: #fff !important;
        box-shadow: 0 0 30px 0 rgba(0, 0, 0, .2);
    }

    .cpx2_cookie-balk__toggle input[type="checkbox"]+label:after {
        background-color: var(--e-global-color-accent) !important;
    }
}

@media screen and (max-width: 768px) {
    .cpx2_cookie-balk.cpx2_cookie-balk--v3 {
        left: 0;
        right: 0;
    }
}

dfn {
    font-style: normal;
    border-bottom: 1px dotted;
}

.tippy-box {
    border-radius: 0;
    background-color: rgba(23, 23, 23, .7);
    backdrop-filter: blur(10px);
}

.tippy-content {
    img {
        max-height: 100px;
        max-width: 200px;
        margin-bottom: .5em;
    }
}

.aspect-16-10 img {
    aspect-ratio: 16 / 10;
    width: 100%;
    height: auto;
    object-fit: cover;
    object-position: center;
}

.aspect-16-9 img {
    aspect-ratio: 16 / 9;
    width: 100%;
    height: auto;
    object-fit: cover;
    object-position: center;
}

.cpx-slide-link {
    user-select: none;

    .cpx-slide-link__img {
        position: relative;

        &:before {
            content: '';
            display: block;
            position: absolute;
            left: 0;
            top: 0;
            height: 100%;
            width: 0;
            background-color: rgba(23, 23, 23, .1);
            transition: all .5s cubic-bezier(.19, 1, .22, 1);
            z-index: 2;
            backdrop-filter: blur(2px);
        }

        &:after {
            content: '';
            display: block;
            position: absolute;
            left: 50%;
            top: 50%;
            height: 30px;
            width: 30px;
            background-color: rgba(233, 233, 233, 1);
            background-size: 20px;
            background-repeat: no-repeat;
            background-position: center;
            border-radius: 100px;
            transition: all .5s cubic-bezier(.19, 1, .22, 1);
            z-index: 2;
            opacity: 0;
            transform: translate(calc(-50% - 50px), -50%) scale(1);
        }
    }

    .elementor-widget-container {
        z-index: 1;
    }

    .elementor-widget-heading,
    .elementor-widget-text-editor,
    .elementor-widget-post-info {
        transition: all 1s cubic-bezier(.19, 1, .22, 1);
    }

    .elementor-widget-post-info {
        transition-delay: .05s;
    }

    .elementor-widget-text-editor {
        transition-delay: .1s;
    }
}

@media screen and (min-width: 768px) {
    .cpx-slide-link {

        &:hover,
        &:focus {
            .cpx-slide-link__img {
                &:before {
                    width: 100%;
                }

                &:after {
                    opacity: 1;
                    transform: translate(-50%, -50%) scale(1);
                }
            }

            .elementor-widget-heading,
            .elementor-widget-text-editor,
            .elementor-widget-post-info {
                transform: translateY(-10px);
            }
        }
    }
}

/* Swipers */
.cpx-swiper {
    .swiper-pagination {
        .swiper-pagination-bullet {
            width: 30px;
            height: 3px;
            border-radius: 10px;
            transition: all .5s cubic-bezier(.19, 1, .22, 1);
            position: relative;

            /* Small area around the line so it's easier to click it */
            &:before {
                content: '';
                position: absolute;
                top: -15px;
                bottom: -15px;
                left: -5px;
                right: -5px;
                background: transparent;
            }

            &.swiper-pagination-bullet-active {
                width: 50px;
            }
        }
    }
}

@media screen and (min-width: 768px) {
    .cpx-swiper {
        .swiper {
            margin-right: -20vw;
        }
    }
}

/* @media screen and (min-width: 2400px) {
    .cpx-swiper {
        .swiper:after {
            content: '';
            width: 50px;
            height: 100%;
            background-image: linear-gradient(to right, rgba(255, 255, 255, 0), rgba(255, 255, 255, 1));
            position: absolute;
            right: 0;
            top: 0;
            display: block;
            z-index: 10;
        }
    }
} */

@media screen and (max-width: 768px) {
    .cpx-swiper {
        .swiper {
            margin-right: -75vw;
        }

        &.cpx-swiper--dark-pag-mobile {
            --e-n-carousel-dots-normal-color: var(--e-global-color-text) !important;
        }
    }
}

.cpx-header__top,
.cpx-header__main,
.cpx-header__logo,
.cpx-header__backdrop {
    transition: all .5s cubic-bezier(.19, 1, .22, 1);
}

header[data-elementor-type="header"].scrolled-past {
    .cpx-header__top {
        opacity: 0;
        transform: translateY(-30px);
    }

    .cpx-header__main {
        transform: translateY(-36px);
    }

    .cpx-header__logo {
        transform: translateY(20px);

        img {
            width: 100px;
        }
    }

    .cpx-header__backdrop {
        min-height: 100px;
    }
}

@media screen and (max-width: 768px) {
    header[data-elementor-type="header"].scrolled-past {
        .cpx-header__logo {
            transform: translateY(13px);

            img {
                width: 80px;
            }
        }
    }
}

.cpx-js-colorblur {
    position: relative;
    display: inline-block;
}

.cpx-js-colorblur img.cpx-colorblur {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(120px) brightness(2) saturate(1.5);
    opacity: .8 !important;
    /* transform: scale(1.1); */
    transform: scale(1);
    /* voorkomt lelijke blur-randen */
    z-index: -1;
    pointer-events: none;
}

.cpx-js-colorblur img:not(.cpx-colorblur) {
    position: relative;
    z-index: 1;
}

main#content {
    overflow-x: hidden;
}

.cpx-step-number,
.cpx-step-number>.elementor-widget-container {
    min-height: 30px;
    min-width: 30px !important;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* We're setting the opacity to 0 to make a default and prevent flickering if JS is not initialized. Then we can freely set the display values, and we don't have to force it to block or flex */
.display-if-open,
.display-if-closed {
    opacity: 0;
}

.cpx-openingstijden--open {
    .display-if-open {
        opacity: 1;
    }

    .display-if-closed {
        display: none;
    }
}

.cpx-openingstijden--closed {
    .display-if-open {
        display: none;
    }

    .display-if-closed {
        opacity: 1;
    }
}

.cpx-openingstijden__dot {
    height: 10px;
    width: 10px;
    border-radius: 50%;
    display: inline-block;
    background-color: var(--e-global-color-accent);
    box-shadow: 0 2px 10px 0 rgba(23, 23, 23, .3);
    animation: cpx-pulse 3s ease-in-out infinite;
    opacity: .8;
}

@keyframes cpx-pulse {
    0% {
        transform: scale(1);
        opacity: .8;
    }

    50% {
        transform: scale(1.06);
        opacity: 1;
    }

    100% {
        transform: scale(1);
        opacity: .8;
    }
}

.cpx-megamenu__item {
    .elementor-icon-box-title {
        text-wrap: nowrap;
        white-space: nowrap;
    }
}

.cpx-mobile-megamenu__backdrop {
    position: fixed;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(23, 23, 23, .5);
    backdrop-filter: blur(4px);
    z-index: 5;

    opacity: 0;
    pointer-events: none;
    transition: opacity .3s ease-in-out;
}

.cpx-mobile-megamenu-open .cpx-mobile-megamenu__backdrop {
    opacity: 1;
    pointer-events: auto;
}

.cpx-clear-table {
    td {
        padding-left: 0;
        padding-right: 0;
        padding-top: 5px;
        padding-bottom: 5px;
        background: transparent !important;
        border: none;
        font-size: inherit;
    }
}

.cpx-openingstijden-table {
    tr {
        td:first-child {
            width: 170px;
        }
    }
}

/* Style links */
p,
ul,
ol,
li,
span {
    a {
        text-decoration: underline;
        text-underline-offset: 5px;
        text-decoration-color: var(--e-global-color-accent);
        transition: color 0.3s ease;
        font-weight: 500;
    }
}

.cpx-form--offerte {
    --cpx-upload-border-color: #8f8f8f;
    --cpx-upload-background-color: #f8f8f8;
    --cpx-upload-active-background-color: #f0f0f0;
    --cpx-upload-text-color: #1d1d1d;
    --cpx-upload-height: 180px;
}

.cpx-form--offerte .elementor-field-type-upload {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

.cpx-form--offerte .elementor-field-type-upload .elementor-field-label {
    margin: 0;
}

.cpx-form--offerte .elementor-field-type-upload .elementor-upload-field,
.cpx-form--offerte .elementor-field-type-upload .cpx-form__upload-content {
    grid-column: 1;
    grid-row: 2;
    width: 100%;
    height: var(--cpx-upload-height);
}

.cpx-form--offerte .elementor-field-type-upload .elementor-upload-field {
    position: relative;
    z-index: 2;

    margin: 0;
    opacity: 0;
    cursor: pointer;
}

.cpx-form--offerte .elementor-field-type-upload .cpx-form__upload-content {
    display: flex;
    align-items: center;
    justify-content: center;

    padding: 20px;
    border: 2px dashed var(--cpx-upload-border-color);
    background-color: var(--cpx-upload-background-color);
    color: var(--cpx-upload-text-color);
    text-align: center;
    pointer-events: none;
    transition: background-color 150ms ease, border-color 150ms ease;
}

.cpx-form--offerte .elementor-field-type-upload.is-drag-over .cpx-form__upload-content,
.cpx-form--offerte .elementor-field-type-upload:focus-within .cpx-form__upload-content {
    border-color: var(--cpx-upload-text-color);
    background-color: var(--cpx-upload-active-background-color);
}

.cpx-form--offerte .elementor-field-type-upload.has-files .cpx-form__upload-content {
    border-style: solid;
}