.ds_expanding_cta .ds-content-image-icon-wrap,
.ds_expanding_cta .ds_expanding_cta_container .ds_expanding_cta-content-wrapper {
    border-style: solid;
}

.ds_expanding_cta .ds_expanding_cta_container .ds_expanding_cta-content-wrapper,
.ds_expanding_cta_container {
    position: relative;
    z-index: 1;
}

.ds_expanding_cta .ds-content-image-icon-wrap.ds-icon-wrap {
    width: fit-content;
}

.ds_expanding_cta .ds_extending_cta-overlay {
    height: 100vh;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    -webkit-transition: all 500ms ease-in-out;
    -o-transition: all 500ms ease-in-out;
    transition: all 500ms ease-in-out;
}

/* Styling of Expanded CTA & Overlay */
.ds_expanding_cta .ds_expanding_cta_container .ds_expanding_cta_container-background {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    background-blend-mode: normal;
    border-style: solid;
}

.ds_expanding_cta .ds_expanding_cta_container .ds_expanding_cta_container-background,
.ds_expanding_cta .ds_expanding_cta_container .ds_expanding_cta-content-wrapper,
.ds_expanding_cta .ds_expanding_cta_container>.et_parallax_bg_wrap {
    transition: transform 500ms ease-in-out, box-shadow 500ms ease-in-out !important;
    /* without !important, transition won't work when border is set*/
}

.ds_expanding_cta.ds-expanded-cta .ds_expanding_cta_container .ds_expanding_cta_container-background,
.ds_expanding_cta.ds-expanded-cta .ds_expanding_cta_container .ds_expanding_cta-content-wrapper {
    transform: scale(1.2);
}

.ds_expanding_cta.ds-expanded-cta .ds_extending_cta-overlay {
    opacity: 1;
    visibility: visible;
    pointer-events: initial;
}

/* Animated CTA Section slide out menu and back to top button */
.ds-has-expanding-cta-body header#main-header {
    transition: all 500ms ease-in-out !important;
}

.ds-has-expanding-cta-body .et_pb_scroll_top {
    transition: all .5s ease-in-out;
}

/* Non theme builder header */
body.ds-expanded-body.ds-hide_header_in-expanded-body header#main-header {
    margin-top: -100px;
}

/* Theme builder header */
.ds-has-expanding-cta-body .et-l--header .et_pb_section_0_tb_header,
.ds-has-expanding-cta-body .et-l--header .et_pb_sticky {
    transition: all .5s ease-in-out;
}

body.ds-expanded-body.ds-hide_header_in-expanded-body .et-l--header .et_pb_section--fixed,
body.ds-expanded-body.ds-hide_header_in-expanded-body .et-l--header .et_pb_sticky {
    top: -100% !important;
}

body.ds-expanded-body.ds-hide_btt_in-expanded-body .et_pb_scroll_top {
    right: -100%;
}

/* hide the horizontal scrollbar when CTA section expands */

body.ds-expanded-body #et-main-area {
    /* overflow-x:hidden causing the issue of not showing expanding cta in mobile */
    overflow-x: clip;
    /* use overflow-x: clip since 20240420 */
}

.ds-expanded-body .et-l.et-l--header,
body.ds-expanding_cta-on-top-removing .et-l.et-l--header,
body.ds-has-expanding-cta-body #theme-builder-area--et_header_layout {
    z-index: 99999;
}

.ds-expanding_cta-on-top {
    z-index: 9999 !important;
}

.ds-expanding_cta-on-top-removing {
    z-index: 9990 !important;
}

.ds_expanding_cta .ds-content-heading,
.ds_expanding_cta .ds-desc,
.ds_expanding_cta .ds_expanding_cta-content-wrapper .ds-button-wrapper {
    text-align: center;
}

.ds_expanding_cta .ds_extending_cta-overlay {
    background-color: rgba(12, 113, 195, 0.63);
}

.ds_expanding_cta .ds_expanding_cta-content {
    margin: auto;
}

.ds_content_button,
.ds_second_button {
    display: inline-block;
}

.ds_expanding_cta .ds_expanding_cta_container .ds_expanding_cta-content-wrapper {
    overflow: hidden;
}

/*
 * Divi 5 Add Module modal: the Divi Sensei folder tile.
 *
 * Scoped to the folder button only (value="divi-sensei", exact match) so module
 * tiles (button[value^="ds/"]) keep their own icon colors. Colors come from
 * the picker's theme variables, matching the standard module tiles.
 */
.et-vb-module-picker-option[value="divi-sensei"] {
    background-color: var(--ds-vb-module-selection-background-color) !important;
    color: var(--ds-vb-module-selection-text-color) !important;
    font-size: 10px !important;
    padding: 10px 5px !important;
    border-color: transparent !important;
}

.et-vb-module-picker-option[value="divi-sensei"].et-vb-module-picker-option--selected {
    background-color: hsl(from var(--ds-vb-module-selection-background-color) h s l / 0.9) !important;
    border-color: var(--ds-vb-module-selection-border-color) !important;
}

.et-vb-module-picker-option[value="divi-sensei"] svg {
    fill: var(--ds-vb-module-selection-icon-color) !important;
    scale: 0.8;
    stroke: var(--ds-vb-module-selection-icon-color) !important;
    stroke-width: 0;
}

