/* 
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
*/

:root {
    --cpx-error-color: #891c19;
}

/* 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: rgb(255 255 255 / 47%);
    backdrop-filter: blur(3px);
    border-radius: 0px;
    padding: 15px;
    line-height: 1.5;
    border: 1px solid var(--e-global-color-75db37d);

    &.elementor-message-danger {
        color: var(--cpx-error-color);
    }
}

.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: 5px;
    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: #fff;
    position: absolute;
    top: 2px;
    left: 2px;
    width: 17px;
    height: 17px;
    border-radius: 5px;
    background-color: var(--e-global-color-primary);
    transition: opacity .2s ease-in-out, transform .2s ease-in-out;
    line-height: 0;

    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;
}

.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;
}

/* Flex i.p.v. grid, met dezelfde gap-variabelen */
.cpx-grid-to-flex .elementor-grid {
    display: flex;
    flex-wrap: wrap;
    row-gap: var(--grid-row-gap, 40px);
    column-gap: var(--grid-column-gap, 50px);
    justify-content: center;
}

/* Breedte per item: (100% - ((cols - 1) * gap)) / cols */
.cpx-grid-to-flex .elementor-grid .e-loop-item {
    box-sizing: border-box;
    flex: 0 0 calc((100% - ((var(--grid-columns, 5) - 1) * var(--grid-column-gap, 50px))) / var(--grid-columns, 5));
    max-width: calc((100% - ((var(--grid-columns, 5) - 1) * var(--grid-column-gap, 50px))) / var(--grid-columns, 5));
}

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,
.fix-paragraph-spacing {
    p:not(:last-child) {
        margin-bottom: 1em;
    }
}

.elementor-widget-text-editor {

    ul,
    ol {
        padding-left: 1em;
    }
}

.fix-content-headings {

    h1,
    h2,
    h3,
    h4,
    h5,
    h6 {
        margin-top: 1em;
    }
}

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

.elementor-icon svg {
    overflow: visible;
}

:root {
    --cpx-header-height: 110px;
    --cpx-inner-container: 1100px;
}

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

@media screen and (max-width: 782px) {
    body.admin-bar {
        .cpx-header {
            top: 46px !important;
        }
    }
}

@media screen and (max-width: 600px) {
    body.admin-bar {
        header[data-elementor-type="header"].scrolled-past .cpx-header {
            top: 0 !important;
        }
    }
}

/* Buttons */
.cpx-button {
    .elementor-button-content-wrapper {
        align-items: center;
    }

    .elementor-button-icon {
        transition: transform 0.7s cubic-bezier(.19, 1, .22, 1);
    }

    &.cpx-button--arrow {
        .elementor-button-icon {
            font-size: 27px;
        }

        .elementor-button-text {
            transition: all 0.7s cubic-bezier(.19, 1, .22, 1);
        }

        &:hover,
        &:focus {
            .elementor-button-icon {
                transform: translateX(5px) scale(1.1);
            }
        }
    }
}

.cpx-header {
    transition: background-color .7s cubic-bezier(.19, 1, .22, 1);

    >.e-con-inner {
        transition: all .7s cubic-bezier(.19, 1, .22, 1);
    }
}

@media screen and (min-width: 1024px) {
    header[data-elementor-type="header"] {
        &.scrolled-past {
            .elementor-widget-n-menu {
                --n-menu-title-distance-from-content: 15px;
            }
        }

        &:hover {
            .cpx-header {
                background-color: color-mix(in srgb, rgba(21, 21, 21, 1), black 10%) !important;
                backdrop-filter: blur(2px);
            }
        }
    }

    .e-n-menu-title {
        z-index: 2;
        position: relative;
    }

    .e-n-menu-content {
        z-index: 1;


        &:after {
            content: '';
            position: fixed;
            top: 110px;
            left: 0;
            width: 100%;
            height: 100vh;
            background-color: rgba(21, 21, 21, .2);
            z-index: 0;
            opacity: 0;
            pointer-events: none;
            user-select: none;
            transition: opacity .3s ease-in-out;
        }

        &.e-active:after {
            opacity: 1;
            pointer-events: auto;
            user-select: auto;
        }
    }
}

@media screen and (max-width: 1024px) {
    .cpx-header {
        .e-n-menu-heading {
            overflow: hidden;
        }

        .elementor-widget-n-menu .e-n-menu-content>.e-con {
            animation-duration: 0s !important;
        }

        .e-n-menu-wrapper {
            overflow-y: auto !important;
            max-height: calc(100dvh - 90px);
            overscroll-behavior: none;

            .e-n-menu-item {
                opacity: 0;
                transition: all .3s ease-in-out;

                .e-n-menu-title-container,
                .e-n-menu-dropdown-icon {
                    opacity: 0;
                    transform: translateY(-10px);
                    transition: all .3s ease-in-out;
                }
            }
        }
    }

    body.cpx-elementor-menu-open {
        header[data-elementor-type="header"] {
            .cpx-header {
                background-color: color-mix(in srgb, rgba(21, 21, 21, 1), black 10%) !important;
                backdrop-filter: blur(2px);

                .e-n-menu-wrapper {
                    .e-n-menu-item {
                        opacity: 1;

                        .e-n-menu-title-container,
                        .e-n-menu-dropdown-icon {
                            opacity: 1;
                            transform: translateY(0px);
                        }
                    }
                }
            }
        }
    }

    header[data-elementor-type="header"].scrolled-past {
        .e-n-menu-wrapper {
            max-height: calc(100dvh - 60px) !important;
        }
    }
}

header[data-elementor-type="header"].scrolled-past {
    .elementor-widget-n-menu {
        --n-menu-toggle-icon-distance-from-dropdown: 20px
    }

    .cpx-header {
        background-color: rgba(21, 21, 21, .9);
        backdrop-filter: blur(2px);

        >.e-con-inner {
            padding-top: 15px;
            padding-bottom: 15px;
        }
    }
}

/* Loading bar */
.cpx-loading-bar {
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    background-color: #fff;
    border: 1px solid #E8E8E8;
    position: relative;
    padding: 4px 5px;
    padding-left: 10px;
    width: 300px;
    max-width: 100%;

    .cpx-loading-bar__text {
        font-family: var(--e-global-typography-5d956c9-font-family), Sans-serif;
        font-weight: var(--e-global-typography-5d956c9-font-weight);
        text-transform: var(--e-global-typography-5d956c9-text-transform);
        letter-spacing: var(--e-global-typography-5d956c9-letter-spacing);
        font-size: 10px;
        letter-spacing: 0;
        line-height: 13px;
        color: #fff;
        z-index: 3;
        position: relative;
        max-width: 75%;
        padding: 3px 0;
    }

    .cpx-loading-bar__progress {
        position: absolute;
        top: 0;
        left: 0;
        width: 0;
        height: 100%;
        background-color: var(--e-global-color-primary);
        transition: width 1.3s cubic-bezier(.19, 1, .22, 1);
        transition-delay: 200ms;
    }
}

.projectreeks_percentage_shortcode {
    margin-bottom: 10px;

    &+.cpx-loading-bar {
        width: 220px;
    }
}

.projectreeks_percentage_shortcode__heading {
    font-family: var(--e-global-typography-d95204a-font-family), Sans-serif;
    font-size: var(--e-global-typography-d95204a-font-size);
    font-weight: var(--e-global-typography-d95204a-font-weight);
    text-transform: var(--e-global-typography-d95204a-text-transform);
}

.cpx-form--label-inside {

    .elementor-field-type-text,
    .elementor-field-type-email,
    .elementor-field-type-textarea,
    .elementor-field-type-text,
    .elementor-field-type-upload,
    .elementor-field-type-number {
        position: relative;

        label {
            position: absolute;
            left: 31px;
            top: 10px;

            font-family: var(--e-global-typography-c4e821a-font-family), Sans-serif;
            font-size: var(--e-global-typography-c4e821a-font-size);
            text-transform: var(--e-global-typography-c4e821a-text-transform);
            line-height: var(--e-global-typography-c4e821a-line-height);
            font-weight: 500;
        }
    }

    .elementor-field-type-upload {
        input {
            padding-bottom: 3px !important;
        }
    }

    .elementor-form-fields-wrapper {
        align-items: center;
    }

    .elementor-field-type-submit {
        width: 20%;
    }
}

@media screen and (max-width: 768px) {
    .cpx-form--label-inside {
        .elementor-field-type-submit {
            width: 100%;
        }
    }
}

.cpx-form--invest {
    .elementor-button-content-wrapper {
        justify-content: flex-end !important;
    }
}

.cpx-big-logo {
    pointer-events: none;
    user-select: none;
}

.cpx-breadcrumb__caret {
    display: inline-block;
    width: 10px;
    height: 10px;
    margin: 0 5px;
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
}

#breadcrumbs {
    >span {
        >span:not(.cpx-breadcrumb__caret):not(.breadcrumb_last) {
            position: relative;

            &:after {
                content: '';
                position: absolute;
                bottom: -2px;
                left: 0;
                width: 100%;
                height: 1px;
                background-color: var(--e-global-color-primary);
            }

            a {
                transition: color .3s ease-in-out;

                &:hover {
                    color: var(--e-global-color-primary);
                }
            }
        }
    }
}

.cpx2_cookie-balk.cpx2_cookie-balk--v3 {
    left: auto;
    right: 15px;

    .cpx2_cookie-balk__wrapper {
        background-color: rgba(21, 21, 21, .8) !important;
    }

    .cpx2_cookie-balk__toggles label {
        color: var(--e-global-color-secondary);
        font-family: var(--e-global-typography-text-font-family), Sans-serif !important;
        font-size: var(--e-global-typography-text-font-size) !important;
        font-weight: var(--e-global-typography-text-font-weight) !important;
        line-height: 1 !important;
        text-transform: none;
    }

    .cpx2_cookie-balk__acties {
        button {

            &.cpx2_cookie-balk__v3__alles-afwijzen,
            &.cpx2_cookie-balk__v3__selectie-toestaan {
                background-color: #fff;
            }

            &.cpx2_cookie-balk__v3__alles-toestaan {
                background-color: var(--e-global-color-primary) !important;
                color: var(--e-global-color-secondary) !important
            }

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

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

@media screen and (min-width: 1024px) {

    /* Styles that apply inside the editor */
    .cpx-dynamic-cols {

        .cpx-dynamic-cols__overlay,
        .cpx-dynamic-cols__overlay-donker {
            pointer-events: none;
            user-select: none;
        }
    }

    /* Do not apply in editor */
    body:not(.elementor-editor-active) {
        .cpx-dynamic-cols {
            .cpx-dynamic-cols__col {
                transition: all .6s cubic-bezier(.19, 1, .22, 1);

                .cpx-dynamic-cols__overlay {
                    background-color: color-mix(in srgb, var(--e-global-color-accent), transparent 50%);
                    backdrop-filter: blur(5px);
                    transition: all .6s cubic-bezier(.19, 1, .22, 1);
                    pointer-events: none;
                    user-select: none;
                }

                .cpx-dynamic-cols__overlay-donker {
                    background: linear-gradient(to top, rgba(21, 21, 21, 0.6), rgba(21, 21, 21, 0) 50%);
                    opacity: 0;
                    transition: all .6s cubic-bezier(.19, 1, .22, 1);
                    pointer-events: none;
                    user-select: none;
                }

                .cpx-dynamic-cols__content {
                    opacity: 0;
                    transform: translateY(10px);
                    transition: all .6s cubic-bezier(.19, 1, .22, 1);
                }

                &:hover,
                &:focus {
                    width: 150%;

                    .cpx-dynamic-cols__overlay {
                        background-color: color-mix(in srgb, var(--e-global-color-accent), transparent 100%);
                        backdrop-filter: blur(0px);
                    }

                    .cpx-dynamic-cols__overlay-donker {
                        opacity: 1;
                    }

                    .cpx-dynamic-cols__content {
                        opacity: 1;
                        transform: translateY(0);
                    }
                }
            }
        }
    }
}

@media screen and (max-width: 1024px) {
    .cpx-dynamic-cols {
        .cpx-dynamic-cols__col {
            .cpx-dynamic-cols__overlay {
                background-color: color-mix(in srgb, var(--e-global-color-accent), transparent 90%);
                backdrop-filter: blur(3px);
                transition: all .6s cubic-bezier(.19, 1, .22, 1);
                pointer-events: none;
                user-select: none;
            }

            .cpx-dynamic-cols__overlay-donker {
                background: linear-gradient(to top, rgba(21, 21, 21, 0.6), rgba(21, 21, 21, 0));
                transition: all .6s cubic-bezier(.19, 1, .22, 1);
                pointer-events: none;
                user-select: none;
            }
        }
    }
}

/* Partners */
.partner-kaartjes {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-start;
    gap: 40px 75px;
    margin: 0;
    list-style: none;
}

.partner-kaartje {
    background-color: #fff;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 30px;
    flex: 0 1 calc(33.333% - 50px);
    position: relative;
}

.partner-kaartje__flags {
    position: absolute;
    right: 10px;
    top: 10px;

    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;

    img {
        height: 25px;
        width: auto;
    }
}

.partner-kaartje__logo {
    line-height: 0;
}

.partner-kaartje__logo img {
    max-width: 200px;
    height: 90px;
    object-fit: contain;
    object-position: left center;
    margin-bottom: 0px;
}

.partner-kaartje__title {
    font-size: 1.3rem;
    font-weight: 600;
    margin: 10px 0;
}

.partner-kaartje__description {
    font-size: 1rem;
    color: #666;
    margin: 0;

    height: 5.5rem;
    position: relative;
    overflow: hidden;

    &:after {
        content: '';
        bottom: 0;
        left: 0;
        background-image: linear-gradient(to bottom, rgba(255, 255, 255, 0), rgba(255, 255, 255, 1));
        width: 100%;
        height: 2rem;
        position: absolute;
        z-index: 2;
    }
}

.partner-kaartje__read-more {
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    margin-top: 15px;
    color: var(--e-global-color-primary);
    transition: color .3s ease-in-out;

    span:first-of-type {
        display: inline-block;
    }

    span:last-of-type {
        display: none;
    }

    img {
        height: 12px;
        width: auto;
        transition: transform 0.7s cubic-bezier(.19, 1, .22, 1);
    }

    &:hover {
        cursor: pointer;

        img {
            transform: translateY(3px);
        }
    }

    &.open {
        span:first-of-type {
            display: none;
        }

        span:last-of-type {
            display: inline-block;
        }

        img {
            transform: rotate(180deg);
        }

        &:hover {
            img {
                transform: rotate(180deg) translateY(3px);
            }
        }
    }
}

.partner-kaartje__divider {
    border: none;
    border-top: 1px solid var(--e-global-color-primary);
    margin: 15px 0 !important;
    margin-bottom: 20px !important;
}

@media screen and (max-width: 1024px) {
    .partner-kaartjes {
        gap: 50px;
    }

    .partner-kaartje {
        flex: 0 1 calc(50% - 25px);
        padding: 25px;
    }
}

@media screen and (max-width: 768px) {
    .partner-kaartjes {
        gap: 30px;
    }

    .partner-kaartje {
        flex: 0 1 100%;
        padding: 20px;
    }
}

.partner-kaartje__read-more.open~.partner-kaartje__description::after,
.partner-kaartje__description[style*="height: auto"]::after {
    display: none;
}

/* Aspect ratio */
.cpx-aspect-ratio {
    img {
        object-fit: cover;
        object-position: center;
        width: 100%;
    }

    &.a4-3 img {
        aspect-ratio: 4 / 3;
    }

    &.a16-9 img {
        aspect-ratio: 16 / 9;
    }

    &.a1-1 img {
        aspect-ratio: 1 / 1;
    }
}