/* Scoped to custom shortcode only — edit here without affecting tick_list_tabs_with_image */

/* html:has(body.home.wistia_popover_mode) {
    scrollbar-gutter: stable;
  }
  
  body.home.wistia_popover_mode {
    overflow: hidden !important;
  } */

.tm-custom-tick-tabs {
    padding: 100px 0;
    @media (max-width: 991px) {
        padding: 48px 0;
    }

    .heading-container {
        h2 {
            span {
                color: var(--Fills-Action, #1d4ed8);
            }
        }
        .distinct--text {
            color: #333241;

            @media (max-width: 1024px) {
                br {
                    display: none;
                }
            }
            @media (max-width: 540px) {
                text-align: left !important;
            }
        }
    }

    .custom-tick-tabs__inner {
        margin-top: 40px;
    }

    .custom-tick-tabs__nav {
        display: flex;
        padding: 4px;
        align-items: center;
        gap: 8px;
        justify-content: center;
        border-radius: 8px;
        background: var(--Fills-Input, #ebeef5);
        width: max-content;
        max-width: 100%;
        flex-wrap: wrap;
        margin: 0 auto 48px;

        @media (max-width: 568px) {
            width: 100%;
        }

        button {
            display: flex;
            width: auto;
            flex: 1 1 calc(25% - 8px);
            min-width: 140px;
            min-width: 196px;
            padding: 8px 16px 8px 12px;
            justify-content: center;
            align-items: center;
            gap: 10px;
            border: none;
            position: relative;
            z-index: 2;
            background: transparent;

            @media (max-width: 900px) {
                &.custom-tick-tabs__tab {
                    flex: 1 1 calc(50% - 8px);
                    max-width: none;
                }
            }

            @media (max-width: 991px) {
                width: auto;
                min-width: 156px;
                &.custom-tick-tabs__tab {
                    min-width: 233px;
                }
            }

            @media (max-width: 540px) {
                &.custom-tick-tabs__tab {
                    min-width: 47%;
                    max-width: 49%;
                }
            }

            &.custom-tick-tabs__tab--active {
                .custom-tick-tabs__tab-label {
                    color: var(--text-icon-emphasize, #202223) !important;
                }
                .icon {
                    color: var(--text-icon-emphasize, #202223) !important;
                }
            }

            .icon {
                color: #4e4b66 !important;
                font-size: 20px;

                &.mobile-icon-fix {
                    font-size: 14px;
                }
            }

            .custom-tick-tabs__tab-icon {
                width: 20px;
                height: 20px;
                object-fit: contain;
                flex-shrink: 0;
            }

            .custom-tick-tabs__tab-label {
                color: var(--text-icon-emphasize, #4e4b66);
                font-family: var(--font-body);
                font-size: 16px;
                font-style: normal;
                font-weight: 600;
                line-height: 24px;
                white-space: nowrap;

                @media (max-width: 568px) {
                    display: none;
                }

            }

            .custom-tick-tabs__tab-label--mobile {
                display: none;
                color: var(--text-icon-emphasize, #202223);
                font-family: var(--font-body);
                font-size: 16px;
                font-style: normal;
                font-weight: 600;
                line-height: 24px;
                @media (max-width: 568px) {
                    display: block;
                }
            }

            .custom-tick-tabs__tab-inner {
                display: flex;
                align-items: center;
                gap: 8px;
            }

            .custom-tick-tabs__badge {
                display: flex;
                width: 38px;
                padding: 2px 5px;
                justify-content: center;
                align-items: center;
                gap: 4px;
                flex-shrink: 0;
                border-radius: 5px;
                background: linear-gradient(91deg, #aa41cf 7.36%, #4d61c9 85.2%);
                color: var(--text-icon-white, #fff);
                font-family: var(--font-body);
                font-size: 10px;
                font-style: normal;
                font-weight: 700;
                line-height: 13px;
            }
        }

        @media (max-width: 991px) {
            display: none;
        }
    }

    /* Tablet/mobile: hide tab row, show dropdown (≤991px) */
    .custom-tick-tabs__mobile-dropdown {
        display: none;
        position: relative;
        margin-bottom: 24px;

        @media (max-width: 991px) {
            display: block;
        }
    }

    .custom-tick-tabs__dropdown-toggle {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        padding: 10px 12px 10px 14px;
        border-radius: var(--Corner-Radius-sm, 6px);
        border: 1px solid var(--border-input, #d0d5dd);
        background: var(--text-icon-white, #fff);
        box-shadow: 0px 1px 2px 0px rgba(16, 24, 40, 0.05);
        color: var(--text-icon-emphasize, #202223);
        font-family: var(--font-body);
        font-size: 16px;
        font-weight: 600;
        line-height: 24px;
        cursor: pointer;
        transition: all 0.2s ease;

        &:focus {
            border: 1px solid var(--border-input, #d0d5dd) !important;
        }

        &:hover {
            border: 1px solid var(--border-input, #d0d5dd) !important;
        }

        &.custom-tick-tabs__dropdown--open {
            border: 1px solid var(--border-input, #d0d5dd) !important;
            border-bottom-left-radius: 0;
            border-bottom-right-radius: 0;
        }
    }

    .custom-tick-tabs__dropdown-current {
        display: flex;
        align-items: center;
        gap: 10px;
        min-width: 0;
    }

    .custom-tick-tabs__dropdown-icon-wrap {
        flex-shrink: 0;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .custom-tick-tabs__dropdown-current-icon,
    .custom-tick-tabs__dropdown-option-icon {
        width: 20px;
        height: 20px;
        object-fit: contain;
    }

    .custom-tick-tabs__dropdown-arrow {
        display: flex;
        align-items: center;
        flex-shrink: 0;
        transition: transform 0.2s ease;

        .custom-tick-tabs__dropdown--open & {
            transform: rotate(180deg);
        }
    }

    .custom-tick-tabs__dropdown-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--text-icon-white, #fff);
        border: 1px solid var(--border-input, #d0d5dd) !important;
        border-top: none;
        border-bottom-left-radius: 8px;
        border-bottom-right-radius: 8px;
        box-shadow: 0px 4px 16px rgba(16, 24, 40, 0.16);
        z-index: 10;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
        transition: all 0.2s ease;

        &.custom-tick-tabs__dropdown-menu--open {
            opacity: 1;
            visibility: visible;
            transform: translateY(0);
        }
    }

    .custom-tick-tabs__dropdown-option {
        display: flex;
        align-items: center;
        gap: 10px;
        width: 100%;
        padding: 12px 16px;
        border: none;
        background: transparent;
        color: var(--text-icon-emphasize, #202223);
        font-family: var(--font-body);
        font-size: 16px;
        font-weight: 600;
        line-height: 24px;
        text-align: left;
        cursor: pointer;
        transition: background-color 0.2s ease;

        &:hover {
            background: var(--Fills-Input, #ebeef5);
        }

        &.custom-tick-tabs__dropdown-option--active {
            background: var(--Fills-Input, #ebeef5);
        }

        &:not(:last-child) {
            border-bottom: 1px solid var(--Fills-Input, #ebeef5);
        }
    }

    .custom-tick-tabs__main {
        position: relative;
        min-height: 448px;
    }

    .custom-tick-tabs__article {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        display: flex;
        align-items: flex-end;
        gap: 48px;
        align-self: stretch;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0s ease-in-out, visibility 0s ease-in-out, transform 0s ease-in-out;
        transform: translateY(20px);

        @media (max-width: 991px) {
            flex-direction: column;
            gap: 30px;
        }

        &.custom-tick-tabs__article--active {
            opacity: 1;
            visibility: visible;
            transform: translateY(0);
            position: relative;

            @media (max-width: 991px) {
                align-items: center;
            }
        }

        &.custom-tick-tabs__article--hidden {
            opacity: 0;
            visibility: hidden;
            transform: translateY(20px);
        }

        .custom-tick-tabs__text {
            display: flex;
            width: 412px;
            flex-direction: column;
            justify-content: center;
            align-items: flex-start;
            align-self: stretch;

            @media (max-width: 991px) {
                width: 100%;
            }

            .custom-tick-tabs__title {
                color: var(--text-icon-emphasize, #202223);
                font-family: var(--font-body);
                font-size: 28px;
                font-style: normal;
                font-weight: 800;
                line-height: 36px;
                margin-bottom: 16px;
                span {
                    color: var(--Fills-Action, #1d4ed8);
                }
            }

            .custom-tick-tabs__content-text {
                width: 100%;
                color: var(--text-icon-emphasize, #202223);
                font-family: var(--font-body);
                font-size: 16px;
                line-height: 24px;

                > *:last-child {
                    margin-bottom: 0;
                }
            }

            ul {
                color: var(--text-icon-emphasize, #202223);
                font-family: var(--font-body);
                font-size: 16px;
                font-style: normal;
                font-weight: 400;
                line-height: 24px;
                display: flex;
                flex-direction: column;
                gap: 10px;
                margin-bottom: 20px;

                li {
                    position: relative;
                    display: flex;
                    align-items: center;
                    &::before {
                        content: '\e9c4';
                        color: #69bc35;
                        font-family: 'mdi-textmagic' !important;
                        speak: never;
                        font-style: normal;
                        font-weight: normal;
                        font-variant: normal;
                        text-transform: none;
                        line-height: 1;
                        font-size: 20px;
                        margin-right: 8px;
                    }
                }
            }

            a {
                color: var(--Fills-Action, #1d4ed8);
                font-family: var(--font-body);
                font-size: 18px;
                font-style: normal;
                font-weight: 700;
                line-height: 20px;
                display: flex;
                align-items: center;
                gap: 4px;
                margin-top: 20px;
                &::after {
                    content: '';
                    width: 16px;
                    height: 17px;
                    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='17' viewBox='0 0 16 17' fill='none'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M5.57774 4.02874C5.25176 4.35473 5.25176 4.88131 5.57774 5.20729L8.82084 8.4504L5.57774 11.6935C5.25176 12.0195 5.25176 12.5461 5.57774 12.8721C5.90372 13.198 6.43031 13.198 6.75629 12.8721L10.5928 9.03549C10.9188 8.70951 10.9188 8.18293 10.5928 7.85694L6.75629 4.02039C6.43867 3.70276 5.90372 3.70276 5.57774 4.02874Z' fill='%231D4ED8'/%3E%3C/svg%3E");
                    background-repeat: no-repeat;
                    background-size: contain;
                    background-position: center;
                    flex-shrink: 0;
                    transform: translateY(2px);
                }
            }
        }

        .custom-tick-tabs__image {
            width: 690px;
            height: 448px;
            @media (max-width: 1200px) {
                width: 50%;
                height: 450px;
                object-fit: contain;
            }
            @media (max-width: 991px) {
                width: 100%;
                height: auto;
            }
        }

        /* Wistia play overlay */
        .custom-tick-tabs__media-wrap {
            position: relative;
            display: flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
            max-width: 690px;

            .custom-tick-tabs__image {
                width: 100%;
                max-width: 690px;
                height: auto;
                min-height: 0;
                object-fit: contain;
                display: block;
            }

            .hero-video-button {
                position: absolute;
                top: 0;
                left: 0;
                width: 100%;
                height: 100%;
                cursor: pointer;
                transition: opacity 0.3s ease;
                &:hover {
                    opacity: 0.92;
                }
            }

            .wistia_click_to_play {
                position: absolute;
                top: 0;
                left: 0;
                width: 100%;
                height: 100%;
                display: flex;
                align-items: center;
                justify-content: center;
            }

            @media (max-width: 1200px) {
                max-width: 50%;
            }
            @media (max-width: 991px) {
                max-width: 100%;
            }
        }
    }
}

.hero_wrapper + .tm-custom-tick-tabs {
    padding-top: 40px;
}