/* Final mobile floating badge overflow override */
@media (max-width: 600px) {
    .howItWorksFloatingBadge,
    .certFloatingBadge,
    .studyFloatingBadge,
    .teamsFloatingBadge {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: max-content !important;
        max-width: min(calc(100vw - 16px), calc(100% - 16px)) !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
        flex-wrap: nowrap !important;
        gap: 6px !important;
        padding: 7px 10px !important;
        font-size: 14px !important;
        line-height: 1.2 !important;
        text-align: center !important;
        white-space: nowrap !important;
    }

    .howItWorksFloatingBadge {
        left: 50% !important;
        right: auto !important;
        transform: translateX(-50%) !important;
        animation: none !important;
    }

    .studyFloatingBadge,
    .teamsFloatingBadge {
        left: 8px !important;
        right: auto !important;
        transform: none !important;
        animation: none !important;
    }

    .howItWorksFloatingBadge svg,
    .certFloatingBadge svg,
    .studyFloatingBadge svg,
    .teamsFloatingBadge svg {
        width: 18px !important;
        height: 18px !important;
        min-width: 18px !important;
        flex: 0 0 18px !important;
        padding: 0 !important;
        box-sizing: border-box !important;
    }

    .howItWorksFloatingBadge span,
    .certFloatingBadge span,
    .studyFloatingBadge span,
    .teamsFloatingBadge span {
        min-width: 0 !important;
        padding-right: 0 !important;
        white-space: nowrap !important;
    }

    .howItWorksFloatingBadge .hiwBadgeTextFull,
    .teamsFloatingBadge .teamsBadgeTextFull {
        display: none !important;
    }

    .howItWorksFloatingBadge .hiwBadgeTextShort,
    .teamsFloatingBadge .teamsBadgeTextShort {
        display: inline !important;
    }
}

@media (max-width: 240px) {
    .howItWorksFloatingBadge,
    .certFloatingBadge,
    .studyFloatingBadge,
    .teamsFloatingBadge {
        width: calc(100% - 16px) !important;
        max-width: calc(100vw - 16px) !important;
        flex-wrap: wrap !important;
        white-space: normal !important;
    }

    .howItWorksFloatingBadge span,
    .certFloatingBadge span,
    .studyFloatingBadge span,
    .teamsFloatingBadge span {
        white-space: normal !important;
        overflow-wrap: anywhere !important;
    }
}
