/* =========================================
   OST CONSULTATION PROCESS - DESKTOP
========================================= */

@media (min-width: 992px) {

    .ost-process-step {
        position: relative;
        min-height: 250px;
        padding: 55px 25px 25px 25px;
        overflow: visible;
    }

    /* Giant background number */
    .ost-process-number {
        position: absolute !important;

        top: 0;
        left: 8px;

        width: auto !important;

        z-index: 0;
        pointer-events: none;
    }

    .ost-process-number .elementor-heading-title {
        font-size: 90px !important;
        font-weight: 700 !important;
        line-height: 1 !important;

        color: #EDF5FF !important;

        letter-spacing: -4px;
        margin: 0 !important;
    }

    /* Everything except the number stays above it */
    .ost-process-step > *:not(.ost-process-number) {
        position: relative;
        z-index: 2;
    }

    /* Move icon slightly to create layered effect */
    .ost-process-step .elementor-icon {
        margin-left: 22px;
    }
}


/* =========================================
   OST CONSULTATION PROCESS - TABLET
========================================= */

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

    .ost-process-step {
        position: relative;
        min-height: 215px;
        padding: 48px 14px 20px 14px;
        overflow: visible;
    }

    /* Background number */
    .ost-process-number {
        position: absolute !important;

        top: 4px;
        left: 2px;

        width: auto !important;

        z-index: 0;
        pointer-events: none;
    }

    .ost-process-number .elementor-heading-title {
        font-size: 64px !important;
        font-weight: 700 !important;
        line-height: 1 !important;

        color: #EDF5FF !important;

        letter-spacing: -3px;
        margin: 0 !important;
    }

    /* Content above background number */
    .ost-process-step > *:not(.ost-process-number) {
        position: relative;
        z-index: 2;
    }

    /* Icon overlaps the number slightly */
    .ost-process-step .elementor-icon {
        margin-left: 12px;
    }
}


/* =========================================
   OST CONSULTATION PROCESS - MOBILE
========================================= */

@media (max-width: 767.98px) {

    /* Parent */
    .ost-consultation-steps {
        display: flex !important;
        flex-direction: column !important;

        justify-content: flex-start !important;
        align-items: stretch !important;

        gap: 22px !important;

        height: auto !important;
        min-height: 0 !important;

        --row-gap: 22px !important;
        --column-gap: 0px !important;
    }


    /* STEP 01 / 02 / 03 */
    .ost-consultation-steps > .ost-process-step {
        position: relative !important;

        width: 100% !important;

        height: auto !important;
        min-height: 0 !important;

        /* Elementor variables */
        --min-height: 0px !important;
        --widgets-spacing: 10px !important;

        flex: 0 0 auto !important;
        flex-grow: 0 !important;
        flex-shrink: 0 !important;
        flex-basis: auto !important;

        display: flex !important;
        flex-direction: column !important;

        justify-content: flex-start !important;
        align-items: flex-start !important;

        gap: 10px !important;

        padding: 48px 20px 24px 20px !important;
        margin: 0 !important;

        overflow: visible !important;
    }


    /* Giant faded number */
    .ost-process-number {
        position: absolute !important;

        top: 0 !important;
        left: 8px !important;

        width: auto !important;
        height: auto !important;
        min-height: 0 !important;

        margin: 0 !important;
        padding: 0 !important;

        z-index: 0;
        pointer-events: none;
    }


    .ost-process-number .elementor-heading-title {
        font-size: 64px !important;
        font-weight: 700 !important;
        line-height: 1 !important;

        color: #EDF5FF !important;

        letter-spacing: -3px !important;

        margin: 0 !important;
        padding: 0 !important;
    }


    /* All actual step content */
    .ost-process-step > *:not(.ost-process-number) {
        position: relative;
        z-index: 2;

        flex-grow: 0 !important;

        margin-top: 0 !important;
        margin-bottom: 0 !important;
    }


    /* Icon */
    .ost-process-step .elementor-widget-icon {
        margin: 0 0 8px 12px !important;
        padding: 0 !important;
    }


    /* Title */
    .ost-process-step .elementor-widget-heading {
        margin: 0 0 2px 0 !important;
        padding: 0 !important;
    }


    /* Description */
    .ost-process-step .elementor-widget-text-editor {
        margin: 0 !important;
        padding: 0 !important;
    }


    /* Remove paragraph's own default margins */
    .ost-process-step .elementor-widget-text-editor p {
        margin: 0 !important;
    }
}

/*******************************************************************************************************************/

/* =========================================================
   OST - ELECTRO LIVE PRODUCT SEARCH
   ========================================================= */

/* Search wrapper must be the positioning reference */
.site-header .navbar-search,
.site-header .header-search,
.site-header .input-group,
.site-header .twitter-typeahead {
    position: relative !important;
}

/* Typeahead wrapper */
.site-header .twitter-typeahead {
    width: 100% !important;
}

/* Actual Electro / Typeahead dropdown */
.site-header .tt-menu {
    width: 430px !important;
    min-width: 430px !important;
    max-width: calc(100vw - 30px) !important;

    left: auto !important;
    right: 0 !important;

    background: #ffffff !important;
    border: 1px solid #e5e5e5 !important;
    border-radius: 0 0 10px 10px !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15) !important;

    padding: 6px 0 !important;
    overflow: hidden !important;

    z-index: 999999 !important;
}

/* Dataset */
.site-header .tt-dataset-search {
    width: 100% !important;
}

/* Each product */
.site-header a.live-search-media.tt-suggestion {
    display: flex !important;
    align-items: center !important;

    width: 100% !important;
    min-height: 78px !important;

    padding: 9px 14px !important;
    margin: 0 !important;

    background: #ffffff !important;
    text-decoration: none !important;

    border-bottom: 1px solid #eeeeee !important;

    box-sizing: border-box !important;
}

/* Last result */
.site-header a.live-search-media.tt-suggestion:last-child {
    border-bottom: 0 !important;
}

/* Product image */
.site-header .live-search-media img.media-object {
    width: 60px !important;
    height: 60px !important;

    min-width: 60px !important;
    flex: 0 0 60px !important;

    object-fit: contain !important;

    margin: 0 14px 0 0 !important;
}

/* Product text container */
.site-header .live-search-media .media-body {
    display: block !important;
    width: auto !important;
    flex: 1 1 auto !important;

    min-width: 0 !important;
    padding: 0 !important;
}

/* Product title */
.site-header .live-search-media .media-body p {
    margin: 0 !important;
    padding: 0 !important;

    color: #222222 !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    line-height: 1.45 !important;

    white-space: normal !important;
    word-break: normal !important;
    overflow-wrap: break-word !important;
}

/* Search keyword highlight */
.site-header .live-search-media .tt-highlight {
    color: #006cff !important;
    font-weight: 700 !important;
}

/* Hover / keyboard selection */
.site-header a.live-search-media.tt-suggestion:hover,
.site-header a.live-search-media.tt-suggestion.tt-cursor {
    background: #f5f9ff !important;
}

/* Mobile */
@media (max-width: 767px) {

    .site-header .tt-menu {
        width: calc(100vw - 30px) !important;
        min-width: 0 !important;
        max-width: calc(100vw - 30px) !important;

        left: 50% !important;
        right: auto !important;
        transform: translateX(-50%) !important;
    }
}
/*******************************************************************************************************************/

