/* 
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: 8px;
    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-a44a3e1);
    color: var(--e-global-color-secondary);
}

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

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

/* Fix misalignment of text to icon */
.elementor-widget-button .elementor-button-text {
    padding-bottom: .13em;
}

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

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

.cpx-blurbox {
    backdrop-filter: blur(7px);
}

.cpx-card {
    backdrop-filter: blur(4px);
    background-image: linear-gradient(to bottom right, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.01));
    border: 1px solid rgba(255, 255, 255, .13);
    border-radius: 8px;
    overflow: hidden;

    --padding-top: 35px;
    --padding-bottom: 35px;
    --padding-left: 30px;
    --padding-right: 30px;

    &:before {
        content: '';
        left: 0;
        top: 0;
        display: block;
        width: 100%;
        height: 100%;
        background-size: contain;
        background-position: top left;
        background-repeat: no-repeat;
    }

    &.cpx-card--no-padding {
        --padding-top: 0px;
        --padding-bottom: 0px;
        --padding-left: 0px;
        --padding-right: 0px;
    }

    &.cpx-card--equal-titles {
        .elementor-heading-title {
            min-height: 2.5em;
        }
    }

    &.cpx-card--domeinnaam {
        &:before {
            top: auto;
            bottom: 0;
            background-position: bottom;
            background-size: cover;
            opacity: .5;
        }
    }

    &.cpx-card--enterprise {
        &:before {
            top: auto;
            bottom: 0;
            background-position: bottom;
            opacity: .8;
        }
    }

    .cpx-card__image {
        user-select: none;

        img {
            aspect-ratio: 5/2;
            object-fit: contain;
            object-position: center left;
        }

        svg {
            aspect-ratio: auto;
            opacity: .5;
            max-width: 115px;
        }
    }
}

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

        &.cpx-card--equal-titles {
            .elementor-heading-title {
                min-height: 0;
            }
        }
    }
}

.elementor-icon svg {
    transition: all .15s ease-in;
    aspect-ratio: 1/1;
    object-fit: contain;
    object-position: center;
}


:root {
    --cpx-banner-top-offset: 200px;
}

@media screen and (max-width: 768px) {
    :root {
        --cpx-banner-top-offset: 150px;
    }
}

.cpx-header {
    top: 0;
}

body.admin-bar {
    --cpx-banner-top-offset: calc(150px + 32px);

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

@media screen and (max-width: 782px) {
    body.admin-bar {
        --cpx-banner-top-offset: calc(150px + 46px);

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

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

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

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

.elementor-heading-title {
    mark {
        background-color: transparent;
        color: inherit;
        position: relative;

        &:after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            width: 100%;
            height: 2px;
            background-color: currentColor;
        }

        &.blue:after {
            background-color: var(--e-global-color-6892ba8);
        }

        &.pink:after {
            background-color: var(--e-global-color-77df036);
        }

        &.green:after {
            background-color: var(--e-global-color-a44a3e1);
        }
    }
}

.cpx-slider {
    .swiper {
        padding: 0px 20px !important;
        padding-bottom: 50px !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-locked .swiper-wrapper {
            justify-content: center;

            .swiper-slide:last-child {
                margin-right: 0 !important;
            }
        }
    }

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

    .swiper-pagination {
        background: rgba(255, 255, 255, .2);
        border-radius: 50px;
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: center;
        padding: 10px 5px;

        &.swiper-pagination-lock {
            display: none;
        }

        .swiper-pagination-bullet {
            --swiper-pagination-bullet-horizontal-gap: 5px !important;
            --swiper-pagination-bullet-vertical-gap: 5px !important;

            opacity: 1 !important;
            padding: 2px;
            background-color: #fff !important;
            position: relative;
            height: 14px;
            width: 14px;
            transition: all .7s cubic-bezier(.19, 1, .22, 1);
            border-radius: 50px;

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

            &:hover,
            &.swiper-pagination-bullet-active {
                background-color: var(--e-global-color-0e2ab33) !important;
            }

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

/* For sliders with more than 4 items. Be sure to add a blank slide at the end to make sure the user can reach the end */
@media screen and (min-width: 1200px) {
    .cpx-slider.cpx-slider--bigger-than-4 {
        .swiper:not(.swiper-locked) {
            margin-right: -20vw;

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

@media screen and (max-width: 768px) {
    .cpx-slider.cpx-slider--mobile-overlap {
        .swiper:not(.swiper-locked) {
            margin-right: -75vw;

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

@media screen and (min-width: 768px) {
    .cpx-slider.cpx-slider--mobile-overlap.cpx-slider--mobile-only-blanco {
        .swiper-slide:last-child {
            display: none;
        }
    }
}

.cpx-pattern {
    pointer-events: none;
    user-select: none;
    overflow: hidden;
    position: relative;

    .elementor-widget-container {
        position: relative;
        max-height: 1000px;
    }

    img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
        mask-image: linear-gradient(to bottom, black 90%, transparent 100%);
        -webkit-mask-image: linear-gradient(to bottom, black 90%, transparent 100%);
        opacity: .6 !important;
    }
}

@media screen and (max-width: 1024px) {
    .cpx-pattern {
        img {
            width: 200vw !important;
            max-width: none;
            position: absolute;
            left: -50%;
            opacity: .9 !important;
        }
    }
}

.cpx-reviews {
    >div {
        position: relative;

        &:after {
            content: '';
            position: absolute;
            right: -50px;
            top: 0;
            width: 1px;
            height: 100%;
            background-color: var(--e-global-color-e0fab82);

            display: none;
        }
    }
}

@media screen and (min-width: 1024px) {
    .cpx-reviews>div:not(:last-child):after {
        display: block;
    }
}

@media screen and (min-width: 768px) and (max-width: 1024px) {
    .cpx-reviews>div:nth-child(2n+1):after {
        display: block;
        right: -25px;
    }
}

@media screen and (max-width: 1024px) {
    .cpx-reviews>div:not(:last-child):after {
        display: block;
        right: auto;
        left: 0;
        width: 100%;
        height: 1px;
        top: auto;
        bottom: -20px;
    }
}

/* Shine hover effect voor Elementor buttons */

.elementor-widget-button .elementor-button {
    position: relative;
    overflow: hidden;
}

.elementor-widget-button .elementor-button::after {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(120deg,
            transparent 0%,
            transparent 10%,
            rgba(255, 255, 255, 0.05) 50%,
            transparent 90%,
            transparent 100%);
    transition: left 0.15s ease;
}

.elementor-widget-button .elementor-button:hover::after {
    left: 100%;
    transition: left 0.9s ease;
}

.elementor-location-header {

    .cpx-header__main,
    .cpx-header__phone {
        transition: all .6s cubic-bezier(.19, 1, .22, 1);
    }
}

@media screen and (min-width: 1024px) {
    .elementor-location-header.scrolled-past {
        .cpx-header__main {
            transform: translateY(-20px);
            padding-top: 10px;
            padding-bottom: 10px;
        }

        .cpx-header__phone {
            transform: translateX(-100px) translateY(32px) scale(1.1);
            transform-origin: right;
        }
    }
}

@media screen and (max-width: 1024px) {
    .elementor-location-header.scrolled-past {
        .cpx-header__main {
            transform: translateY(-30px);
            padding-top: 10px;
            padding-bottom: 10px;
        }

        .cpx-header__phone {
            transform: translateY(-50px);
        }
    }
}

.cpx-open-indicator {
    position: relative;

    &:after {
        content: '';
        display: block;
        height: 9px;
        width: 9px;
        border-radius: 12px;
        background-color: var(--e-global-color-a44a3e1);
        box-shadow: 0 0 10px 0 var(--e-global-color-a44a3e1);
        position: absolute;
        right: -15px;
        top: 6px;
    }
}

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

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

    .cpx2_cookie-balk__wrapper {
        backdrop-filter: blur(12px) !important;
        background-color: transparent !important;
        background-image: linear-gradient(to bottom right, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.01));
        border: 1px solid rgba(255, 255, 255, .13);
        border-radius: 8px;
    }

    label {
        color: #fff;
    }

    .cpx2_cookie-balk__tekst {
        a {
            transition: color .3s ease;
            color: var(--e-global-color-c0c5761);
        }

        a:hover,
        a:focus {
            color: var(--e-global-color-primary);
        }
    }
}

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

@media screen and (min-width: 1024px) {
    .cpx2_cookie-balk.cpx2_cookie-balk--v3 {
        .cpx2_cookie-balk__wrapper {
            z-index: 5;
        }

        &:after {
            content: '';
            display: block;
            position: absolute;
            right: -15px;
            bottom: -20px;
            height: 700px;
            width: 700px;
            background-color: rgba(37, 28, 65, 1);
            filter: blur(100px);
            opacity: .8;
            border-top-left-radius: 100%;
            pointer-events: none;
        }
    }
}

.cpx-pink-gradient-title {
    background: linear-gradient(to bottom right, #fff 30%, color-mix(in srgb, var(--e-global-color-77df036), #fff 30%) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;

    .elementor-heading-title {
        font-weight: 600 !important;
    }
}