/** TODO: Replace with Actual dynamic condition on merk archive **/
.dynamic-section {
    display: none !important;
}

.dynamic-section:has(h2) {
    display: flex !important;
}
/** ENDTODO **/

.bw-search-filter {
    margin-bottom: 20px;
    display: flex;

    .search-icon {
        background: #F9F8F4;
        padding: 6px;
        display: flex;
        align-items: center;
        min-width: 50px !important;
        justify-content: center;
        cursor: pointer;
        border-radius: 0 3px 3px 0 !important;
    }

    .bw-filter-search {
        border: 1px solid;
        background: unset;
        color: #F9F8F4;
        font-family: var(--f-secondary), sans-serif;
        border-radius: 3px 0 0 3px;

        &::placeholder {
            color: #F9F8F4;
        }
    }
}

.elementor-widget-theme-post-content p a {
    text-decoration: underline;
    color: var(--primary) !important;
    font-weight: 400 !important;
}

.dark-bg {
    .e-paragraph-base {
        h2, h3, h4, h5 {
            color: var(--Off-white);
        }
    }
}

.elementor-toc__list-wrapper .elementor-toc__list-item:not(:last-child) {
    margin-bottom: 25px;
}

.filters-projecten.filters--open {
    background-color: #f9f8f4;
    position: unset !important;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    gap: 0 !important;
    margin-bottom: 30px;

    .projectonderdelen {
        margin-bottom: 0 !important;
    }
}

.bw-active-filters {
    display: flex;
    align-items: center;
    gap: 10px;

    .bw-active-filters-reset {
        color: #5e524a;
        font-family: var(--f-secondary), sans-serif;
    }

    .bw-active-filter {
        background: #93846e;
        border-radius: 5px;
        color: #F9F8F4;
        padding: 4px 15px;
        display: flex;
        align-items: center;
        gap: 10px;
        font-family: var(--f-secondary), sans-serif;
    }

    .bw-active-filter-remove {
        display: inline-flex;
        width: 11px;
        height: 11px;

        svg {
            width: 11px;
            height: 11px;
        }
    }
}

.filters--open {
    display: flex !important;
    position: absolute !important;
    z-index: 3 !important;
    top: 50px;
    padding: 20px !important;
}

.bw-filter-group {
    padding: 15px 0;
    border-bottom: 1px solid #F9F8F4;
    overflow: hidden;

    .bw-filter-content {
        padding-top: 5px;
    }

    &.branch-filter {
        padding-top: 0 !important;
    }

    .bw-filter-toggle {
        cursor: pointer;
        display: flex;
        justify-content: space-between;
        align-items: center;

        label {
            cursor: pointer;
            font-family: var(--f-secondary), sans-serif;
            font-weight: bold;
            font-size: 17px;
            color: #F9F8F4;
            line-height: var(--lh-text);
        }
    }

    .bw-filter-checkbox-label {
        display: flex;
        align-items: flex-start;
        cursor: pointer;

        font-family: var(--f-secondary), sans-serif;
        font-size: 17px;
        color: #F9F8F4;
        line-height: var(--lh-text);

        input[type="checkbox"] {
            margin-top: 4px;
        }

        &:last-child {
            margin-bottom: 0;
        }
    }

    &:last-child {
        margin-bottom: 0;
    }
}

.bw-toggle-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.bw-filter-open .bw-toggle-icon {
    transform: rotate(180deg);
}

.bw-toggle-icon svg {
    display: block;
}

.bw-filter-checkbox {
    margin-right: 8px;
    appearance: none;
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    min-width: 16px;
    background: transparent;
    border: 1.5px solid #fff;
    border-radius: 3px;
    cursor: pointer;
    position: relative;

    &:checked::after {
        content: '';
        position: absolute;
        left: 4px;
        top: 1px;
        width: 5px;
        height: 9px;
        border: 2px solid #fff;
        border-top: none;
        border-left: none;
        transform: rotate(45deg);
    }
}

.bw-filter-search {
    width: 100%;
}

.bw-uitgelichte-merken {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 16px;

    .bw-uitgelicht-merk {
        a {
            display: block;
            border-radius: 20px;
            background-color: #FFFFFF;
            padding: 20px;
            overflow: hidden;

            img {
                width: 100%;
                height: auto;
                display: block;
                transition: transform 0.3s ease;
            }

            &:hover img {
                transform: scale(1.05);
            }
        }
    }
}

.bw-product-maatvoering {
    display: flex;
    gap: 25px;

    .bw-maatvoering-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 5px;

        img {
            display: block;
            width: auto;
            height: 50px;
        }

        .bw-maatvoering-value {
            display: block;
            text-align: center;
            font-weight: bold;
        }
    }
}

@media (max-width: 1024px) {
    .bw-uitgelichte-merken {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 767px) {
    .bw-uitgelichte-merken {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 768px) {
    .mega-menu {
        position: static !important;

        > .sub-menu {
            background-color: #5E524AD1 !important;
            border-radius: 5px 5px 5px 5px !important;
            padding: 10px 0 20px !important;
        }

        > a.highlighted ~ .sub-menu {
            position: absolute;
            top: 100%;
            left: 0;
            width: 100%;
            z-index: 9999;
            background: #fff;
            gap: 10px;
            display: grid;
            grid-template-columns: repeat(5, 1fr);

            .menu-item .sub-menu {
                display: block !important;
                position: unset !important;
                background-color: unset !important;
                width: auto;

                .menu-item a {
                    border-left-width: 8px !important;
                    font-weight: 400 !important;
                    padding: 5px 20px;
                }
            }
        }

        * {
            background-color: unset !important;
        }
    }
}

.elementor-widget-text-editor {
    ul, ol {
        padding-left: 20px;
    }
}

.elementor-menu-toggle {
    padding: 10px;
}

.gform_required_legend, .gform_validation_errors, .gfield_validation_message, .gfield_description.gform_fileupload_rules {
    display: none !important;
}

.catalogus_flipbooks .elementor-shortcode {
    display: flex;
    gap: 100px;

    .catalogus-flipbook-item {
        display: flex;
        flex-direction: column;
        gap: 20px;
    }

    a {
        color: #5E524A;
        font-family: var(--f-primary), sans-serif;
        font-weight: bold;
        font-size: 17px;
        text-decoration: underline;
    }

    img {
        width: 200px;
    }
}

::-moz-selection {
    background: #dce9c8;
}

::selection {
    background: #dce9c8;
}

body .elementor-lightbox .elementor-lightbox-image {
    border-radius: var(--radius) !important;
}


.border-dark {
    input:not([type="submit"], [type="checkbox"]), textarea, select {
        border-color: #C0B39A !important;
        color: #C0B39A !important;

        &::placeholder {
            color: #C0B39A !important;
        }
    }

    .gfield_consent_label {
        color: #93846E !important;
    }

    input[type="checkbox"] {
        border-color: #C0B39A !important;

        &:checked::after {
            border-color: #C0B39A !important;
        }
    }
}

input:not([type="submit"], [type="checkbox"]), textarea, select {
    font-size: 17px;
    font-family: var(--f-primary), sans-serif;
    line-height: 25px;
    padding: 12px 20px !important;
    background: transparent !important;
    border: 1px solid #F9F8F4 !important;
    border-radius: 5px;
    color: #F9F8F4;
    appearance: none !important;
    -moz-appearance: none !important;

    option, optgroup {
        color: #000 !important;
    }

    &::placeholder {
        color: #F9F8F4 !important;
    }
}

.ginput_container_consent {
    display: flex;
}

.gfield_consent_label {
    color: #F9F8F4;
}

input[type="checkbox"] {
    margin-right: 8px;
    appearance: none;
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    min-width: 16px;
    background: transparent;
    border: 1.5px solid #fff;
    border-radius: 3px;
    cursor: pointer;
    position: relative;

    &:checked::after {
        content: '';
        position: absolute;
        left: 4px;
        top: 1px;
        width: 5px;
        height: 9px;
        border: 2px solid #fff;
        border-top: none;
        border-left: none;
        transform: rotate(45deg);
    }
}

.popup-offerte {
    .gform_confirmation_message, #gform_wrapper_4 .gform_description {
        font-family: var(--f-secondary);
        font-weight: 400;
        font-size: 17px;
        color: var(--text);
        line-height: var(--lh-text);
    }

    .gform-footer {
        padding-bottom: 0 !important;
    }

    .gform_button {
        margin-bottom: 0 !important;
    }
}

.projectonderdelen {
    button {
        gap: 10px;

        &:before {
            content: '';
            background-image: url("/wp-content/uploads/2026/03/alle.svg");
            display: flex;
            width: 20px;
            height: 20px;
            background-size: contain;
            background-repeat: no-repeat;
            background-position: center center;
        }

        &[aria-pressed="true"]:before, &:hover:before {
            filter: brightness(0) invert(1);
        }
    }
}

.two-columns ul {
    column-count: 2;
}

html, body {
    overflow-x: hidden;
}

body {
    position: relative;
}

body::before,
body::after {
    display: none; /* TODO: */
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    z-index: -1;
    width: 100vw;
    pointer-events: none;
    background-image: radial-gradient(circle, rgb(112 112 112 / 15%) 0%, transparent 50%);
    background-repeat: repeat-y;
    background-size: 100% 3000px;
}

body::before {
    left: -50vw;
    background-position: 0 0;
}

body::after {
    right: -50vw;
    background-position: 0 1500px;
}

.nieuws-text {
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.overflow-visible.dark-bg .swiper {
    .elementor-swiper-button {
        bottom: -70px !important;
    }

    &:before {
        background: #29221e !important;
    }
}

.overflow-visible .swiper {
    overflow: visible;

    &::before {
        content: "";
        position: absolute;
        left: -2000px;
        width: 2000px;
        top: 0;
        bottom: 0;
        background: #f9f8f4;
        /*background: linear-gradient(to bottom, #eae9e5, #f1f0ed);*/
        z-index: 2;
    }
}

#gform_confirmation_message_1 {
    color: #f9f8f4;
}

.menu-nav {
    &.elementor-nav-menu--stretch {
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
    }

    & .elementor-nav-menu--dropdown {
        /*margin-left: -20px !important;*/
    }

    & .elementor-menu-toggle svg {
        display: flex;
        height: 22px;
    }
}

.margin-right {
    margin-right: calc(-50vw + 50%);
}

.margin-left-extra {
    margin-left: calc(50vw - 820px) !important;
}

.gradient-left::after {
    content: '';
    background: transparent linear-gradient(90deg, #29221E 0%, #1E1E1E09 65%, #1E1E1E00 100%) 0 0 no-repeat padding-box;
    position: absolute;
    inset: 0;
}

.woocommerce-product-gallery {
    display: flex;
    flex-direction: row-reverse;
    gap: 15px;

    .woocommerce-product-gallery__trigger {
        display: none;
    }

    .woocommerce-product-gallery__wrapper {
        flex-grow: 1;

        img {
            width: 100%;
            padding: 40px;
            border-radius: var(--radius);
            background: #ffffff;
        }
    }

    .flex-control-thumbs {
        padding: 0;
        list-style: none !important;
        min-width: 115px;
        display: flex;
        gap: 15px;
        flex-direction: column;

        li {
            display: flex;
        }

        img {
            aspect-ratio: 1 / 1;
            cursor: pointer;
            width: 115px !important;
            object-fit: contain;
            border-radius: 20px;
            padding: 5px;
            background: #ffffff !important;

            &:not(.flex-active) {
                opacity: 0.5
            }
        }
    }
}

.prev, .next {
    cursor: pointer;
}

.custom-static-loop {
    &.gradient::after {
        content: '';
        background: transparent linear-gradient(270deg, #29221E 0%, #1E1E1E09 65%, #1E1E1E00 100%) 0 0 no-repeat padding-box;
        position: absolute;
        inset: 0;
    }

    &.radius .project-static {
        border-radius: var(--radius) !important;

        .margin-left-extra {
            margin-left: 30px !important;
        }
    }

    .elementor-loop-container {
        width: 100%;
        height: 100%;
    }

    .project-post-info li:first-child {
        font-weight: bold !important;
    }

    .project-static {
        background-image: var(--background);
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
    }
}

.project-loop {
    &.bg-gradient a.e-image-link-base::after {
        content: '';
        background: transparent linear-gradient(60deg, #1c1c1c99 0%, #00000000 100%) 0% 0% no-repeat padding-box;
        position: absolute;
        border-radius: var(--radius);
        inset: 0;
        transition: ease all .3s;
    }

    &:hover {
        &.bg-gradient a.e-image-link-base::after {
            opacity: 0;
            transition: ease all .3s;
        }

        .footer-icoon {
            margin-left: 10px;
            transition: ease all .3s;
        }
    }

    a.e-image-link-base {
        width: 100%;
        position: relative;
    }

    .footer-icoon {
        transition: ease all .3s;
    }
}

.circle-navigatie {
    .elementor-swiper-button {
        bottom: -115px;
        top: unset !important;
        padding: 10px;
        right: 0 !important;
        left: unset !important;

        &.elementor-swiper-button-prev {
            right: 40px !important;
        }
    }
}

.projectonderdelen-current-icons {
    display: flex;
    align-items: center;
    gap: 15px;

    img {
        height: 29px !important;
    }
}

.nieuws-loop {
    a {
        overflow: hidden;
        border-radius: 18px;
    }

    a:hover img {
        transform: scale(1.1);
        transition: ease 0.3s all;
    }

    img {
        transition: ease 0.3s all;
    }
}

.projecten-raster {
    .elementor-loop-container {
        display: flex;
        flex-direction: column;
    }

    .w-auto.no-gap {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    img {
        height: 450px;
        object-fit: cover;
    }

    .swiper-image-stretch:hover {
        figure:after {
            opacity: 0;
            transition: ease all .3s;
        }
    }

    figure {
        display: flex;

        &::after {
            content: '';
            background: transparent linear-gradient(44deg, rgba(0, 0, 0, 0.6) 0%, rgba(255, 255, 255, 0) 100%) 0 0 no-repeat padding-box;
            position: absolute;
            inset: 0;
            border-radius: 15px;
            transition: ease all .3s;
        }
    }
}

.branch-loop-archive {
    &::after {
        content: '';
        background: transparent linear-gradient(44deg, rgba(0, 0, 0, 0.6) 0%, rgba(255, 255, 255, 0) 100%) 0 0 no-repeat padding-box;
        position: absolute;
        inset: 0;
        border-radius: var(--radius);
    }

    &:hover {
        .branch-text-box {
            padding: 20px !important;
            height: unset !important;
            border: 1px solid #C0B39A;
            border-top: 0;
            transition: ease all .3s;
        }
    }

    .branch-text-box {
        transition: ease all .3s;
    }
}

.elementor .iconlist {
    align-items: start !important;

    .footer-icoon {
        margin-top: 3px;
    }
}

.icon-hover-right {
    transition: ease all .3s;

    &:hover {
        gap: 20px;
        transition: ease all .3s;
    }
}

.custom-pagination {
    .swiper-pagination {
        display: flex;
        width: 100%;
        height: 20px;
        gap: 15px;

        span {
            font-size: 20px;
            color: var(--primary);
            font-family: var(--f-secondary), sans-serif;
            width: auto;
            margin: 0 !important;
            background: unset !important;
            line-height: 1;
            height: 20px;
            opacity: 1;
            font-weight: bold;
            white-space: nowrap;
            min-width: 40px;
            overflow: hidden;
            text-overflow: ellipsis;
            border-radius: 0;

            .fw-light {
                font-weight: normal !important;
            }
        }
    }
}

.product-loop {
    &:hover {
        .e-image-link-base::after {
            opacity: 0;
            transition: ease all .3s;
        }

        .icon-button {
            gap: 20px;
            transition: ease all .3s;
        }

        img {
            transform: scale(1.1);
            transition: ease all .3s;
        }

    }

    img {
        transition: ease all .3s;
    }

    a.e-image-link-base {
        width: 100%;
    }

    .icon-button {
        transition: ease all .3s;
    }
}

.text-underline-thin {
    text-decoration-thickness: 1px !important;
}

p.text-underline-thin:not(:has(a)) {
    display: none;
}

.e-n-accordion ul, .e-n-accordion ol {
    padding-left: 0;
    list-style: none;

    li {
        padding-left: 28px;
        background-image: url("/wp-content/uploads/2026/03/check-beige.svg");
        background-repeat: no-repeat;
        background-position: left center;
        background-size: 18px 18px;
        margin-bottom: 10px;
    }
}

.branch-loop {
    display: flex !important;

    &:hover {
        .branch-img-ctn::after {
            opacity: 0;
            transition: ease all .3s;
        }

        .icon-button {
            gap: 20px;
            transition: ease all .3s;
        }
    }

    .icon-button {
        transition: ease all .3s;
    }

    .branch-img-ctn {
        position: relative;

        &::after {
            content: "";
            inset: 0;
            position: absolute;
            border-radius: var(--radius);
            background-image: linear-gradient(37deg, rgba(0, 0, 0, 0.6) 0%, rgba(255, 255, 255, 0.0) 100%);
            transition: ease all .3s;
        }
    }
}


.cookie-notice-container {
    background-color: var(--Achtergrond);
    color: #F9F8F4 !important;
    font-size: 14px;
    padding: 30px !important;
    position: absolute;
    z-index: 9999 !important;
    box-shadow: 0 -1px 10px 0 #0000002b;
    width: 25% !important;
    left: 15px;
    right: 15px;
    bottom: 15px !important;
    border-radius: 10px;
    text-align: left !important;
    font-family: var(--f-secondary), sans-serif;

    #cn-notice-text {
        margin-bottom: 15px;
        font-weight: 400;
        font-family: var(--f-secondary), sans-serif;
    }

    #cn-notice-buttons button {
        background-color: #F9F8F4 !important;
        border-radius: 5px !important;
        transition: all .3s;
        font-family: var(--f-primary), sans-serif !important;
        color: var(--primary) !important;
        font-weight: 700 !important;
        font-size: 15px !important;
        line-height: 19px !important;
        padding: 15px 20px !important;

        &#cn-accept-cookie {
            margin-left: 0;
        }

        &:hover {
            background-color: var(--primary) !important;
            color: #F9F8F4 !important;
        }
    }

    #cn-more-info.cn-more-info {
        background: unset !important;
        text-decoration: underline !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        color: #F9F8F4 !important;
        margin-left: 0 !important;

        &:hover {
            background: unset !important;
        }
    }

    #cn-close-notice {
        display: none;
    }

    .cn-buttons-container {
        display: flex !important;
        gap: 10px 20px;
        flex-wrap: wrap;
    }
}

#breadcrumbs * {
    color: #C0B39A;

    &.breadcrumb_last {
        font-weight: 600;
    }
}

#input_2_6::before {
    content: attr(data-file-name, 'Upload motivatie') !important;
}

body .gform_wrapper.gravity-theme .gfield_error [aria-invalid=true] {
    border: 1px solid #c02b0a !important;
}

input[type="file"].large {
    /*appearance: none;*/
    /*-webkit-appearance: none;*/

    overflow: hidden;
    position: relative;
    width: 100%;
    max-width: 320px;
    height: 54px;
    box-sizing: border-box;
    padding: 0 15px;

    background-color: #1a1512;
    border: 1px solid #4a4542;
    border-radius: 4px;
    color: transparent;
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;

    &::before {
        content: attr(data-file-name, 'Upload CV') !important;
        position: absolute;
        width: 70%;
        overflow: hidden;
        left: 18px;
        top: 50%;
        transform: translateY(-50%);
        font-family: var(--f-primary), sans-serif;
        line-height: 25px;
        background: transparent !important;
        font-size: 15px;
        color: #F9F8F4;
        pointer-events: none;
    }

    &::after {
        content: '';
        position: absolute;
        right: 18px;
        top: 50%;
        transform: translateY(-50%);

        width: 22px;
        height: 22px;
        pointer-events: none;
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23e0ddd9' stroke-width='1.5'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M3 16.5v2.25A2.25 2.25 0 005.25 21h13.5A2.25 2.25 0 0021 18.75V16.5m-13.5-9L12 3m0 0l4.5 4.5M12 3v13.5' /%3E%3C/svg%3E");
        background-repeat: no-repeat;
        background-position: center;
        background-size: contain;
    }

    &::-webkit-file-upload-button, &::file-selector-button {
        display: none;
    }
}

.white.text * {
    color: var(--white);
}

.holidays-text {
    -webkit-column-break-inside: avoid;
    white-space: nowrap;
    display: table-cell;
}

.elementor .text p:last-of-type {
    margin-bottom: 0
}

@media only screen and (max-width: 767px) {
    input:not([type="submit"], [type="checkbox"]), textarea, select {
        font-size: 14px !important;
        padding: 7px 15px !important;
    }

    .gform_fields {
        gap: 10px !important;
    }

    .overflow-visible .swiper {
        overflow: hidden;

        &:before {
            display: none;
        }
    }

    body::before,
    body::after {
        display: none;
    }


    .custom-static-loop {
        &.radius .project-static {
            height: 350px;
        }
    }

    .menu-nav {
        &.elementor-nav-menu--stretch {
            background-color: var(--primary) !important;
        }

        .elementor-nav-menu--dropdown {
            background-color: #5e524a !important;
        }
    }

    .custom-pagination {
        .swiper-pagination {
            span {
                font-size: 16px;
            }
        }
    }

    .catalogus_flipbooks .elementor-shortcode {
        gap: 20px;

        a {
            font-size: 15px !important;
        }
    }

    .cookie-notice-container {
        width: calc(100% - 30px) !important;
    }

    .projecten-raster {
        img {
            height: 250px;
        }

        .elementor-loop-container {
            gap: 70px;
        }
    }

    .menu-item-has-children .elementor-nav-menu--dropdown {
        padding-left: 30px;

        a {
            font-weight: 400 !important;
        }
    }

    .woocommerce-product-gallery {
        flex-direction: column;
        gap: 5px;
    }

    .flex-control-thumbs {
        display: grid !important;
        grid-template-columns: repeat(3, 1fr);
        gap: 10px !important;
    }

    .custom-static-loop {
        &.radius .project-static {
            .margin-left-extra {
                margin-left: 20px !important;
            }
        }
    }

    .branch-text-box {
        display: none !important;
    }

    .circle-navigatie {
        .elementor-swiper-button {
            bottom: -65px !important;
        }
    }

    .vacatures-loop a {
        width: 100% !important;
    }
}
