/* 
Theme Name: CodePix Child
Theme URI: https://github.com/elementor/hello-theme/
Description: Let op: website overgenomen van SD communicatie
Author: Elementor Team
Author URI: https://elementor.com/
Template: hello-elementor
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: 30px;
    --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;
}

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

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

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

/* 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 {
    p:not(:last-child) {
        margin-bottom: 1em;
    }
}

/* 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-4 img {
    aspect-ratio: 3/4.25;
    object-fit: cover;
    object-position: center;
}

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

.cpx-aspect-139-125 img {
    aspect-ratio: 139/125;
    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;
}

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

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

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

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

    * {
        line-height: 1 !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: 0px !important;
    font-weight: 600 !important;
}

.cpx2_cookie-balk.cpx2_cookie-balk--v3 {
    font-family: "Poppins", Sans-serif;
    font-size: 16px;
    line-height: 28px;
}

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

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

@media screen and (max-width: 768px) {
    .cpx-col-list {
        ul {
            display: flex;
            flex-direction: column;
            gap: 8px;
        }
    }
}
@media screen and (min-width: 768px) {
    .cpx-col-list {
    ul {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 8px 20px;
    }
    
    li {
        width: calc(50% - 10px);
    }
}
}

.cpx-downloads {
    .elementor-icon-list-items {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        align-self: flex-start;
        gap: 20px;
    }

    .elementor-icon-list-item {
        margin-block-start: 0 !important;
        padding-block-end: 0 !important;
        width: 340px;
        display: flex;
        flex-direction: column;
        justify-content: center !important;
        align-items: center;
    }

    .elementor-icon-list-item a {
        padding: 22px 20px;
        background-color: var(--e-global-color-e967f72);
        border: 1px solid var(--e-global-color-secondary);

        height: 100%;

        display: flex;
        flex-direction: column;
        justify-content: center !important;
        align-items: center;
        gap: 5px;

        .elementor-icon-list-text {
            padding-left: 0;
            padding-inline-start: 0 !important;
            margin-bottom: -4px;
            text-align: center;
            text-wrap: balance;
            font-family: "Nexa", Sans-serif;
            font-weight: 600;
        }

        .elementor-icon-list-icon {
            padding-right: 0;
            padding-inline-end: 0 !important;
            text-align: center;

            i {
                font-size: 30px;
            }
        }
    }
}

.aspect-1-1 {
    aspect-ratio: 1/1;
}

.elementor-widget-text-editor {
    --cpx-bullet-size: 0.65em;

    ul {
        padding-left: 1.5em;

        &:not(:last-child) {
            margin-bottom: 1em;
        }

        &>li {
            position: relative;

            &::marker {
                color: transparent;
            }

            &::before {
                content: "";
                position: absolute;
                top: 0.5lh;
                left: -1.5em;
                width: var(--cpx-bullet-size);
                height: var(--cpx-bullet-size);
                transform: translateY(-50%);
                border-radius: 50%;
                background-color: currentColor;
                color: var(--e-global-color-secondary);
            }
        }
    }
}