/* 
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-section--top: 40px;
    --cpx-section--bottom: 40px;
    --cpx-section--left: 75px;
    --cpx-section--right: 75px;

    --cpx-inner--top: 40px;
    --cpx-inner--bottom: 40px;
    --cpx-inner--left: 50px;
    --cpx-inner--right: 50px;
    --cpx-inner-radius: 40px;
}

@media screen and (max-width: 1024px) {
    :root {
        --cpx-section--top: 30px;
        --cpx-section--bottom: 30px;
        --cpx-section--left: 50px;
        --cpx-section--right: 50px;

        --cpx-inner--top: 30px;
        --cpx-inner--bottom: 30px;
        --cpx-inner--left: 30px;
        --cpx-inner--right: 30px;
    }
}

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

        --cpx-inner--top: 30px;
        --cpx-inner--bottom: 30px;
        --cpx-inner--left: 20px;
        --cpx-inner--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: 16px;
    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-balance p {
    text-wrap: balance !important;
}

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

    a {
        color: var(--e-global-color-text);
        font-weight: bold;
        text-decoration: underline;
        text-underline-offset: 3px;
        text-decoration-color: var(--e-global-color-primary);
        transition: color .3s ease-in;
    }
}

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

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

.cpx-aspect-16-9-box {
    aspect-ratio: 16/9;
}

.cpx-aspect-4-3-box {
    aspect-ratio: 4/3;
}

.cpx-aspect-3-4-box {
    aspect-ratio: 3/4.25;
}

.cpx-aspect-5-6-box {
    aspect-ratio: 5/6;
}


.cpx-aspect-ratio--fit-contain {
    img {
        object-fit: contain !important;
    }
}

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

.cpx-header {

    .cpx-header__logo .elementor-widget-container,
    .cpx-header__top,
    .cpx-header__main {
        transition: all .5s cubic-bezier(.19, 1, .22, 1) !important;
    }

    .cpx-header__top,
    .cpx-header__main {
        transition-delay: .2s;
    }
}

[data-elementor-type="header"].scrolled-past {
    .cpx-header__logo .elementor-widget-container {
        transform: none;

    }

    .cpx-header__top {
        --e-transform-translateY: -100%;
        opacity: 0;
    }

    .cpx-header {
        transform: translateY(-30px);
    }
}

@media screen and (max-width: 768px) {
    [data-elementor-type="header"].scrolled-past {
        .cpx-header {
            transform: translateY(-40px);
        }
    }
}

.elementor-widget-cpx_table {
    --cpx-table-border-color: var(--e-global-color-dc810fb) !important;

    table {
        margin-bottom: 0;
    }
}

.cpx-contact--bgred {
    .elementor-template>.elementor>.e-con-boxed {
        background-color: var(--e-global-color-text) !important;
    }
}

.cpx-contact--extrapadding {
    .elementor-template>.elementor>.e-con-boxed>.e-con-inner {
        padding-top: calc(var(--cpx-section--top) * 2);
        padding-bottom: calc(var(--cpx-section--bottom) * 2);
    }
}

/* Floating call button */
.cpx-floating-call {
    --cpx-floating-call-offset: 24px;
    --cpx-floating-call-border: var(--e-global-color-primary, #232323);
    --cpx-floating-call-text: var(--e-global-color-text, #232323);
    --cpx-floating-call-bg: #fff;
    --cpx-floating-call-open: #2fb344;
    --cpx-floating-call-closed: #f59f00;

    position: fixed;
    z-index: 999;
    right: var(--cpx-floating-call-offset);
    bottom: var(--cpx-floating-call-offset);
    color: var(--cpx-floating-call-text);
    font-family: var(--e-global-typography-819d1f6-font-family), Sans-serif;
}

.cpx-floating-call__details {
    position: relative;
}

.cpx-floating-call__details[open] .cpx-floating-call__panel {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.cpx-floating-call__details>summary {
    list-style: none;
}

.cpx-floating-call__details>summary::-webkit-details-marker {
    display: none;
}

.cpx-floating-call__button {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-width: 210px;
    min-height: 54px;
    padding: 8px 16px;
    color: var(--cpx-floating-call-text);
    background-color: var(--cpx-floating-call-bg);
    border: 1px solid var(--cpx-floating-call-border);
    border-radius: 50px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, .12);
    text-decoration: none;
    cursor: pointer;
    transition: transform .2s ease, box-shadow .2s ease;
}

.cpx-floating-call__button:hover,
.cpx-floating-call__button:focus-visible {
    color: var(--cpx-floating-call-text);
    transform: translateY(-2px);
    box-shadow: 0 16px 36px rgba(0, 0, 0, .16);
}

.cpx-floating-call__button:focus-visible {
    outline: 2px solid var(--e-global-color-primary, #232323);
    outline-offset: 4px;
}

.cpx-floating-call__status {
    flex: 0 0 auto;
    width: 11px;
    height: 11px;
    border: 1px solid currentColor;
    border-radius: 999px;
    background-color: var(--cpx-floating-call-closed);
    border-color: var(--cpx-floating-call-closed);
}

.cpx-floating-call[data-open="true"] .cpx-floating-call__status {
    background-color: var(--cpx-floating-call-open);
    border-color: var(--cpx-floating-call-open);
}

.cpx-floating-call__icon {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
}

.cpx-floating-call__icon svg {
    width: 28px;
    height: 28px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2.5;
}

.cpx-floating-call__divider {
    align-self: stretch;
    width: 1px;
    min-height: 34px;
    background-color: currentColor;
    opacity: .8;
}

.cpx-floating-call__content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
}

.cpx-floating-call__title {
    font-size: 20px;
    font-weight: 700;
    line-height: 1;
}

.cpx-floating-call__subtitle {
    margin-top: 3px;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.15;
}

.cpx-floating-call__panel {
    position: absolute;
    right: 0;
    bottom: calc(100% + 10px);
    width: min(300px, calc(100vw - 40px));
    padding: 18px 20px;
    color: var(--cpx-floating-call-text);
    background-color: var(--cpx-floating-call-bg);
    border: 1px solid var(--cpx-floating-call-border);
    box-shadow: 0 12px 32px rgba(0, 0, 0, .12);
    opacity: 0;
    pointer-events: none;
    transform: translateY(8px);
    transition: opacity .2s ease, transform .2s ease;
    border-radius: 20px;
}

.cpx-floating-call__panel p {
    margin: 0 0 14px;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.22;
}

.cpx-floating-call__panel a {
    color: inherit;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
}

@media screen and (max-width: 768px) {
    .cpx-floating-call {
        right: 16px;
        bottom: 16px;
        left: auto;
    }

    .cpx-floating-call__button {
        width: auto;
        min-width: 190px;
        min-height: 54px;
        gap: 10px;
        padding-right: 16px;
        padding-left: 16px;
    }

    .cpx-floating-call__icon,
    .cpx-floating-call__icon svg {
        width: 26px;
        height: 26px;
    }

    .cpx-floating-call__divider {
        min-height: 32px;
    }

    .cpx-floating-call__title {
        font-size: 19px;
    }

    .cpx-floating-call__subtitle {
        font-size: 14px;
    }

    .cpx-floating-call__panel {
        right: 0;
        left: auto;
        width: min(280px, calc(100vw - 32px));
        padding: 18px;
    }

    .cpx-floating-call__panel p,
    .cpx-floating-call__panel a {
        font-size: 16px;
    }
}

.cpx-tarieven {
    .elementor-widget-cpx_table {
        thead>tr>th {
            font-size: 20px;
        }

        thead>tr>th,
        tbody>tr:first-child td {
            font-weight: bold;
            padding-top: 5px;
            padding-bottom: 5px;
        }

        td {
            padding-top: 10px;
            padding-bottom: 10px;
        }

        thead>tr>th:nth-child(2),
        tbody>tr>td:nth-child(2),
        thead>tr>th:nth-child(3),
        tbody>tr>td:nth-child(3) {
            width: 140px;
        }
    }

    .e-n-tabs-heading {
        mask-image: linear-gradient(to left, rgba(0, 0, 0, 0) 0, rgba(0, 0, 0, 1) 15px);
        -webkit-mask-image: linear-gradient(to left, rgba(0, 0, 0, 0) 0, rgba(0, 0, 0, 1) 15px);
    }

    .e-n-tabs-heading .e-n-tab-title:last-child {
        margin-right: 20px;
        /* Add space after the last tab title */
    }
}