/* Override legacy .kt-child-layout-form label minimums inside logo cards. */
.tk-child-themes,.tk-child-theme-selector,.tk-child-themes-grid{min-width:0!important;min-inline-size:0!important;max-width:100%!important;box-sizing:border-box!important}
.tk-child-themes-grid{width:100%!important;align-items:stretch;gap:10px!important}
form.kt-child-layout-form .tk-child-themes-grid>label.tk-child-theme-choice,form.kt-children-add .tk-child-themes-grid>label.tk-child-theme-choice{display:flex!important;flex-direction:column!important;flex:none!important;flex-basis:auto!important;grid-column:auto!important;min-width:0!important;min-inline-size:0!important;width:100%!important;max-width:100%!important;max-inline-size:100%!important;box-sizing:border-box!important;align-self:stretch;margin:0!important;padding:8px!important;gap:8px!important;white-space:normal!important;overflow-wrap:anywhere!important}
.tk-child-theme-choice>.tk-theme-logo{width:100%!important;min-width:0!important;min-inline-size:0!important;max-width:100%!important;box-sizing:border-box!important;flex:none!important;overflow:hidden}
.tk-child-theme-choice>.tk-theme-logo img{display:block!important;min-width:0!important;width:100%!important;max-width:100%!important;height:100%!important;object-fit:contain!important}
.tk-child-theme-choice>.tk-child-theme-name{display:block;width:100%;min-width:0!important;max-width:100%;box-sizing:border-box;white-space:normal!important;overflow-wrap:anywhere!important;word-break:normal;line-height:1.4;text-align:center}
.tk-child-themes>legend{max-width:100%;box-sizing:border-box;white-space:normal;overflow-wrap:anywhere}
.tk-child-theme-selector>summary{min-width:0;box-sizing:border-box;flex-wrap:wrap}.tk-child-theme-selector>summary [data-child-themes-count]{white-space:normal;overflow-wrap:anywhere}
@media(max-width:700px){
 .tk-child-themes-grid,dialog.tk-child-settings-modal .tk-child-themes-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important;padding:2px!important}
 .tk-child-theme-choice>.tk-theme-logo{height:68px!important;padding:9px!important}
 .tk-child-theme-choice>.tk-child-theme-name{font-size:12px!important}
 .tk-child-themes{padding:10px!important}
 .tk-child-theme-selector .tk-child-themes-reset{display:block;width:100%!important;max-width:100%!important;box-sizing:border-box!important;white-space:normal!important;line-height:1.4!important}
 .tk-child-settings-scroll{min-width:0!important;width:100%!important;box-sizing:border-box!important;padding:12px!important}
 dialog.tk-child-settings-modal .tk-child-settings-body,dialog.tk-child-settings-modal form.kt-child-layout-form{min-width:0!important;min-inline-size:0!important;max-width:100%!important;box-sizing:border-box!important}
}
