.vcat-6741a93d-wrapper {
    display: inline-flex;
    position: relative;
    font-family: system-ui, -apple-system, sans-serif;
    border: 1px solid #eaeaea;
    border-radius: 8px;
    background: #fff;
    overflow: visible;
    width: auto;
    box-sizing: border-box;
}

.vcat-6741a93d-wrapper * {
    box-sizing: border-box;
}

.vcat-6741a93d-sidebar {
    position: relative;
    background: #fafafa;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    padding: 0;
    max-height: 400px;
    overflow: hidden;
    width: 250px;
}

.vcat-6741a93d-list-container {
    overflow-y: auto;
    flex-grow: 1;
    scrollbar-width: none;
}

.vcat-6741a93d-list-container::-webkit-scrollbar {
    display: none;
}

.vcat-6741a93d-scroll-btn {
    background: #f1f1f1;
    border: none;
    outline: none;
    font-size: 10px;
    color: #555;
    cursor: pointer;
    padding: 6px 0;
    text-align: center;
    width: 100%;
    transition: background 0.2s, color 0.2s;
    user-select: none;
    z-index: 5;
    flex-shrink: 0;
}

.vcat-6741a93d-scroll-btn:hover {
    background: #e2e2e2;
    color: #111;
}

.vcat-6741a93d-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.vcat-6741a93d-item {
    padding: 12px 20px;
    cursor: pointer;
    border-left: 3px solid transparent;
    transition: all 0.2s ease;
}

.vcat-6741a93d-item:hover {
    background: rgba(0, 0, 0, 0.02);
}

.vcat-6741a93d-item.is-active {
    background: #fff;
    border-left-color: #3b82f6;
    font-weight: 600;
}

.vcat-6741a93d-item-inner {
    display: flex;
    align-items: center;
    gap: 12px;
}

.vcat-6741a93d-item-thumb {
    width: 24px;
    height: 24px;
    object-fit: cover;
    border-radius: 4px;
}

/* Modal Overlay Styling for Floating All Categories Page */
.vcat-6741a93d-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
    z-index: 999999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    margin: 0;
    box-sizing: border-box;
}

body.admin-bar .vcat-6741a93d-modal-overlay {
    top: var(--wp-admin--admin-bar--height, 32px);
    height: calc(100vh - var(--wp-admin--admin-bar--height, 32px));
}

@media screen and (max-width: 782px) {
    body.admin-bar .vcat-6741a93d-modal-overlay {
        top: 46px;
        height: calc(100vh - 46px);
    }
}

.vcat-6741a93d-modal-overlay.is-active {
    display: flex;
}

.vcat-6741a93d-modal-container {
    background: #ffffff;
    width: 100%;
    max-width: 1000px;
    height: 80vh;
    max-height: 700px;
    border-radius: 12px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: vcat-modal-scale 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    margin: auto;
}

@keyframes vcat-modal-scale {
    from {
        transform: scale(0.95);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.vcat-6741a93d-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid #f1f5f9;
}

.vcat-6741a93d-modal-header h2 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
    color: #0f172a;
}

.vcat-6741a93d-modal-close {
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #64748b;
    transition: color 0.15s;
    line-height: 1;
}

.vcat-6741a93d-modal-close:hover {
    color: #0f172a;
}

/* Tab Layout Inside Modal */
.vcat-6741a93d-modal-content {
    display: flex;
    flex: 1;
    overflow: hidden;
    background: #f8fafc;
}

.vcat-6741a93d-modal-sidebar {
    width: 250px;
    border-right: 1px solid #e2e8f0;
    background: #ffffff;
    overflow-y: auto;
}

.vcat-6741a93d-modal-tabs-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.vcat-6741a93d-modal-tab-item {
    padding: 14px 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    border-left: 3px solid transparent;
    transition: all 0.2s ease;
}

.vcat-6741a93d-modal-tab-item:hover {
    background: rgba(0, 0, 0, 0.02);
}

.vcat-6741a93d-modal-tab-item.is-active {
    background: #f8fafc;
    border-left-color: #3b82f6;
    font-weight: 600;
}

.vcat-6741a93d-modal-tab-thumb {
    width: 28px;
    height: 28px;
    object-fit: cover;
    border-radius: 4px;
}

.vcat-6741a93d-modal-tab-title {
    font-size: 0.95rem;
    color: #334155;
}

.vcat-6741a93d-modal-panes {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
    background: #f8fafc;
}

.vcat-6741a93d-modal-pane {
    display: none;
}

.vcat-6741a93d-modal-pane.is-active {
    display: block;
}

.vcat-6741a93d-modal-pane-header {
    margin-bottom: 20px;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 12px;
}

.vcat-6741a93d-modal-pane-title {
    margin: 0;
    font-size: 1.35rem;
    font-weight: 700;
    color: #0f172a;
}

.vcat-6741a93d-modal-pane-title a {
    color: #0f172a;
    text-decoration: none;
}

.vcat-6741a93d-modal-pane-title a:hover {
    color: #3b82f6;
}

.vcat-6741a93d-modal-sub-grid,
.vcat-6741a93d-modal-all-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 16px;
}

.vcat-6741a93d-modal-sub-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease;
}

.vcat-6741a93d-modal-sub-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    border-color: #cbd5e1;
}

.vcat-6741a93d-modal-sub-img-wrapper {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    overflow: hidden;
    background: #f1f5f9;
    border: 2px solid #e2e8f0;
}

.vcat-6741a93d-modal-sub-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.vcat-6741a93d-modal-sub-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: #334155;
    line-height: 1.3;
}

.vcat-6741a93d-no-sub {
    font-size: 0.85rem;
    color: #94a3b8;
    margin: 0;
    font-style: italic;
}
