/*========== ICON PICKER ==========*/

.acpt-icon-picker-bg {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0,0,0,.7);
    overflow: hidden;
    z-index: 9999;
}

.acpt-icon-picker-bg.hidden {
    display: none !important;
}

.close-acpt-icon-picker {
    background: none;
    border: none;
    outline: none;
    text-shadow: none;
    padding: 0;
    margin: 0;
    cursor: pointer;
}

.close-acpt-icon-picker:hover,
.close-acpt-icon-picker:focus {
    opacity: .7;
}

.acpt-icon-picker-bg .acpt-icon-picker {
    background: #fff;
    border-radius: 4px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translateX(-50%) translateY(-50%);
    max-width: 600px;
    z-index: 1111;
    padding: 15px;
}

.is-sidebar-opened .acpt-icon-picker-bg .acpt-icon-picker {
    left: calc(50% - 140px);
}

.acpt-icon-picker-bg .acpt-icon-picker .acpt-icon-picker-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0 0 15px;
}

.acpt-icon-picker-bg .acpt-icon-picker .acpt-icon-picker-selector:not(.hidden) {
    display: flex;
    flex-direction: column;
    gap: 5px;
    min-width: 230px
}

.acpt-icon-picker-bg .acpt-icon-picker .acpt-icon-picker-selector li {
    border-radius: 4px;
    padding: 5px 10px;
    border: 1px solid #aaa;
    cursor: pointer;
}

.acpt-icon-picker-bg .acpt-icon-picker .acpt-icon-picker-selector li:hover {
    border: 1px solid #007cba;
    color: #007cba;
}

.acpt-icon-picker-bg .acpt-icon-picker .acpt-icon-picker-back:not(.hidden) {
    text-decoration: none;
    display: inline-block;
}

.acpt-icon-picker-bg .acpt-icon-picker .acpt-icon-picker-upload {
    margin-top: 5px;
}

.acpt-icon-picker-bg .acpt-icon-picker .acpt-icon-picker-header h3 {
    margin: 0;
    padding: 0;
}

.acpt-icon-picker-bg .acpt-icon-picker .acpt-icon-picker-results {
    flex-wrap: wrap;
    margin-top: 15px;
    display: flex;
    gap: 15px;
    overflow-y: auto;
    overflow-x: hidden;
    max-height: 500px;
}

.acpt-icon-picker-bg .acpt-icon-picker .acpt-icon-picker-results .acpt-icon-picker-providers {
    width: 100%;
    flex-wrap: wrap;
    display: flex;
    gap: 5px;
}

.acpt-icon-picker-bg .acpt-icon-picker .acpt-icon-picker-results .acpt-icon-picker-providers .acpt-icon-picker-provider {
    border: 1px solid #007cba;
    color: #007cba;
    border-radius: 4px;
    padding: 5px;
    cursor: pointer;
    font-size: 11px;
}

.acpt-icon-picker-bg .acpt-icon-picker .acpt-icon-picker-results .acpt-icon-picker-providers .acpt-icon-picker-provider.active {
    color: #fff;
    background: #007cba;
}

.acpt-icon-picker-bg .acpt-icon-picker input.acpt-icon-picker-upload {
    border: 1px solid #aaa;
    border-radius: 4px;
    padding: 5px 10px;
}

.acpt-icon-picker-bg .acpt-icon-picker input {
    width: 100%;
}

.acpt-icon-picker-bg .acpt-icon-picker .acpt-icon-picker-results .acpt-icon-picker-icon {
    border: 1px solid #aaa;
    width: 32px;
    height: 32px;
    border-radius: 4px;
    padding: 5px;
    display: flex;
    text-align: center;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.acpt-icon-picker-bg .acpt-icon-picker .acpt-icon-picker-results .acpt-icon-picker-icon.hidden {
    display: none;
}

.acpt-icon-picker-bg .acpt-icon-picker .acpt-icon-picker-results .acpt-icon-picker-icon img {
    width: 32px;
    height: 32px;
}

.acpt-icon-picker-bg .acpt-icon-picker .acpt-icon-picker-results .acpt-icon-picker-icon:hover {
    border: 1px solid #007cba;
}

.acpt-icon-picker-bg .acpt-icon-picker .acpt-icon-picker-results .acpt-icon-picker-icon:hover img,
.acpt-icon-picker-bg .acpt-icon-picker .acpt-icon-picker-results .acpt-icon-picker-icon:hover svg {
    fill: #007cba;
}

.acpt-icon-picker-wrapper {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    flex-direction: column;
}

.acpt-icon-picker-preview-wrapper:not(.hidden) {
    display: flex;
    gap: 10px;
    align-items: center;
    border: 1px solid #aaa;
    padding: 10px 15px;
    border-radius: 4px;
    max-width: 100%;
    flex-wrap: wrap;
}

.acpt-icon-picker-preview-wrapper .acpt-icon-picker-settings-buttons {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.acpt-icon-picker-preview-wrapper .acpt-icon-picker-settings-buttons > div:not(.hidden) {
    display: flex;
    gap: 5px;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.acpt-icon-picker-preview-wrapper .acpt-icon-picker-settings-buttons > div:not(.hidden) > span {
    width: 60px;
}

.acpt-icon-picker-wrapper .acpt-icon-picker-preview:empty {
    display: none;
}

.acpt-icon-picker-wrapper .acpt-icon-picker-preview img,
.acpt-icon-picker-wrapper .acpt-icon-picker-preview svg {
    min-width: 12px;
    min-height:12px;
}

.acpt-icon-picker-wrapper .acpt-icon-picker-buttons {
    display: flex;
    gap: 5px;
    align-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.acpt-icon-picker-wrapper .button.wp-color-result {
    margin: 0;
}

.acpt-icon-picker-wrapper .acpt-icon-picker-size input {
    width: auto;
}


.acpt-icon-picker-wrapper .wp-picker-container.wp-picker-active {
    position: relative;
}

.acpt-icon-picker-wrapper .wp-picker-container.wp-picker-active label {
    display: contents !important;
    font-weight: normal !important;
    margin: 0 !important;
}

.acpt-icon-picker-wrapper  .wp-picker-holder {
    position: absolute;
    z-index: 111;
    box-shadow: rgba(149, 157, 165, 0.2) 0px 8px 24px;
}

.acpt-icon-picker-wrapper .button.wp-color-result.wp-picker-open {
    display: none;
}