/* Keep profile forms inside the viewport at all supported widths. */
html body #klino-profile-modal{overflow-x:hidden;overflow-y:auto}
html body #klino-profile-modal .klino-profile-portal{box-sizing:border-box;width:100%;max-width:100%;padding-inline:clamp(12px,4vw,40px)}
html body #klino-profile-modal .klino-profile-page{box-sizing:border-box;max-width:min(100%,760px);margin-inline:auto}
html body #klino-profile-modal #klino-profile-picker-list{display:grid!important;grid-template-columns:repeat(auto-fit,minmax(min(140px,100%),180px))!important;justify-content:center;gap:16px!important;width:100%!important;max-width:900px!important;margin-inline:auto}
html body #klino-profile-modal #klino-profile-picker-list>div{min-width:0;max-width:100%;width:100%}
html body #klino-profile-modal #klino-profile-picker-list>div>button>span:first-child{width:min(100%,9rem)!important;max-width:100%!important}
html body #klino-profile-modal :is(input,select,button,.klino-select-shell,.klino-profile-field){box-sizing:border-box;max-width:100%;min-width:0}
html body #klino-profile-modal :is(button,label,legend,.klino-profile-field-label){overflow-wrap:anywhere;white-space:normal}
html body #klino-profile-modal .klino-profile-card-actions{display:flex;flex-wrap:wrap;gap:8px;justify-content:center}
html body #klino-profile-modal #klino-profile-editor{width:100%;padding:clamp(12px,3vw,24px)}
html body #klino-profile-modal #klino-profile-avatars{grid-template-columns:repeat(auto-fit,minmax(42px,1fr))}
#ux-password-reset-status{font-size:.9rem;padding:10px 16px;color:var(--text-sub);overflow-wrap:anywhere}
#ux-password-reset-status[data-state=error]{color:#ef4444}#ux-password-reset-status[data-state=success]{color:#22c55e}
html body #settings-cat-Checkout .ux-country{display:block!important}
html body:has(#search-view-header:not(.hidden)) #mobile-category-tabs,
html body:has(#search-view-header:not(.hidden)) #header-search-field,
html body:has(#search-view-header:not(.hidden)) #mobile-search-button{display:none!important}
html.klino-desktop-final body #search-view-header:not(.hidden)>.relative{display:block!important}
html body #search-view-header:not(.hidden){display:block!important;margin:0 0 24px!important}
html body #search-view-input{min-height:56px!important;padding:14px 100px 14px 48px!important;font-size:1.05rem!important;color:var(--text-main);background:var(--bg-card);border-color:var(--border-color)}
.klino-search-submit{position:absolute;left:6px;top:50%;transform:translateY(-50%);width:38px;height:44px;color:var(--text-main)}
.klino-search-clear{position:absolute;right:10px;top:50%;transform:translateY(-50%);min-height:44px;padding:6px 12px;color:var(--text-main)}

@media(max-width:479px){html body #klino-profile-modal .klino-profile-options-grid{grid-template-columns:minmax(0,1fr)!important}}


html.klino-ui-upgrade body:has(#search-view-header:not(.hidden)) #navbar#navbar #mobile-search-button { display:none!important; }

