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

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

/* Fix icon hover color */
.elementor-button .elementor-button-icon {
    transition: all .3s ease-in;
}

.elementor-button:hover .elementor-button-icon,
.elementor-button:focus .elementor-button-icon {
    fill: var(--e-global-color-text);
}

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

@media screen and (max-width: 768px) {
    body {
        --cpx-header-height: 70px;
    }
}


body.admin-bar {
    header[data-elementor-type="header"]>.e-con {
        top: 32px;
    }
}

@media screen and (max-width: 782px) {
    body.admin-bar {
        header[data-elementor-type="header"]>.e-con {
            top: 46px;
        }
    }
}

.cpx-banner__big-image,
.cpx-content__big-image {
    .elementor-widget-image {
        max-height: 100%;
    }
}

.cpx-banner__big-image {
    height: calc(100% - var(--cpx-header-height));
}

.cpx-content__big-image {
    height: 100%;
}

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

    .cpx-banner__big-image,
    .cpx-banner__big-image>.elementor-widget-image,
    .cpx-content__big-image,
    .cpx-content__big-image>.elementor-widget-image {
        height: 400px;
    }
}

@media screen and (max-width: 768px) {

    .cpx-banner__big-image,
    .cpx-banner__big-image>.elementor-widget-image,
    .cpx-content__big-image,
    .cpx-content__big-image>.elementor-widget-image {
        height: 250px;
    }
}

.elementor-widget-heading,
.elementor-widget-text-editor {
    mark {
        background-color: transparent;
        color: var(--e-global-color-accent);
    }
}

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

.cpx-footer-menu nav ul {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0px 50px;

    li {
        width: calc(50% - 25px);

        a {
            display: inline-flex;
            align-items: center;
            justify-content: flex-start;
            position: relative;
            gap: 0 10px;

            &:after {
                content: '';
                display: inline-block;
                height: 25px;
                width: 25px;
                background-size: contain;
                background-position: center;
                background-repeat: no-repeat;
                background-image: var(--cpx-bg-arrow-right);
                position: relative;

                opacity: 1 !important;
            }

            &:hover:after {
                transform: translateX(5px);
            }
        }
    }
}

@media screen and (max-width: 768px) {
    .cpx-footer-menu nav ul {
        flex-direction: column;
    }
}


/* 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-ae8a8f6);
    box-shadow: 0 0 10px 0 var(--e-global-color-ae8a8f6);
    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;
    }
}


/* Create pretty pagination for all carousels */
.swiper-pagination {
    position: relative;

    .swiper-pagination-bullet {
        opacity: 1;
        border: 1px solid var(--e-global-color-primary);
        transition: all .2s ease-in-out;
        position: relative;
        background-color: var(--e-global-color-ad68dac);

        &:after {
            content: '';
            position: absolute;
            top: 50%;
            left: 50%;
            width: 10px;
            height: 10px;
            background-color: var(--e-global-color-accent);
            border-radius: 50%;
            transition: all .2s ease-in-out;
            opacity: 0;
            transform: translate(-50%, -50%) scale(0);
        }

        &.swiper-pagination-bullet-active {
            border-color: var(--e-global-color-accent);

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

        &:hover {
            background-color: var(--e-global-color-ad68dac);
            border-color: var(--e-global-color-accent);

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

    &:before {
        content: '';
        position: absolute;
        top: 50%;
        left: 10px;
        width: calc(100% - 20px);
        height: 1px;
        background-color: var(--e-global-color-primary);
        transform: translateY(-50%);
        z-index: -1;
    }
}

/* Disable selecting the swiper items on drag */
.swiper-slide {
    user-select: none;
}

/* Header scroll animation */
header[data-elementor-type="header"] {

    >.e-con,
    .elementor-widget-theme-site-logo img {
        transition: all 0.3s ease-in-out;
    }

    &.scrolled-past {
        >.e-con {
            background-color: #fff;
            box-shadow: 0 0 20px rgba(0, 0, 0, .1);
        }

        .elementor-widget-theme-site-logo img {
            height: 80px;
        }
    }
}

@media screen and (max-width: 768px) {
    header[data-elementor-type="header"] {
        &.scrolled-past {
            .elementor-widget-theme-site-logo img {
                height: 70px;
            }
        }
    }
}

/* Custom slide animation. This overwrites elementos animation keyframe for the slide in animations */
.animated.animated-slow {
    animation-duration: 4s;
}

.slideInUp,
.slideInDown,
.slideInLeft,
.slideInRight {
    animation-timing-function: cubic-bezier(.19, 1, .22, 1);
    overflow: hidden;

    &.elementor-widget-image img {
        /* slight zoom out animation using keyframes */
        animation-name: additionalZoomOut;
        animation-duration: 4s;
        animation-iteration-count: 1;
        animation-fill-mode: forwards;
        animation-timing-function: cubic-bezier(.19, 1, .22, 1);
    }
}

@keyframes additionalZoomOut {
    0% {
        transform: scale(1.3);
    }

    100% {
        transform: scale(1);
    }
}

@keyframes slideInUp {
    0% {
        clip-path: inset(100% 0 0 0);
        opacity: 0;
    }

    50% {
        clip-path: inset(0 0 0 0);
        opacity: 1;
    }

    100% {
        clip-path: inset(0 0 0 0);
        opacity: 1;
    }
}

@keyframes slideInDown {
    0% {
        clip-path: inset(0 0 100% 0);
        opacity: 0;
    }

    50% {
        clip-path: inset(0 0 0 0);
        opacity: 1;
    }

    100% {
        clip-path: inset(0 0 0 0);
        opacity: 1;
    }
}

@keyframes slideInLeft {
    0% {
        clip-path: inset(0 0 0 100%);
        opacity: 0;
    }

    50% {
        clip-path: inset(0 0 0 0);
        opacity: 1;
    }

    100% {
        clip-path: inset(0 0 0 0);
        opacity: 1;
    }
}

@keyframes slideInRight {
    0% {
        clip-path: inset(0 100% 0 0);
        opacity: 0;
    }

    50% {
        clip-path: inset(0 0 0 0);
        opacity: 1;
    }

    100% {
        clip-path: inset(0 0 0 0);
        opacity: 1;
    }
}

/* Custom animation for send mail icon */
.cpx-animate-mail-icon {
    .elementor-button-icon {
        transition-timing-function: cubic-bezier(.19, 1, .22, 1);
        transition-duration: .7s;
    }

    a:hover,
    a:focus,
    button[type="submit"]:hover,
    button[type="submit"]:focus {
        .elementor-button-icon {
            transform: translate(3px, -3px);
        }
    }
}

.cpx-animate-menu-icon {
    .elementor-button-icon path {
        transition-timing-function: cubic-bezier(.19, 1, .22, 1);
        transition-duration: .7s;
    }

    a:hover,
    a:focus {
        .elementor-button-icon {
            path:nth-child(1) {
                transform: translate(70px, 0);
            }

            path:nth-child(2) {
                transform: translate(-50px, 0);
            }

            path:nth-child(3) {
                transform: translate(70px, 0);
            }
        }
    }
}

.cpx-animate-arrow-icon {
    .elementor-button-icon {
        transition-timing-function: cubic-bezier(.19, 1, .22, 1);
        transition-duration: .7s;
    }

    a:hover,
    a:focus {
        .elementor-button-icon {
            transform: translate(3px, 0);
        }
    }
}

/* CSS mask */
.cpx-mask-fade-edges,
.cpx-mask-fade-edges svg {
    -webkit-mask-image: linear-gradient(to right, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 1) 2%, rgba(0, 0, 0, 1) 98%, rgba(0, 0, 0, 0) 100%);
    mask-image: linear-gradient(to right, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 1) 2%, rgba(0, 0, 0, 1) 98%, rgba(0, 0, 0, 0) 100%);
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-size: cover;
    mask-size: cover;
}

.nowrap {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Limit the total width for giant screens */
main {
    max-width: 3800px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
}

.cpx-image-tall,
.cpx-image-wide {
    img {
        object-fit: cover;
        object-position: center;
    }
}

.cpx-image-tall img {
    aspect-ratio: 3/4;
}

@media screen and (max-width: 1024px) {
    .cpx-image-tall img {
        aspect-ratio: 6/4;
    }
}

.cpx-image-wide img {
    aspect-ratio: 6/4;
}

/* Cookie car adjustments */
.cpx2_cookie-balk.cpx2_cookie-balk--v3 .cpx2_cookie-balk__acties button.cpx2_cookie-balk__v3__alles-toestaan,
.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-radius: 0px !important;
}

.cpx2_cookie-balk.cpx2_cookie-balk--v3 .cpx2_cookie-balk__toggle input[type="checkbox"]+label {
    line-height: 1.3;
}