/*
 * Supplementary styling for EXT:iconpack's icon-picker modal (used by the "IconpackWizard"
 * FormEngine renderType, see tx_gmds_domain_model_button.icon). The extension ships its own CSS
 * (EXT:iconpack/Resources/Public/Css/Backend/FormEngine/IconpackWizard.min.css, registered via
 * $TYPO3_CONF_VARS['BE']['stylesheets']['iconpack']) targeting ".modal-iconpack #iconpack-icons
 * ul/li" - that registration is confirmed present at runtime, but the icon grid still rendered as a
 * bare unstyled list in testing. Deliberately not scoped under ".modal-iconpack" (unlike the
 * vendor CSS) in case that class is what's failing to apply - "#iconpack-icons" alone is a
 * sufficiently unique id to stay safely scoped to this one modal.
 */
#iconpack-icons {
    overflow-y: auto;
    overflow-x: hidden;
    padding: 10px 15px;
}

#iconpack-icons section {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

#iconpack-icons h2 {
    margin-top: 1.5rem;
    margin-bottom: .3rem;
    padding-bottom: .4rem;
    width: 100%;
    border-bottom: 1px solid #eee;
}

#iconpack-icons ul {
    display: flex;
    flex-flow: row wrap;
    gap: 1px;
    margin: 0;
    padding: 0;
    list-style: none;
}

#iconpack-icons li {
    display: inline-flex;
    width: 62px;
    height: 62px;
    overflow: hidden;
    border-radius: 3px;
    cursor: pointer;
}

#iconpack-icons li img,
#iconpack-icons li svg {
    width: 32px;
    height: 32px;
}

#iconpack-icons li i,
#iconpack-icons li img,
#iconpack-icons li span,
#iconpack-icons li svg {
    display: inline-block;
    margin: auto;
    font-size: 32px;
    line-height: 1;
    color: #333;
    text-rendering: auto;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

#iconpack-icons li svg {
    width: auto;
    overflow: visible;
}

#iconpack-icons li.active,
#iconpack-icons li:hover {
    background: #eee;
    border: 1px solid #bbb;
}
