.wpgb-facet > fieldset:last-child {
    margin-bottom: 10px !important;
}

.wpgb-facet .wpgb-checkbox-facet {
    display: flex;
    flex-direction: column;
    margin: 10px 0;
}

.nmi-modules-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
    margin-top: 20px;
}

.nmi-module-card {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 16px;
    position: relative;
    transition: box-shadow .2s ease;
}

.nmi-module-card:hover {
    box-shadow: 0 4px 14px rgba(0,0,0,.08);
}

.nmi-module-card label {
    cursor: pointer;
    display: block;
}

.nmi-module-card strong {
    display: block;
    margin-top: 8px;
    font-size: 14px;
}

.nmi-module-card small {
    display: block;
    color: #666;
    margin-top: 4px;
}

.nmi-main-site {
    background: #f6f9ff;
    border-color: #4f7cff;
}

.nmi-badge {
    display: inline-block;
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 12px;
    margin-top: 6px;
}

.nmi-main-only {
    background: #4f7cff;
    color: #fff;
}

/* Toggle style */
.nmi-module-card input {
    display: none;
}

.nmi-toggle {
    width: 42px;
    height: 22px;
    background: #ccc;
    border-radius: 20px;
    display: inline-block;
    position: relative;
    vertical-align: middle;
    margin-right: 8px;
}

.nmi-toggle::after {
    content: '';
    width: 18px;
    height: 18px;
    background: #fff;
    border-radius: 50%;
    position: absolute;
    top: 2px;
    left: 2px;
    transition: .2s;
}

input:checked + .nmi-toggle {
    background: #4f7cff;
}

input:checked + .nmi-toggle::after {
    left: 22px;
}
