@use '../../styles/breakpoints' as *;

.footer {
    box-sizing: border-box;
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-width: 0;
}

.trailing {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    min-width: 0;
}

.limparBtn {
    flex-shrink: 1;
    min-width: 0;
    padding-inline: 0;
}

.limparTextShort {
    display: none;
}

.footerWithoutLimpar {
    justify-content: flex-end;
}

@include max-mobile {
    .footer {
        flex-wrap: nowrap;
        gap: 6px;
    }

    .trailing {
        display: contents;
    }

    .limparBtn,
    .aplicarBtn,
    .fecharBtn {
        flex: 1 1 0;
        min-width: 0;
        max-width: 100%;
        min-height: 44px;
        padding-inline: 6px;
    }

    .limparBtn {
        order: 1;
        justify-content: center;
        text-align: center;
    }

    .aplicarBtn {
        order: 2;
    }

    .fecharBtn {
        order: 3;
    }

    .limparTextFull {
        display: none;
    }

    .limparTextShort {
        display: inline;
    }
}
