/* Standalone widget styles: safe in theme sidebars without the directory layout. */
/* Plugin sidebars use sidebar-widget, including WordPress's search block. */
.sidebar-widget.widget_search {
    margin-block-end: 24px;
}
.sidebar-widget.widget_search .wp-block-search__inside-wrapper {
    gap: 8px;
}
.sidebar-widget.widget_search .wp-block-search__input {
    min-width: 0;
    width: 100%;
}
.sidebar-widget.widget_search .wp-block-search__button {
    margin-inline-start: 0;
    flex-shrink: 0;
}
:is(.widget_ai_tools_latest, .widget_ai_tools_most_visited, .widget_ai_tools_social, .widget_ai_tools_ad) {
    box-sizing: border-box;
    min-width: 0;
    padding: 20px;
    margin-bottom: 24px;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    background: #fff;
    color: #0f172a;
}
:is(.widget_ai_tools_latest, .widget_ai_tools_most_visited, .widget_ai_tools_social) :is(.widget-title, .widget-header, .social-widget-title) {
    margin: 0 0 16px;
    font-size: 18px;
    line-height: 1.4;
}
:is(.widget_ai_tools_latest, .widget_ai_tools_most_visited) .widget-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
:is(.widget_ai_tools_latest, .widget_ai_tools_most_visited) .widget-item {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    padding: 8px 0;
    text-decoration: none;
    color: inherit;
}
:is(.widget_ai_tools_latest, .widget_ai_tools_most_visited) .widget-item-image {
    flex: 0 0 56px;
    width: 56px;
    height: 56px;
    overflow: hidden;
    border-radius: 10px;
    background: #f8fafc;
}
:is(.widget_ai_tools_latest, .widget_ai_tools_most_visited) .widget-item-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}
:is(.widget_ai_tools_latest, .widget_ai_tools_most_visited) .widget-icon-fallback {
    display: grid;
    place-items: center;
    height: 100%;
    color: #64748b;
}
:is(.widget_ai_tools_latest, .widget_ai_tools_most_visited) .widget-item-info {
    flex: 1;
    min-width: 0;
}
:is(.widget_ai_tools_latest, .widget_ai_tools_most_visited) .widget-item-title {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
    font-weight: 600;
    overflow-wrap: anywhere;
}
:is(.widget_ai_tools_latest, .widget_ai_tools_most_visited) .widget-item:hover {
    color: #2563eb;
}
.widget_ai_tools_most_visited .widget-rank { flex: 0 0 20px; color: #64748b; }
.widget_ai_tools_social .social-icons { display: flex; flex-wrap: wrap; gap: 10px; }
.widget_ai_tools_social .social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #2563eb;
    color: #fff;
    text-decoration: none;
}
.widget_ai_tools_social :is(.twitter, .tiktok, .threads) { background: #111827; }
.widget_ai_tools_social .youtube { background: #dc2626; }
.widget_ai_tools_social .whatsapp { background: #15803d; }
.widget_ai_tools_social .instagram { background: #be185d; }
.widget_ai_tools_social .linkedin { background: #0a66c2; }
.widget_ai_tools_social .telegram { background: #007eae; }
