.kirki-iconpicker-control {
    position: relative;
}

.kirki-iconpicker-control .input-group {
    display: flex;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 3px;
    overflow: hidden;
}

.kirki-iconpicker-input {
    flex: 1;
    padding: 8px 12px;
    border: none;
    outline: none;
    font-size: 14px;
}

.kirki-iconpicker-preview {
    padding: 8px 12px;
    background: #f7f7f7;
    border-left: 1px solid #ddd;
    min-width: 40px;
    text-align: center;
}

.kirki-iconpicker-picker-btn {
    background: #0073aa;
    color: white;
    border: none;
    padding: 8px 12px;
    cursor: pointer;
}

.kirki-iconpicker-picker-btn:hover {
    background: #005a87;
}

.kirki-iconpicker-picker-popover {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #ddd;
    border-radius: 3px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    z-index: 9999;
    max-height: 400px;
    display: none;
}

.kirki-iconpicker-picker-popover.active {
    display: block;
}

.kirki-iconpicker-picker-header {
    padding: 12px;
    border-bottom: 1px solid #ddd;
}

.kirki-iconpicker-search {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 3px;
}

.kirki-iconpicker-picker-tabs {
    display: flex;
    border-bottom: 1px solid #ddd;
}

.kirki-iconpicker-tab {
    flex: 1;
    padding: 10px;
    background: none;
    border: none;
    cursor: pointer;
    text-align: center;
}

.kirki-iconpicker-tab.active {
    background: #0073aa;
    color: white;
}

.kirki-iconpicker-icons-container {
    max-height: 300px;
    overflow-y: auto;
    padding: 12px;
}

.kirki-iconpicker-icons-tab {
    display: none;
}

.kirki-iconpicker-icons-tab.active {
    display: block;
}

.kirki-iconpicker-icons-tab i {
    display: inline-block;
    width: 32px;
    height: 32px;
    line-height: 32px;
    text-align: center;
    margin: 2px;
    cursor: pointer;
    border: 1px solid transparent;
    border-radius: 3px;
}

.kirki-iconpicker-icons-tab i:hover {
    background: #f0f0f0;
    border-color: #ddd;
}

.kirki-iconpicker-icons-container i {
    display: inline-block;
    width: 28px;
    height: 28px;
    line-height: 28px;
    text-align: center;
    margin: 2px;
    cursor: pointer;
    border: 1px solid transparent;
    border-radius: 2px;
    font-size: 18px;
}

.kirki-iconpicker-icons-container i:hover {
    background: #f0f0f0;
    border-color: #ddd;
}

/* Ensure FontAwesome icons render properly */
.kirki-iconpicker-preview i,
.kirki-iconpicker-icons-container i {
    font-family: "Font Awesome 7 Free", "Font Awesome 7 Brands" !important;
}

.kirki-iconpicker-icons-container i.fab {
    font-weight: 400;
}

.kirki-iconpicker-icons-container i.fas {
    font-weight: 900;
}
