/* Marketing adds a language picker: place all three actions explicitly. */
.ct-front-actions:has(> .eco-language-choice) {
    grid-template-columns: minmax(160px, 1fr) max-content minmax(0, 280px) !important;
    grid-template-areas: "search language account" !important;
}
.ct-front-actions:has(> .eco-language-choice) > .ct-company-search {
    grid-area: search;
    width: 100% !important;
    max-width: none !important;
    min-height: 44px !important;
}
.ct-front-actions > .eco-language-choice {
    grid-area: language;
    margin: 0;
    flex-wrap: nowrap;
}
.ct-front-actions:has(> .eco-language-choice) > .ct-front-account {
    grid-area: account;
    width: 100% !important;
    min-width: 0 !important;
}
.ct-front-actions:has(> .eco-language-choice) .ct-auth-user {
    display: grid !important;
    grid-template-columns: 44px minmax(0, 1fr) auto;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0;
}
.ct-front-actions:has(> .eco-language-choice) .ct-auth-user-info strong {
    max-width: 100% !important;
}
.ct-front-actions:has(> .eco-language-choice) .ct-auth-form {
    flex-shrink: 0;
}
.ct-front-actions > .eco-language-choice select {
    max-width: 112px;
}
@media (min-width: 1751px) {
    .ct-front-topbar:has(.eco-language-choice) {
        grid-template-columns: minmax(180px, 1fr) minmax(700px, 900px) !important;
    }
}
@media (max-width: 1750px) {
    .ct-front-actions > .eco-language-choice > span {
        position: absolute;
        width: 1px;
        height: 1px;
        padding: 0;
        overflow: hidden;
        clip-path: inset(50%);
        white-space: nowrap;
    }
}
@media (min-width: 641px) and (max-width: 1200px) {
    .ct-front-actions:has(> .eco-language-choice) {
        grid-template-columns: minmax(160px, 1fr) max-content minmax(0, 260px) !important;
    }
    .ct-front-actions:has(> .eco-language-choice) .ct-auth-user {
        padding: 4px !important;
        gap: 6px !important;
    }
    .ct-front-actions:has(> .eco-language-choice) .ct-auth-logout {
        min-height: 44px !important;
    }
}
@media (max-width: 640px) {
    .ct-front-actions:has(> .eco-language-choice) {
        grid-template-columns: minmax(0, 1fr) max-content !important;
        grid-template-areas: "search search" "account language" !important;
        gap: 8px !important;
    }
    .ct-front-actions:has(> .eco-language-choice) .ct-auth-user {
        grid-template-columns: 44px minmax(0, 1fr) auto;
        gap: 6px !important;
        padding: 4px !important;
    }
    .ct-front-actions:has(> .eco-language-choice) .ct-auth-avatar {
        width: 44px;
        height: 44px;
        min-height: 44px;
    }
    .ct-front-actions:has(> .eco-language-choice) .ct-auth-logout {
        min-width: 44px !important;
        min-height: 44px !important;
        padding: 8px !important;
    }
    .ct-front-actions > .eco-language-choice select {
        width: 96px;
        max-width: 96px;
        padding-inline: 6px;
    }
    .ct-front-actions:has(> .eco-language-choice) .ct-auth-guest {
        grid-template-columns: minmax(0, .65fr) minmax(0, 1fr) !important;
        gap: 5px !important;
    }
    .ct-front-actions:has(> .eco-language-choice) .ct-auth-guest :is(.ct-auth-login, .ct-auth-register) {
        min-height: 44px !important;
        padding-inline: 5px !important;
        font-size: 12px !important;
        white-space: normal;
    }
}
