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

form .elementor-field-type-recaptcha_v3 .elementor-field {
    background-color: transparent !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: #fff;
    border-radius: 0px;
    padding: 15px;
    line-height: 1.5;
    border: 1px solid var(--e-global-color-secondary);

    border-top: none;
    border-left: none;
    border-right: none;
}

.elementor-form .elementor-message.elementor-message-success {
    border-bottom: 3px solid #75e580;
    background-color: #effcf0;
    color: #273d29;
}

.elementor-form .elementor-message.elementor-message-danger {
    border-bottom: 3px solid #d9534f;
}

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

/* 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,
.elementor-widget-theme-post-content {
    p:not(:last-child) {
        margin-bottom: 1em;
    }
}

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

.cpx-watermerk {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    opacity: .05;

    img {
        width: 410px;
        height: auto;
        max-width: 90vw;
    }

    &.cpx-watermerk--full {
        img {
            width: 650px;
        }
    }
}


.cpx-diensten {
    .cpx-diensten__card {
        position: relative;

        &:after,
        &:before {
            content: '';
            background-color: var(--e-global-color-text);
            position: absolute;
            display: inline-block;
        }
    }
}

@media screen and (min-width: 1024px) {
    .cpx-diensten {
        .cpx-diensten__card {

            &:nth-child(4n+1),
            &:nth-child(4n+2),
            &:nth-child(4n+3) {
                &:after {
                    width: 1px;
                    height: calc(100% + 37.5px);
                    right: -37.5px;
                    top: 0;
                }

            }

            &:nth-child(4n+1),
            &:nth-child(4n+2),
            &:nth-child(4n+3),
            &:nth-child(4n+4) {
                &:before {
                    width: calc(100% + 75px);
                    height: 1px;
                    top: calc(100% + 37.5px);
                    left: -37.5px;
                }

            }

            &:nth-child(4n+1):nth-last-child(-n+4),
            &:nth-child(4n+2):nth-last-child(-n+4),
            &:nth-child(4n+3):nth-last-child(-n+4) {
                &:before {
                    display: none;
                }

                &:after {
                    top: -37.5px;
                }
            }
        }
    }
}

@media screen and (min-width: 768px) and (max-width: 1024px) {
    .cpx-diensten {
        .cpx-diensten__card {
            &:nth-child(2n+1) {
                &:after {
                    width: 1px;
                    height: calc(100% + 37.5px);
                    right: -37.5px;
                    top: 0;
                }
            }

            &:nth-child(2n+1):nth-child(n+3) {
                &:after {
                    top: -37.5px;
                    height: calc(100% + 75px);
                }
            }

            &:before {
                width: calc(100% + 75px);
                height: 1px;
                top: calc(100% + 37.5px);
                left: -37.5px;
            }
        }
    }
}

@media screen and (max-width: 768px) {
    .cpx-diensten {
        .cpx-diensten__card {

            &:before,
            &:after {
                display: none;
            }
        }
    }
}

.cpx-slider {
    .swiper {
        padding: 0px 20px !important;
        padding-bottom: 60px !important;
        margin-left: -20px;
        margin-right: -20px;
        mask-image: linear-gradient(to right, transparent 0px, black 20px, black calc(100% - 20px), transparent 100%);
        -webkit-mask-image: linear-gradient(to right, transparent 0px, black 20px, black calc(100% - 20px), transparent 100%);
    }

    .swiper-wrapper {
        padding: 20px 0;
    }

    .swiper-pagination {

        .swiper-pagination-bullet {
            opacity: 1 !important;
            border: 1px solid var(--e-global-color-secondary);
            padding: 2px;
            background-color: #fff !important;
            position: relative;

            &:after {
                display: block;
                content: '';
                position: absolute;
                left: 50%;
                top: 50%;
                transform: translate(-50%, -50%) scale(0);
                height: 65%;
                width: 65%;
                background-color: transparent;
                border-radius: 50%;
                transition: background-color .2s ease-in-out, transform .2s ease-in-out;
            }

            &:hover,
            &.swiper-pagination-bullet-active {
                &:after {
                    background-color: var(--e-global-color-text);
                }
            }

            &:hover:after {
                transform: translate(-50%, -50%) scale(.8);
            }

            &.swiper-pagination-bullet-active:after {
                transform: translate(-50%, -50%) scale(1);
            }
        }
    }

    &.cpx-slider--on-dark {
        .swiper-pagination {
            .swiper-pagination-bullet {
                background-color: var(--e-global-color-secondary) !important;

                &:hover,
                &.swiper-pagination-bullet-active {
                    &:after {
                        background-color: var(--e-global-color-primary);
                    }
                }
            }
        }
    }

    &.cpx-slider--steps {
        .swiper-slide:nth-last-child(-n+2) {
            >.e-con {
                border-right: none;
            }
        }

        .swiper-pagination {
            .swiper-pagination-bullet {
                width: 40px;
                height: 6px;
                border-radius: 5px;
                background-color: color-mix(in srgb, var(--e-global-color-text) 30%, transparent) !important;
                transition: all .2s ease-in-out;

                &:before {
                    content: '';
                    position: absolute;
                    top: -8px;
                    left: -8px;
                    width: calc(100% + 16px);
                    height: calc(100% + 16px);
                    background: transparent;
                }

                &:after {
                    border-radius: 5px;
                    height: 100%;
                    width: 0;
                    transition: all .2s ease-in-out;
                }

                &:hover,
                &:focus {
                    &:after {
                        width: 50%;
                    }
                }

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

                    &:after {
                        width: 100%;
                    }
                }
            }
        }
    }
}

@media screen and (min-width: 1900px) {
    .cpx-slider.cpx-slider--steps {
        .swiper {
            margin-right: -36vw;
        }

        .swiper-wrapper {
            padding-right: 36vw;
        }
    }

    .cpx-slider--phones {
        .swiper {
            margin-left: -33vw;
            margin-right: -33vw;
        }
    }
}

@media screen and (min-width: 1024px) and (max-width: 1900px) {
    .cpx-slider.cpx-slider--steps {
        .swiper {
            margin-right: -33vw;
        }

        .swiper-wrapper {
            padding-right: 33vw;
        }
    }

    .cpx-slider--phones {
        .swiper {
            margin-left: -25vw;
            margin-right: -25vw;
        }
    }
}

@media screen and (min-width: 768px) and (max-width: 1024px) {
    .cpx-slider.cpx-slider--steps {
        .swiper {
            margin-right: -30vw;
        }

        .swiper-wrapper {
            padding-right: 30vw;
        }
    }

    .cpx-slider--phones {
        .swiper {
            margin-left: -20vw;
            margin-right: -20vw;
        }
    }
}

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

        .swiper-wrapper {
            padding-right: 75vw;
        }
    }

    .cpx-slider--phones {
        .swiper {
            margin-left: -15vw;
            margin-right: -15vw;
        }
    }
}

.cpx-slider--phones {
    user-select: none;

    figure {
        aspect-ratio: 1/2.02;
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: center;
        container-type: inline-size;
        /* Forceer HDR video's (iPhone) naar SDR kleurruimte */
        filter: saturate(1);
        /* <- dit toevoegen */

        img,
        video {
            width: 97%;
            height: 98%;
            object-fit: cover;
            object-position: center;
            border-radius: 14cqi;
            /* relatief aan de breedte van figure */
            user-select: none;
            background-color: #171717;
            z-index: 1 !important;
        }

        &:after {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-size: 100% 100%;
            background-position: center;
            background-repeat: no-repeat;
            z-index: 2 !important;
        }
    }
}

.cpx-logo {
    aspect-ratio: 1/1;
    align-self: center;
    background-color: #fff;
    padding: 10%;

    .elementor-widget-container {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    img {
        width: 100%;
        height: auto;
        max-height: 90%;
        object-position: center;
        object-fit: contain;
    }
}

.cpx-opacity {
    opacity: .05;
}

.cpx-contact-card {
    a {
        color: inherit !important;
    }

    .elementor-icon-box-content {
        .elementor-icon-box-title {
            margin-top: 5px;
        }
    }
}

.cpx-caret-menu {
    .elementor-nav-menu {
        a.elementor-item {
            position: relative;
            padding-left: 1.5rem !important;

            &:after {
                content: '';
                width: 15px;
                height: 15px;
                background-size: contain;
                background-position: center;
                background-repeat: no-repeat;
                display: inline-block;
                position: absolute;
                left: 0;
                top: 48%;
                transform: translateY(-50%);
                opacity: 1 !important;
                transition: transform .2s ease-in-out !important;
            }

            &:hover,
            &:focus {
                &:after {
                    transform: translateY(-50%) translateX(3px);
                }
            }
        }
    }
}

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

    &.cpx-overlap--1 {
        z-index: 1;

        img {
            aspect-ratio: 4/5;
        }
    }

    &.cpx-overlap--2 {
        z-index: 2;
        margin-top: -34%;
        right: -100px;

        img {
            aspect-ratio: 9/11;
        }
    }
}

@media screen and (max-width: 768px) {
    .cpx-overlap {
        &.cpx-overlap--2 {
            margin-top: -30%;
            right: -10px;
        }
    }
}

.cpx-side-image {
    top: 100px !important;
    bottom: 100px !important;

    img {
        height: 100%;
        object-fit: cover;
        object-position: center;
    }
}

.elementor-location-header {
    >.e-con {
        transition: all 0.3s cubic-bezier(.19, 1, .22, 1);
        width: 100% !important;

        .cpx-header__logo img {
            transition: all 0.3s cubic-bezier(.19, 1, .22, 1);
        }
    }

    &.scrolled-past>.e-con {
        background-color: var(--e-global-color-secondary);
    }
}

@media screen and (min-width: 1024px) {
    .elementor-location-header {
        &.scrolled-past>.e-con {
            .cpx-header__logo img {
                height: 50px !important;
            }
        }
    }
}

.elementor-widget-text-editor,
.cpx2_cookie-balk.cpx2_cookie-balk--v3 .cpx2_cookie-balk__tekst {
    a {
        color: var(--e-global-color-primary);
        text-decoration: underline;
        text-underline-offset: 5px;
        text-decoration-color: var(--e-global-color-primary);
    }
}

.cpx2_cookie-balk.cpx2_cookie-balk--v3 .cpx2_cookie-balk__wrapper {
    background-color: rgb(253 233 195 / 87%) !important;
}

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

.cpx2_cookie-balk.cpx2_cookie-balk--v3 .cpx2_cookie-balk__acties button.cpx2_cookie-balk__v3__alles-afwijzen,
.cpx2_cookie-balk.cpx2_cookie-balk--v3 .cpx2_cookie-balk__acties button.cpx2_cookie-balk__v3__selectie-toestaan {
    color: var(--e-global-color-text) !important;
    background-color: var(--e-global-color-accent) !important;
}

.cpx2_cookie-balk.cpx2_cookie-balk--v3 .cpx2_cookie-balk__acties button.cpx2_cookie-balk__v3__alles-toestaan {
    color: var(--e-global-color-secondary) !important;
}