/* 
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-transition-timing: cubic-bezier(.19, 1, .22, 1);
    --cpx-border-radius: 20px;
    --cpx-section--top: 60px;
    --cpx-section--bottom: 60px;
    --cpx-section--left: 75px;
    --cpx-section--right: 75px;
    --cpx-card-padding-top-bottom: 30px;
    --cpx-card-padding-left-right: 30px;
    --cpx-header-height: 205px;
}

@media screen and (max-width: 1024px) {
    :root {
        --cpx-section--top: 30px;
        --cpx-section--bottom: 30px;
        --cpx-section--left: 50px;
        --cpx-section--right: 50px;
        --cpx-card-padding-top-bottom: 30px;
        --cpx-card-padding-left-right: 30px;
        --cpx-header-height: 140px;
    }
}

@media screen and (max-width: 768px) {
    :root {
        --cpx-section--top: 35px;
        --cpx-section--bottom: 35px;
        --cpx-section--left: 20px;
        --cpx-section--right: 20px;

        --cpx-card-padding-top-bottom: 20px;
        --cpx-card-padding-left-right: 20px;
    }
}

body {
    --cpx-ink-size: 190px;
    --cpx-ink-color: color-mix(in srgb, var(--e-global-color-98f045c), #fff 2%);
    --cpx-ink-white-color: color-mix(in srgb, var(--e-global-color-accent), rgba(255, 255, 255, 0) 97%);
    --cpx-ink-dark-color: color-mix(in srgb, var(--e-global-color-text), rgba(0, 0, 0, 0) 97%);
}

/* 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: var(--cpx-border-radius);
    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: 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;
}

/* the dynamic circle element */
.elementor-button__ink {
    position: absolute;
    width: var(--cpx-ink-size);
    height: var(--cpx-ink-size);
    border-radius: 50%;
    background: var(--cpx-ink-color);
    left: 0;
    top: 0;
    pointer-events: none;
    z-index: 1;

    /* center the circle on its transform origin, then JS adds translate3d(x,y,0) */
    transform: translate(-50%, -50%) scale(.6);
    opacity: 0;

    transition:
        opacity .25s var(--cpx-transition-timing),
        transform .25s var(--cpx-transition-timing);
    will-change: transform, opacity;
}

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

    margin-right: -8px;
}

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

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

/* 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) * (var(--grid-columns, 5) - 1) / 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,
.elementor-widget-woocommerce-product-content,
.elementor-widget-theme-post-content,
.cpx_custom_accordion__content {
    p:not(:last-child), ul:not(:last-child) {
        margin-bottom: 1em;
    }

    /* Revamp blockquotes */
    blockquote {
        background-color: var(--e-global-color-7562f4c);
        padding: 20px 30px;
        margin-left: 0;
        margin-right: 0;
        margin-bottom: 1.5em;
        border-radius: var(--cpx-border-radius);
        font-style: italic;

    }
}

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

.cpx-aspect-1-1 img {
    aspect-ratio: 1/1;
    object-fit: cover;
    object-position: center;
}

.cpx-aspect-16-9 img {
    aspect-ratio: 16/9;
    object-fit: cover;
    object-position: center;
}

.cpx-aspect-4-3 img {
    aspect-ratio: 4/3;
    object-fit: cover;
    object-position: center;
}

.cpx-aspect-3-2 img {
    aspect-ratio: 3/2;
    object-fit: cover;
    object-position: center;
}

.cpx-aspect-3-4 img {
    aspect-ratio: 3/4.25;
    object-fit: cover;
    object-position: center;
}

.cpx-aspect-45-59 img {
    aspect-ratio: 45 / 59;
    object-fit: cover;
    object-position: center;
}

.cpx-aspect-58-49 img {
    aspect-ratio: 58 / 49;
    object-fit: cover;
    object-position: center;
}

.cpx-aspect-81-35 img {
    aspect-ratio: 81 / 35;
    object-fit: cover;
    object-position: center;
}

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

.no-select {
    user-select: none;
}

.no-max-width {
    max-width: none !important;
}

.cpx-icon-square svg {
    aspect-ratio: 1/1;
    object-fit: contain;
    object-position: center;
}

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

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

header[data-elementor-type="header"] {

    .cpx-header,
    .cpx-header>.e-con-inner,
    .cpx-header .cpx-header__logo>.elementor-widget-container,
    .cpx-header .cpx-header__logo img {
        transition: all .3s ease-in-out;
    }

    &.scrolled-past {
        .cpx-header {
            background-color: var(--e-global-color-b9a9b67);

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

            .cpx-header__logo>.elementor-widget-container {
                transform: none !important;
            }
        }
    }
}

/* @media screen and (min-width: 1024px) {
    header[data-elementor-type="header"] {
        &.scrolled-past {
            .cpx-header__logo>.elementor-widget-container {
                img {
                    height: 45px;
                }
            }
        }
    }
} */

.line-height-0 {
    line-height: 0 !important;

    * {
        line-height: 0 !important;
    }
}

.line-height-1 {
    line-height: 1 !important;

    * {
        line-height: 1 !important;
    }
}

.elementor-heading-title {
    mark {
        background-color: transparent;
        color: var(--e-global-color-secondary);
        position: relative;
    }
}

.elementor-button .elementor-button-icon {
    background: #fff;
    border: 1px solid var(--e-global-color-e4456b0);
    aspect-ratio: 1/1;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    position: relative;
}

.elementor-button .elementor-button-icon svg {
    width: .6em;
    max-height: .6em;
    transition: all .7s var(--cpx-transition-timing);
    overflow: visible;
}

.elementor-button .elementor-button-icon::after {
    content: '';
    width: 17px;
    height: 17px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    transition: all .7s var(--cpx-transition-timing);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    backface-visibility: hidden;
    opacity: 0;
}

.elementor-button.is-hovering .elementor-button-icon svg {
    transform: scale(0);
    opacity: 0;
}

.elementor-button.is-hovering .elementor-button-icon::after {
    transform: translate(-50%, -50%) scale(1) translateZ(0);
    opacity: 1;
}

.elementor-button:focus .elementor-button-icon::after {
    transform: translate(-20%, -50%) scale(1) translateZ(0);
}

.elementor-button.is-hovering .elementor-button__ink {
    opacity: 1;
    /* scale is further controlled from JS for leave/enter feel */
}

/* Button container */
.elementor-button {
    position: relative;
    overflow: hidden;
    text-decoration: none !important;
}

.elementor-button-content-wrapper {
    align-items: center;
    z-index: 2;
    position: relative;
}

.cpx-button--normal {
    .elementor-button {
        .elementor-button-icon svg {
            width: .8em;
            max-height: .8em;
        }

        &.is-hovering .elementor-button-icon svg {
            opacity: 1 !important;
            transform: scale(1.1) !important;
        }
    }
}

.cpx-button--right {
    .elementor-button {
        .elementor-button-icon:after {
            display: none;
        }

        .elementor-button-icon {
            justify-content: center;
        }

        .elementor-button-icon svg {
            transform: none;
        }

        &.is-hovering .elementor-button-icon svg {
            opacity: 1;
            transform: scale(1) translateZ(0) translateX(2px) translateY(-2px);
        }

        &:focus {
            .elementor-button-icon {
                &:after {
                    opacity: 1;
                    transform: scale(1) translateZ(0);
                }
            }
        }
    }
}

.cpx-button--white {
    .elementor-button__ink {
        background: var(--cpx-ink-white-color);
    }
}

.cpx-button--dark {
    .elementor-button__ink {
        background: var(--cpx-ink-dark-color);
    }
}

.cpx-button--icon-primary {

    svg,
    svg * {
        color: var(--e-global-color-primary);
        fill: var(--e-global-color-primary) !important;
    }
}

.cpx-button--icon-dark {

    svg,
    svg * {
        color: var(--e-global-color-text);
        fill: var(--e-global-color-text) !important;
    }
}

.cpx-button--icon-white {
    .elementor-button-icon {
        background: var(--e-global-color-text);
    }

    svg,
    svg * {
        color: var(--e-global-color-accent);
        fill: var(--e-global-color-accent) !important;
    }
}

.elementor-button-wrapper {
    line-height: 0;
}

.cpx-project-loop-item {
    svg {
        transition: all .7s var(--cpx-transition-timing);
    }

    &:hover,
    &:focus {
        .cpx-project-loop-item__icon {
            svg {
                transform: scale(1) translateZ(0) translateX(2px) translateY(-2px);
            }
        }
    }
}

.cpx-news-loop-item {
    .cpx-news-loop-item__icon {
        .elementor-icon-list-item {
            flex-direction: row-reverse;
            gap: 8px;

            .elementor-icon-list-icon {
                transition: all .7s var(--cpx-transition-timing);
            }

            .elementor-icon-list-text {
                padding-left: 0;
            }
        }
    }

    &:hover,
    &:focus {
        .cpx-news-loop-item__icon {
            .elementor-icon-list-item {
                .elementor-icon-list-icon {
                    transform: scale(1) translateZ(0) translateX(2px) translateY(-2px);
                }
            }
        }
    }
}

.cpx-step-loop-item {
    height: 100%;
}

.cpx-slider--offset {
    --cpx-slider-offset: 75px;

    position: relative;

    &:before {
        content: '';
        position: absolute;
        top: 0;
        left: calc(-1 * var(--cpx-slider-offset));
        width: var(--cpx-slider-offset);
        height: 100%;
        background: linear-gradient(to right, var(--e-global-color-accent), transparent);
        z-index: 5;
        pointer-events: none;
    }

    .swiper {
        padding-left: var(--cpx-slider-offset);
        margin-left: calc(-1 * var(--cpx-slider-offset));
    }

    .swiper-slide {
        transition: all .7s var(--cpx-transition-timing);

        &.swiper-slide-prev {
            transform: scale(.7)
        }
    }

    &.cpx-slider--offset--beige {
        &:before {
            background: linear-gradient(to right, var(--e-global-color-7562f4c), transparent);
        }
    }
}

.cpx-inside-slider-offset--beige {
    .cpx-slider--offset {
        &:before {
            background: linear-gradient(to right, var(--e-global-color-7562f4c), transparent);
        }
    }
}

@media screen and (max-width: 1024px) {
    .cpx-slider--offset {
        --cpx-slider-offset: 50px;
    }
}

@media screen and (max-width: 768px) {
    .cpx-slider--offset {
        --cpx-slider-offset: 20px;
    }
}

.cpx-breadcrumb-separator {
    display: inline-block;
    width: 15px;
    height: 15px;
    margin-top: -2px;
    background-color: transparent;
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='9 18 15 12 9 6'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    vertical-align: middle;
}

.elementor-widget-breadcrumbs {
    span.breadcrumb_last {
        font-weight: 500;
        text-decoration: underline;
        text-underline-offset: 6px;
        text-decoration-thickness: 1px;
        text-decoration-color: var(--e-global-color-4a767ad);
    }

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

.cpx-custom-lists {
    --cpx-custom-list-icon-size: 24px;
    --cpx-custom-list-icon-gap: 15px;
    --cpx-custom-list-item-spacing: 8px;

    ul {
        margin: 0;
        padding-left: 0;
        list-style: none;

        display: flex;
            flex-direction: column;
            gap: 5px;

        li {
            position: relative;

            margin-bottom: var(--cpx-custom-list-item-spacing);
            padding-left: calc(var(--cpx-custom-list-icon-size) + var(--cpx-custom-list-icon-gap));

            &::before {
                content: "";

                width: var(--cpx-custom-list-icon-size);
                height: var(--cpx-custom-list-icon-size);

                position: absolute;
                top: 4px;
                left: 0;

                background-image: var(--cpx-custom-list-icon);
                background-position: center;
                background-repeat: no-repeat;
                background-size: contain;
            }
        }
    }
}

.elementor-field-group .elementor-field-textual:focus {
    box-shadow: none !important;
}

.cpx-filters-active {
    font-size: 14px;
    text-transform: uppercase;
    position: relative;

    &:after {
        content: '';
            display: inline-block;
            height: 8px;
            width: 8px;
            border-radius: 50%;
            background-color: #0ac580;
            position: absolute;
            top: -1px;
            right: -13px;
    }
}

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

    .cpx2_cookie-balk__toggle label {
        text-transform: none;
        letter-spacing: normal;
        font-weight: 500;
    }
}

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

.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: 50px !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 {
    border: 1px solid var(--e-global-color-8a8a8e2) !important;
    background: transparent !important;
}

@media screen and (max-width: 768px) {
    .cpx-no-mobile-aspect img {
        aspect-ratio: auto !important;
    }

    .cpx-mobile-relative {
        position: relative !important;
    }
    .cpx-mobile-absolute {
        position: absolute !important;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
    }
}

.cpx-form input::placeholder,
.cpx-form textarea::placeholder {
    opacity: 0.3 !important;
}

.elementor-headline-animation-type-flip .elementor-headline-dynamic-text {
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.elementor-headline-animation-type-flip .elementor-headline-dynamic-text.elementor-headline-text-inactive {
    animation-timing-function: ease-in-out;
}

@keyframes elementor-headline-flip-out {
    0% {
        opacity: 1;
        transform: rotateX(0deg);
    }

    35% {
        opacity: 1;
    }

    50% {
        opacity: 0;
        transform: rotateX(90deg);
    }

    100% {
        opacity: 0;
        transform: rotateX(180deg);
    }
}