.wzw-icon-select-trigger {
    display: flex !important;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    text-align: left;
    cursor: pointer;
}

.wzw-selected-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    flex: 0 0 24px;
    font-size: 18px;
}

.wzw-selected-icon svg,
.wzw-icon-option-preview svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.wzw-icon-picker[hidden] {
    display: none !important;
}

.wzw-icon-picker {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.wzw-icon-picker-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.48);
}

.wzw-icon-picker-dialog {
    position: relative;
    width: min(740px, 94vw);
    max-height: min(820px, 92vh);
    overflow: hidden;
    background: #fff;
    color: #333;
    border-radius: 6px;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.24);
}

.wzw-icon-picker-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 52px;
    padding: 0 18px;
    border-bottom: 1px solid #e7e7e7;
    font-size: 17px;
}

.wzw-icon-picker-close {
    width: 36px;
    height: 36px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #aaa;
    font-size: 30px;
    line-height: 1;
    cursor: pointer;
}

.wzw-icon-picker-body {
    max-height: calc(min(820px, 92vh) - 52px);
    overflow-y: auto;
    padding: 16px;
}

.wzw-icon-search {
    max-width: 380px;
    margin: 0 auto 16px;
}

.wzw-icon-section {
    margin-top: 16px;
}

.wzw-icon-section-title {
    margin-bottom: 10px;
    padding: 11px;
    background: #f5f6f7;
    text-align: center;
    font-weight: 600;
}

.wzw-icon-help {
    margin: -4px 0 8px;
    text-align: center;
    font-size: 13px;
}

.wzw-custom-svg {
    min-height: 92px;
    resize: vertical;
}

.wzw-custom-svg-confirm {
    display: block;
    margin: 10px 0 0 auto;
}

.wzw-default-icon-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
}

.wzw-default-icon-row .wzw-icon-option {
    width: 38px;
    height: 38px;
    aspect-ratio: auto;
    flex: 0 0 38px;
}

.wzw-icon-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 7px;
}

.wzw-icon-option {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1;
    min-width: 0;
    padding: 0;
    border: 1px solid #ccd0d4;
    border-radius: 3px;
    background: #fff;
    color: #50575e;
    font-size: 18px;
    cursor: pointer;
}

.wzw-icon-option:hover,
.wzw-icon-option:focus-visible {
    border-color: #2271b1;
    color: #2271b1;
    outline: 2px solid rgba(34, 113, 177, 0.18);
}

.wzw-icon-option-preview {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.wzw-theme-icons-empty {
    grid-column: 1 / -1;
    padding: 18px 8px;
    text-align: center;
    font-size: 13px;
}

.wzw-svg-selected-badge {
    padding: 2px 4px;
    border-radius: 3px;
    background: #2271b1;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
}

body.wzw-icon-picker-open {
    overflow: hidden;
}

@media (max-width: 700px) {
    .wzw-icon-picker {
        padding: 12px;
    }

    .wzw-icon-grid {
        grid-template-columns: repeat(8, 1fr);
    }
}

@media (max-width: 420px) {
    .wzw-icon-grid {
        grid-template-columns: repeat(6, 1fr);
    }
}

.wzw-user-ads {
    width: 100%;
}

.wzw-user-ads-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.wzw-user-ads-head h3 {
    margin: 0;
}

.wzw-user-ads-empty {
    padding: 36px 16px;
    text-align: center;
}

.wzw-user-ads .table-responsive {
    overflow-x: auto;
}

.wzw-user-ads table {
    width: 100%;
    min-width: 760px;
}

.wzw-user-ad-actions {
    white-space: nowrap;
}

.wzw-user-ad-actions .but + .but {
    margin-left: 6px;
}
