@mixin generate-matcha-hint-size-classes($helper-breakpoints) {
    @each $breakpoint, $materialBreakpoint in $helper-breakpoints {
        @include media-breakpoint($materialBreakpoint) {
            $infix: if($materialBreakpoint ==null, "", "-#{$breakpoint}");

            &[size#{$infix}="tiny"] {
                font-size: px-to-rem(12px);
                line-height: px-to-rem(16px);

                matcha-icon span {
                    width: px-to-rem(16px);
                    height: px-to-rem(16px);
                    font-size: px-to-rem(16px);
                    line-height: px-to-rem(16px);
                }
            }

            &[size#{$infix}="medium"] {
                font-size: px-to-rem(14px);
                line-height: px-to-rem(24px);

                matcha-icon,
                matcha-icon span {
                    width: px-to-rem(24px);
                    height: px-to-rem(24px);
                    font-size: px-to-rem(24px);
                    line-height: px-to-rem(24px);
                }
            }
        }
    }
}

@mixin matcha-hint-text($theme) {
    matcha-hint-text {
        // Estilos base semelhantes ao matcha-error para manter a consistência visual
        width: 100%;
        display: flex;
        align-items: center;
        gap: px-to-rem(4px);
        margin: 0;
        padding: px-to-rem(4px) 0;

        // Cor por type
        &[type="error"] {
            color: getDanger($theme);
        }

        &[type="warning"] {
            color: getWarn($theme);
        }

        &[type="info"] {
            color: getInfo($theme);
        }

        &[type="success"] {
            color: getSuccess($theme);
        }

        &:not([size]) {
            font-size: px-to-rem(12px);
            line-height: px-to-rem(16px);

            matcha-icon,
            matcha-icon span {
                display: flex;
                width: px-to-rem(16px);
                height: px-to-rem(16px);
                font-size: px-to-rem(16px);
                line-height: px-to-rem(16px);
            }
        }

        @include generate-matcha-hint-size-classes($helper-breakpoints);
    }
}